Class LlmConnectionController

java.lang.Object
dev.dokimos.server.controller.v1.LlmConnectionController

@RestController @RequestMapping("/api/v1/llm-connections") public class LlmConnectionController extends Object
  • Constructor Details

  • 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 a Location header pointing at the connection.
    • list

      @GetMapping public List<LlmConnectionView> list(jakarta.servlet.http.HttpServletRequest http)
      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.