Package dev.dokimos.server.controller.v1
Class LlmConnectionController
java.lang.Object
dev.dokimos.server.controller.v1.LlmConnectionController
@RestController
@RequestMapping("/api/v1/llm-connections")
public class LlmConnectionController
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<LlmConnectionView> create(@Valid CreateLlmConnectionRequest request, jakarta.servlet.http.HttpServletRequest http) Registers an LLM connection.voidDeletes a connection.Returns a single connection by id, or 404 if it does not exist or belongs to another tenant.list(jakarta.servlet.http.HttpServletRequest http) Lists the connections visible to the caller.update(UUID id, @Valid UpdateLlmConnectionRequest request, jakarta.servlet.http.HttpServletRequest http) Updates a connection.
-
Constructor Details
-
LlmConnectionController
-
-
Method Details
-
create
@PostMapping public org.springframework.http.ResponseEntity<LlmConnectionView> create(@Valid @RequestBody @Valid CreateLlmConnectionRequest request, jakarta.servlet.http.HttpServletRequest http) Registers an LLM connection. Returns 201 with aLocationheader pointing at the connection. -
list
Lists the connections visible to the caller. Key material is never included. -
get
@GetMapping("/{id}") public LlmConnectionView get(@PathVariable UUID id, jakarta.servlet.http.HttpServletRequest http) Returns a single connection by id, or 404 if it does not exist or belongs to another tenant. -
update
@PutMapping("/{id}") public LlmConnectionView update(@PathVariable UUID id, @Valid @RequestBody @Valid UpdateLlmConnectionRequest request, jakarta.servlet.http.HttpServletRequest http) Updates a connection. Returns 404 if it does not exist or belongs to another tenant, 409 if the new name is taken. -
delete
@DeleteMapping("/{id}") @ResponseStatus(NO_CONTENT) public void delete(@PathVariable UUID id, jakarta.servlet.http.HttpServletRequest http) Deletes a connection. Returns 404 if it does not exist or belongs to another tenant, 409 if a judge job still references it.
-