org.openapitools.api.NotFoundException Java Examples

The following examples show how to use org.openapitools.api.NotFoundException. 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: PetApi.java    From openapi-generator with Apache License 2.0 6 votes vote down vote up
@PUT

@Consumes({ "application/json", "application/xml" })

@io.swagger.annotations.ApiOperation(value = "Update an existing pet", notes = "", response = Void.class, authorizations = {
    @io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
        @io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
        @io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
    })
}, tags={ "pet", })
@io.swagger.annotations.ApiResponses(value = { 
    @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class),
    
    @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class),
    
    @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) })
public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet body,@Context SecurityContext securityContext)
throws NotFoundException {
    return service.updatePet(body,securityContext);
}
 
Example #2
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 6 votes vote down vote up
@PUT
@Path("/test-query-paramters")


@io.swagger.annotations.ApiOperation(value = "", notes = "To test the collection format in query parameters", response = Void.class, tags={ "fake",  })
@io.swagger.annotations.ApiResponses(value = { 
    @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) })
public Response testQueryParameterCollectionFormat(
    @ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid  List<String> pipe,
    @ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid  List<String> ioutil,
    @ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid  List<String> http,
    @ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid  List<String> url,
    @ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid  List<String> context,
    @Context SecurityContext securityContext)
throws NotFoundException {
    return delegate.testQueryParameterCollectionFormat(pipe,ioutil,http,url,context,securityContext);
}
 
Example #3
Source File: StoreApi.java    From openapi-generator with Apache License 2.0 6 votes vote down vote up
@GET
    @Path("/order/{order_id}")
    
    @Produces({ "application/xml", "application/json" })
    @io.swagger.annotations.ApiOperation(value = "Find purchase order by ID", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", })
    @io.swagger.annotations.ApiResponses(value = { 
        @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class),
        
        @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class),
        
        @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) })
    public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull  @Min(1L) @Max(5L) Long orderId
,@Context SecurityContext securityContext)
    throws NotFoundException {
        return delegate.getOrderById(orderId, securityContext);
    }
 
Example #4
Source File: PetApi.java    From openapi-generator with Apache License 2.0 6 votes vote down vote up
@POST

@Consumes({ "application/json", "application/xml" })

@io.swagger.annotations.ApiOperation(value = "Add a new pet to the store", notes = "", response = Void.class, authorizations = {
    @io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
        @io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
        @io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
    })
}, tags={ "pet",  })
@io.swagger.annotations.ApiResponses(value = { 
    @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class),
    @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) })
public Response addPet(
    @ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid  Pet body,
    @Context SecurityContext securityContext)
throws NotFoundException {
    return delegate.addPet(body,securityContext);
}
 
Example #5
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 6 votes vote down vote up
@PUT
    @Path("/test-query-paramters")
    
    
    @io.swagger.annotations.ApiOperation(value = "", notes = "To test the collection format in query parameters", response = Void.class, tags={ "fake", })
    @io.swagger.annotations.ApiResponses(value = { 
        @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) })
    public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid  List<String> pipe
,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid  List<String> ioutil
,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid  List<String> http
,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid  List<String> url
,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid  List<String> context
,@Context SecurityContext securityContext)
    throws NotFoundException {
        return delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, securityContext);
    }
 
Example #6
Source File: FakeApiServiceImpl.java    From openapi-generator with Apache License 2.0 6 votes vote down vote up
@Override
    public Response testEndpointParameters(BigDecimal number
, Double _double
, String patternWithoutDelimiter
, byte[] _byte
, Integer integer
, Integer int32
, Long int64
, Float _float
, String string
, InputStream binaryInputStream, FileInfo binaryDetail
, Date date
, Date dateTime
, String password
, String paramCallback
 ) throws NotFoundException {
        // do some magic!
        return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
    }
 
Example #7
Source File: UserApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@POST
@Path("/createWithArray")


@io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user",  })
@io.swagger.annotations.ApiResponses(value = { 
    @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) })
public Response createUsersWithArrayInput(
    @ApiParam(value = "List of user object", required = true) @NotNull @Valid  List<User> body,
    @Context SecurityContext securityContext)
throws NotFoundException {
    return delegate.createUsersWithArrayInput(body,securityContext);
}
 
Example #8
Source File: UserApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@POST
    @Path("/createWithArray")
    
    
    @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", })
    @io.swagger.annotations.ApiResponses(value = { 
        @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) })
    public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid  List<User> body
,@Context SecurityContext securityContext)
    throws NotFoundException {
        return delegate.createUsersWithArrayInput(body, securityContext);
    }
 
