Package dev.dokimos.server.controller.v1
Class DatasetController
java.lang.Object
dev.dokimos.server.controller.v1.DatasetController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DatasetSummary> createDataset(@Valid CreateDatasetRequest request) Creates a dataset shell with no versions.org.springframework.http.ResponseEntity<DatasetVersionDetails> createVersion(String name, @Valid CreateVersionRequest request, jakarta.servlet.http.HttpServletRequest http) Appends a new immutable version to the dataset with the supplied items.org.springframework.http.ResponseEntity<Void> deleteDataset(String name) Deletes a dataset and its versions; runs that referenced any version become unlinked.getDataset(String name) Returns the dataset and every one of its versions, newest first.getVersion(String name, String version) Returns a specific version of the dataset.Lists every dataset on the server with its latest version number and item count.Returns the items of a dataset version ordered by ordinal, paginated.org.springframework.http.ResponseEntity<DatasetVersionDetails> promote(@Valid PromoteRequest request, jakarta.servlet.http.HttpServletRequest http) Promotes run item results into a new immutable version of an existing dataset.
-
Constructor Details
-
DatasetController
-
-
Method Details
-
listDatasets
Lists every dataset on the server with its latest version number and item count. -
createDataset
@PostMapping public org.springframework.http.ResponseEntity<DatasetSummary> createDataset(@Valid @RequestBody @Valid CreateDatasetRequest request) Creates a dataset shell with no versions. Returns 201 with aLocationheader pointing at the new dataset. -
getDataset
Returns the dataset and every one of its versions, newest first. -
deleteDataset
@DeleteMapping("/{name}") public org.springframework.http.ResponseEntity<Void> deleteDataset(@PathVariable String name) Deletes a dataset and its versions; runs that referenced any version become unlinked. -
createVersion
@PostMapping("/{name}/versions") public org.springframework.http.ResponseEntity<DatasetVersionDetails> createVersion(@PathVariable String name, @Valid @RequestBody @Valid CreateVersionRequest request, jakarta.servlet.http.HttpServletRequest http) Appends a new immutable version to the dataset with the supplied items. Thecreated_byfield is taken from the authenticated principal when present. -
promote
@PostMapping("/promote") public org.springframework.http.ResponseEntity<DatasetVersionDetails> promote(@Valid @RequestBody @Valid PromoteRequest request, jakarta.servlet.http.HttpServletRequest http) Promotes run item results into a new immutable version of an existing dataset. Returns 201 with aLocationheader pointing at the new version. Thecreated_byfield is taken from the authenticated principal when present. -
getVersion
@GetMapping("/{name}/versions/{version}") public DatasetVersionDetails getVersion(@PathVariable String name, @PathVariable String version) Returns a specific version of the dataset. The literal pathlatestresolves to the highest existing version; numeric paths are parsed as the explicit version number. -
listItems
@GetMapping("/{name}/versions/{version}/items") public PageResponse<DatasetItemView> listItems(@PathVariable String name, @PathVariable String version, @PageableDefault(size=50) org.springframework.data.domain.Pageable pageable) Returns the items of a dataset version ordered by ordinal, paginated.
-