Java Code Examples for org.eclipse.microprofile.openapi.annotations.enums.ParameterIn#HEADER
The following examples show how to use
org.eclipse.microprofile.openapi.annotations.enums.ParameterIn#HEADER .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ParameterScanTests.java From smallrye-open-api with Apache License 2.0 | 5 votes |
@GET @Produces(MediaType.APPLICATION_JSON) @SuppressWarnings("unused") @Parameter(name = "X-Custom-Header", in = ParameterIn.HEADER, required = true) @Parameter(name = "id", in = ParameterIn.PATH) public Widget get(@HeaderParam("X-Custom-Header") String custom, @PathParam("id") @DefaultValue("000") String id) { return null; }
Example 2
Source File: ParameterScanTests.java From smallrye-open-api with Apache License 2.0 | 5 votes |
public ParametersInConstructorTestResource( @Parameter(name = "h1", in = ParameterIn.HEADER, description = "Description of h1") @HeaderParam("h1") @Deprecated String h1, @Parameter(name = "h2", in = ParameterIn.HEADER, hidden = true) @HeaderParam("h2") String h2, @Parameter(name = "q1", deprecated = true) @QueryParam("q1") String q1, @NotNull @CookieParam("c1") String c1, @PathParam("p1") String p1, @BeanParam Bean b1) { }
Example 3
Source File: ResourceInheritanceTests.java From smallrye-open-api with Apache License 2.0 | 4 votes |
@HeaderParam("date") @Parameter(name = "date", in = ParameterIn.HEADER, description = "The local date when the greeting is sent", allowEmptyValue = true) void setGreetingDate(LocalDate date);