Example #9
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@POST
    
    @Consumes({ "application/x-www-form-urlencoded" })
    
    @io.swagger.annotations.ApiOperation(value = "Fake endpoint for testing various parameters  假端點  偽のエンドポイント  가짜 엔드 포인트", notes = "Fake endpoint for testing various parameters  假端點  偽のエンドポイント  가짜 엔드 포인트", response = Void.class, authorizations = {
        @io.swagger.annotations.Authorization(value = "http_basic_test")
    }, tags={ "fake", })
    @io.swagger.annotations.ApiResponses(value = { 
        @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class),
        
        @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) })
    public Response testEndpointParameters(@ApiParam(value = "None", required=true)  @FormParam("number")  BigDecimal number
,@ApiParam(value = "None", required=true)  @FormParam("double")  Double _double
,@ApiParam(value = "None", required=true)  @FormParam("pattern_without_delimiter")  String patternWithoutDelimiter
,@ApiParam(value = "None", required=true)  @FormParam("byte")  byte[] _byte
,@ApiParam(value = "None")  @FormParam("integer")  Integer integer
,@ApiParam(value = "None")  @FormParam("int32")  Integer int32
,@ApiParam(value = "None")  @FormParam("int64")  Long int64
,@ApiParam(value = "None")  @FormParam("float")  Float _float
,@ApiParam(value = "None")  @FormParam("string")  String string
,
            @FormDataParam("binary") InputStream binaryInputStream,
            @FormDataParam("binary") FileInfo binaryDetail
,@ApiParam(value = "None")  @FormParam("date")  Date date
,@ApiParam(value = "None")  @FormParam("dateTime")  Date dateTime
,@ApiParam(value = "None")  @FormParam("password")  String password
,@ApiParam(value = "None")  @FormParam("callback")  String paramCallback
)
    throws NotFoundException {
        return delegate.testEndpointParameters(number,_double,patternWithoutDelimiter,_byte,integer,int32,int64,_float,string,binaryInputStream, binaryDetail,date,dateTime,password,paramCallback);
    }
 
Example #10
Source File: StoreApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@GET
@Path("/inventory")

@Produces({ "application/json" })
@io.swagger.annotations.ApiOperation(value = "Returns pet inventories by status", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
    @io.swagger.annotations.Authorization(value = "api_key")
}, tags={ "store",  })
@io.swagger.annotations.ApiResponses(value = { 
    @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") })
public Response getInventory(
    @Context SecurityContext securityContext)
throws NotFoundException {
    return delegate.getInventory(securityContext);
}
 
Example #11
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@PUT
    @Path("/body-with-query-params")
    @Consumes({ "application/json" })
    
    @io.swagger.annotations.ApiOperation(value = "", notes = "", response = Void.class, tags={ "fake", })
    @io.swagger.annotations.ApiResponses(value = { 
        @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) })
    public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull  String query
,@ApiParam(value = "", required = true) @NotNull @Valid  User body
,@Context SecurityContext securityContext)
    throws NotFoundException {
        return delegate.testBodyWithQueryParams(query, body, securityContext);
    }
 
Example #12
Source File: UserApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@GET
@Path("/{username}")

@Produces({ "application/xml", "application/json" })
@io.swagger.annotations.ApiOperation(value = "Get user by user name", notes = "", response = User.class, tags={ "user",  })
@io.swagger.annotations.ApiResponses(value = { 
    @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = User.class),
    @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class),
    @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) })
public Response getUserByName(
    @ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull  String username,
    @Context SecurityContext securityContext)
throws NotFoundException {
    return delegate.getUserByName(username,securityContext);
}
 
Example #13
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@POST
    @Path("/outer/number")
    
    @Produces({ "*/*" })
    @io.swagger.annotations.ApiOperation(value = "", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", })
    @io.swagger.annotations.ApiResponses(value = { 
        @io.swagger.annotations.ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) })
    public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body")  BigDecimal body
,@Context SecurityContext securityContext)
    throws NotFoundException {
        return delegate.fakeOuterNumberSerialize(body, securityContext);
    }
 
Example #14
Source File: UserApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@PUT
@Path("/{username}")


@io.swagger.annotations.ApiOperation(value = "Updated user", notes = "This can only be done by the logged in user.", response = Void.class, tags={ "user", })
@io.swagger.annotations.ApiResponses(value = { 
    @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class),
    
    @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) })
public Response updateUser( @PathParam("username") String username,@ApiParam(value = "Updated user object" ,required=true) @NotNull @Valid User body,@Context SecurityContext securityContext)
throws NotFoundException {
    return service.updateUser(username,body,securityContext);
}
 
