fix GolferApi
This commit is contained in:
@@ -16,18 +16,13 @@ import jakarta.ws.rs.Produces;
|
||||
/**
|
||||
* @author brian.long@poststats.com
|
||||
*/
|
||||
@Path("/golfer/{personId}")
|
||||
@Path("/golfer/{personId:[0-9]+}")
|
||||
@Tag(name = "Golfer API")
|
||||
public abstract class GolferApi {
|
||||
|
||||
@NotNull
|
||||
@Positive
|
||||
@PathParam("personId")
|
||||
private long personId;
|
||||
|
||||
protected long getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
@ApiResponses({
|
||||
@ApiResponse(responseCode = "200", description = "Success"),
|
||||
@ApiResponse(responseCode = "404", description = "A golfer with the specified ID could not be found")
|
||||
})
|
||||
public interface GolferApi {
|
||||
|
||||
@GET
|
||||
@Produces(Constants.V1_JSON)
|
||||
@@ -35,10 +30,6 @@ public abstract class GolferApi {
|
||||
summary = "Retrieves limited meta-data about a golfer.",
|
||||
description = "Retreives name, location, and other direct meta-data about the specified golfer."
|
||||
)
|
||||
@ApiResponses({
|
||||
@ApiResponse(responseCode = "200", description = "Success"),
|
||||
@ApiResponse(responseCode = "404", description = "A golfer with the specified ID could not be found")
|
||||
})
|
||||
public abstract Golfer get();
|
||||
Golfer get(@NotNull @Positive @PathParam("personId") long personId);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user