Skip to content

Commit

Permalink
removed more verbs from URIs
Browse files Browse the repository at this point in the history
  • Loading branch information
pahjbo committed Oct 3, 2024
1 parent 8b800b6 commit 98d0267
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/org/uksrc/archive/ObservationResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public class ObservationResource {
protected EntityManager em; // exists for the application lifetime no need to close

@POST
@Path("/add")
@Operation(summary = "Create a new Observation", description = "Creates a new observation in the database, note the supplied ID needs to be unique.")
@RequestBody(
description = "XML representation of the Observation",
Expand All @@ -62,7 +61,7 @@ public Response addObservation(SimpleObservation observation) {
}

@POST
@Path("/derived/add")
@Path("/derived/")
@Operation(summary = "Create a new Derived Observation", description = "Create a DERIVED observation in the database, note ID must be unique across all observations.")
@RequestBody(
description = "XML representation of the Derived Observation",
Expand All @@ -89,7 +88,7 @@ public Response addObservation(DerivedObservation observation) {
}

@PUT
@Path("/update/{observationId}")
@Path("{observationId}")
@Operation(summary = "Update an existing Observation", description = "Updates an existing observation with the supplied ID")
@Parameter(
name = "observationId",
Expand Down Expand Up @@ -141,7 +140,6 @@ public Response updateObservation(@PathParam("observationId") String id, SimpleO
}

@GET
@Path("/")
@Operation(summary = "Retrieve list(s) of observations", description = "Returns either all the Observations currently stored or a subset using pagination IF page AND size are supplied.")
@Parameters({
@Parameter(
Expand Down

0 comments on commit 98d0267

Please sign in to comment.