Example #15
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@POST
    @Path("/create_xml_item")
    @Consumes({ "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" })
    
    @io.swagger.annotations.ApiOperation(value = "creates an XmlItem", notes = "this route creates an XmlItem", response = Void.class, tags={ "fake", })
    @io.swagger.annotations.ApiResponses(value = { 
        @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) })
    public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull @Valid  XmlItem xmlItem
,@Context SecurityContext securityContext)
    throws NotFoundException {
        return delegate.createXmlItem(xmlItem, securityContext);
    }
 
Example #16
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@POST
@Path("/inline-additionalProperties")
@Consumes({ "application/json" })

@io.swagger.annotations.ApiOperation(value = "test inline additionalProperties", notes = "", response = Void.class, tags={ "fake",  })
@io.swagger.annotations.ApiResponses(value = { 
    @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) })
public Response testInlineAdditionalProperties(
    @ApiParam(value = "request body", required = true) @NotNull @Valid  Map<String, String> param,
    @Context SecurityContext securityContext)
throws NotFoundException {
    return delegate.testInlineAdditionalProperties(param,securityContext);
}
 
Example #17
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@POST
@Path("/outer/string")

@Produces({ "*/*" })
@io.swagger.annotations.ApiOperation(value = "", notes = "Test serialization of outer string types", response = String.class, tags={ "fake",  })
@io.swagger.annotations.ApiResponses(value = { 
    @io.swagger.annotations.ApiResponse(code = 200, message = "Output string", response = String.class) })
public Response fakeOuterStringSerialize(
    @ApiParam(value = "Input string as post body")  String body,
    @Context SecurityContext securityContext)
throws NotFoundException {
    return delegate.fakeOuterStringSerialize(body,securityContext);
}
 
Example #18
Source File: UserApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@POST
    @Path("/createWithList")
    
    
    @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", })
    @io.swagger.annotations.ApiResponses(value = { 
        @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) })
    public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid  List<User> body
,@Context SecurityContext securityContext)
    throws NotFoundException {
        return delegate.createUsersWithListInput(body, securityContext);
    }
 
Example #19
Source File: UserApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@POST
    @Path("/createWithList")
    
    
    @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", })
    @io.swagger.annotations.ApiResponses(value = { 
        @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) })
    public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) List<User> body
)
    throws NotFoundException {
        return delegate.createUsersWithListInput(body);
    }
 
Example #20
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@POST

@Consumes({ "application/x-www-form-urlencoded" })

@io.swagger.annotations.ApiOperation(value = "Fake endpoint for testing various parameters  假端點  偽のエンドポイント  가짜 엔드 포인트", notes = "Fake endpoint for testing various parameters  假端點  偽のエンドポイント  가짜 엔드 포인트", response = Void.class, authorizations = {
    @io.swagger.annotations.Authorization(value = "http_basic_test")
}, tags={ "fake",  })
@io.swagger.annotations.ApiResponses(value = { 
    @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class),
    @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) })
public Response testEndpointParameters(
    @ApiParam(value = "None", required=true)  @FormParam("number")  BigDecimal number,
    @ApiParam(value = "None", required=true)  @FormParam("double")  Double _double,
    @ApiParam(value = "None", required=true)  @FormParam("pattern_without_delimiter")  String patternWithoutDelimiter,
    @ApiParam(value = "None", required=true)  @FormParam("byte")  byte[] _byte,
    @ApiParam(value = "None")  @FormParam("integer")  Integer integer,
    @ApiParam(value = "None")  @FormParam("int32")  Integer int32,
    @ApiParam(value = "None")  @FormParam("int64")  Long int64,
    @ApiParam(value = "None")  @FormParam("float")  Float _float,
    @ApiParam(value = "None")  @FormParam("string")  String string,
    @FormDataParam("binary") InputStream inputStream,
    @FormDataParam("binary") FormDataContentDisposition fileDetail,
    @ApiParam(value = "None")  @FormParam("date")  Date date,
    @ApiParam(value = "None")  @FormParam("dateTime")  Date dateTime,
    @ApiParam(value = "None")  @FormParam("password")  String password,
    @ApiParam(value = "None")  @FormParam("callback")  String paramCallback,
    @Context SecurityContext securityContext)
throws NotFoundException {
    return delegate.testEndpointParameters(number,_double,patternWithoutDelimiter,_byte,integer,int32,int64,_float,string,inputStream, fileDetail,date,dateTime,password,paramCallback,securityContext);
}
 
Example #21
Source File: UserApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@POST



