@GET @Tag(ref="bookings") @APIResponses(value={ @APIResponse( responseCode="200", description="Bookings retrieved", content=@Content( schema=@Schema( type = SchemaType.ARRAY, implementation=Booking.class)) ), @APIResponse( responseCode="404", description="No bookings found for the user.") }) @Operation( summary="Retrieve all bookings for current user", operationId = "getAllBookings") @Produces("application/json") public Response getBookings(){ return Response.ok().entity(bookings.values()).build(); }
@DELETE @Path("/{username}") @APIResponses(value={ @APIResponse( responseCode = "400",
summary="Get a booking with ID", operationId = "getBookingById") @APIResponses(value={ @APIResponse( responseCode="200",
@Operation( summary = "Obtain a new auth token for this authenticator audience", operationId = "login" ) @APIResponses({ @APIResponse( responseCode = "200", description = "authorized response", content = {@Content( mediaType = "text/plain" )} ), @APIResponse( responseCode = "401", description = "not authorized", ref = "#/components/schemas/WsError" ), }) @SecurityRequirement(name = "http") @GET @Produces(MediaType.TEXT_PLAIN) String login(); }
@Operation( summary = "Obtain a new auth token for the specified application audience", operationId = "applicationLogin" ) @APIResponses({ @APIResponse( responseCode = "200", description = "authorized response", content = {@Content( mediaType = "text/plain" )} ), @APIResponse( responseCode = "401", description = "not authorized", ref = "#/components/schemas/WsError" ), }) @SecurityRequirement(name = "http") @GET @Path("/{appName}") @Produces(MediaType.TEXT_PLAIN) String applicationLogin( @Parameter( name = "appName", description = "The application name for which to login", required = true ) @PathParam("appName") String appName );
operationId = "getReviewByUser", summary="Get all reviews by user") @APIResponses(value={ @APIResponse( responseCode="200",
scopes = "write:pets" @APIResponses(value = { @APIResponse( responseCode = "400",
@GET @Path("/{petId}/download") @APIResponses(value={ @APIResponse( responseCode = "400",
name = "petsHttp" @APIResponses(value={ @APIResponse( responseCode = "400",
@GET @Path("/{petId}") @APIResponses(value={ @APIResponse( responseCode = "400",
@GET @Path("/{username}") @Tag(ref="user") @APIResponses(value={ @APIResponse( responseCode = "200",
@GET @Path("/{username}") @APIResponses(value={ @APIResponse( responseCode = "200",
description = "This can only be done by the logged in user.", operationId = "updateUser") @APIResponses(value={ @APIResponse( responseCode = "200",
@POST @Tags(refs={"user","create"}) @APIResponses(value={ @APIResponse( responseCode = "200",