@io.swagger.annotations.ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", response = Void.class, tags={ "user", })
@io.swagger.annotations.ApiResponses(value = { 
    @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) })
public Response createUser(@ApiParam(value = "Created user object" ,required=true) @NotNull @Valid User body,@Context SecurityContext securityContext)
throws NotFoundException {
    return service.createUser(body,securityContext);
}
 
Example #22
Source File: StoreApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@POST
    @Path("/order")
    @Consumes({ "application/json" })
    @Produces({ "application/xml", "application/json" })
    @io.swagger.annotations.ApiOperation(value = "Place an order for a pet", notes = "", response = Order.class, tags={ "store", })
    @io.swagger.annotations.ApiResponses(value = { 
        @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class),
        
        @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) })
    public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull @Valid  Order order
,@Context SecurityContext securityContext)
    throws NotFoundException {
        return delegate.placeOrder(order, securityContext);
    }
 
Example #23
Source File: UserApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@POST
    
    
    
    @io.swagger.annotations.ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", response = Void.class, tags={ "user", })
    @io.swagger.annotations.ApiResponses(value = { 
        @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) })
    public Response createUser(@ApiParam(value = "Created user object" ,required=true) User body
)
    throws NotFoundException {
        return delegate.createUser(body);
    }
 
Example #24
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@POST
    @Path("/outer/number")
    
    @Produces({ "*/*" })
    @io.swagger.annotations.ApiOperation(value = "", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", })
    @io.swagger.annotations.ApiResponses(value = { 
        @io.swagger.annotations.ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) })
    public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body")  BigDecimal body
,@Context SecurityContext securityContext)
    throws NotFoundException {
        return delegate.fakeOuterNumberSerialize(body, securityContext);
    }
 
Example #25
Source File: StoreApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@DELETE
    @Path("/order/{order_id}")
    
    
    @io.swagger.annotations.ApiOperation(value = "Delete purchase order by ID", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", response = Void.class, tags={ "store", })
    @io.swagger.annotations.ApiResponses(value = { 
        @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class),
        
        @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) })
    public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathParam("order_id") String orderId
)
    throws NotFoundException {
        return delegate.deleteOrder(orderId);
    }
 
Example #26
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@POST
    @Path("/outer/string")
    
    @Produces({ "*/*" })
    @io.swagger.annotations.ApiOperation(value = "", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", })
    @io.swagger.annotations.ApiResponses(value = { 
        @io.swagger.annotations.ApiResponse(code = 200, message = "Output string", response = String.class) })
    public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) String body
)
    throws NotFoundException {
        return delegate.fakeOuterStringSerialize(body);
    }
 
Example #27
Source File: UserApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@POST
    @Path("/createWithArray")
    
    
    @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", })
    @io.swagger.annotations.ApiResponses(value = { 
        @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) })
    public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid  List<User> body
,@Context SecurityContext securityContext)
    throws NotFoundException {
        return delegate.createUsersWithArrayInput(body, securityContext);
    }
 
Example #28
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@PATCH
    
    @Consumes({ "application/json" })
    @Produces({ "application/json" })
    @io.swagger.annotations.ApiOperation(value = "To test \"client\" model", notes = "To test \"client\" model", response = Client.class, tags={ "fake", })
    @io.swagger.annotations.ApiResponses(value = { 
        @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) })
    public Response testClientModel(@ApiParam(value = "client model" ,required=true) Client body
)
    throws NotFoundException {
        return delegate.testClientModel(body);
    }
 
Example #29
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@PUT
    @Path("/body-with-query-params")
    @Consumes({ "application/json" })
    
    @io.swagger.annotations.ApiOperation(value = "", notes = "", response = Void.class, tags={ "fake", })
    @io.swagger.annotations.ApiResponses(value = { 
        @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) })
    public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull  String query
,@ApiParam(value = "", required = true) @NotNull @Valid  User user
,@Context SecurityContext securityContext)
    throws NotFoundException {
        return delegate.testBodyWithQueryParams(query, user, securityContext);
    }
 
Example #30
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@PATCH

@Consumes({ "application/json" })
@Produces({ "application/json" })
@io.swagger.annotations.ApiOperation(value = "To test \"client\" model", notes = "To test \"client\" model", response = Client.class, tags={ "fake",  })
@io.swagger.annotations.ApiResponses(value = { 
    @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) })
public Response testClientModel(
    @ApiParam(value = "client model", required = true) @NotNull @Valid  Client body,
    @Context SecurityContext securityContext)
throws NotFoundException {
    return delegate.testClientModel(body,securityContext);
}