Java Code Examples for org.springframework.http.HttpStatus#NOT_IMPLEMENTED
The following examples show how to use
org.springframework.http.HttpStatus#NOT_IMPLEMENTED .
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 |
/** * PUT /pet : Update an existing pet * * @param body Pet object that needs to be added to the store (required) * @return successful operation (status code 200) * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) * or Validation exception (status code 405) */ @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation"), @ApiResponse(code = 400, message = "Invalid ID supplied"), @ApiResponse(code = 404, message = "Pet not found"), @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.PUT) default ResponseEntity<Void> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 2
Source File: FakeApi.java From openapi-generator with Apache License 2.0 | 6 votes |
/** * POST /fake/{petId}/uploadImageWithRequiredFile : uploads an image (required) * * @param petId ID of pet to update (required) * @param requiredFile file to upload (required) * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping(value = "/fake/{petId}/uploadImageWithRequiredFile", produces = { "application/json" }, consumes = { "multipart/form-data" }, method = RequestMethod.POST) default ResponseEntity<ModelApiResponse> uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } } }); return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 3
Source File: FakeClassnameTestApi.java From openapi-generator with Apache License 2.0 | 6 votes |
/** * PATCH /fake_classname_test : To test class name in snake case * To test class name in snake case * * @param body client model (required) * @return successful operation (status code 200) */ @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping(value = "/fake_classname_test", produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) default ResponseEntity<Client> testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } } }); return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 4
Source File: FakeClassnameTestApi.java From openapi-generator with Apache License 2.0 | 6 votes |
/** * PATCH /fake_classname_test : To test class name in snake case * To test class name in snake case * * @param body client model (required) * @return successful operation (status code 200) */ @ApiVirtual @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping(value = "/fake_classname_test", produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) default ResponseEntity<Client> testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } } }); return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 5
Source File: UserApi.java From openapi-generator with Apache License 2.0 | 5 votes |
/** * GET /user/login : Logs user into the system * * @param username The user name for login (required) * @param password The password for login in clear text (required) * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping(value = "/user/login", produces = "application/json", method = RequestMethod.GET) default ResponseEntity<String> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 6
Source File: StoreApi.java From openapi-generator with Apache License 2.0 | 5 votes |
/** * GET /store/inventory : Returns pet inventories by status * Returns a map of status codes to quantities * * @return successful operation (status code 200) */ @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @ApiImplicitParams({ }) @RequestMapping(value = "/store/inventory", produces = { "application/json" }, method = RequestMethod.GET) default ResponseEntity<Map<String, Integer>> getInventory() { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 7
Source File: PathApi.java From swagger-aem with Apache License 2.0 | 5 votes |
@ApiOperation(value = "", nickname = "postNodeRw", notes = "", authorizations = { @Authorization(value = "aemAuth") }, tags={ "sling", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Default response") }) @RequestMapping(value = "/{path}/{name}.rw.html", method = RequestMethod.POST) default ResponseEntity<Void> postNodeRw(@ApiParam(value = "",required=true) @PathVariable("path") String path,@ApiParam(value = "",required=true) @PathVariable("name") String name,@ApiParam(value = "") @Valid @RequestParam(value = "addMembers", required = false) String addMembers) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 8
Source File: PetApiController.java From openapi-generator with Apache License 2.0 | 5 votes |
/** * POST /pet/{petId}/uploadImage : uploads an image * * @param petId ID of pet to update (required) * @param additionalMetadata Additional data to pass to server (optional) * @param file file to upload (optional) * @return successful operation (status code 200) * @see PetApi#uploadFile */ public ResponseEntity<ModelApiResponse> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } } return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 9
Source File: PetApiDelegate.java From springdoc-openapi with Apache License 2.0 | 5 votes |
/** * @see PetApi#updatePetWithForm */ default ResponseEntity<Void> updatePetWithForm(Long petId, String name, String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 10
Source File: FakeApi.java From openapi-generator with Apache License 2.0 | 5 votes |
/** * GET /fake/jsonFormData : test json serialization of form data * * @param param field1 (required) * @param param2 field2 (required) * @return successful operation (status code 200) */ @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" }, method = RequestMethod.GET) default ResponseEntity<Void> testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 11
Source File: FakeApi.java From openapi-generator with Apache License 2.0 | 5 votes |
/** * POST /fake/outer/string * Test serialization of outer string types * * @param body Input string as post body (optional) * @return Output string (status code 200) */ @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping(value = "/fake/outer/string", produces = { "*/*" }, method = RequestMethod.POST) default ResponseEntity<String> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 12
Source File: UserApi.java From openapi-generator with Apache License 2.0 | 5 votes |
/** * POST /user/createWithArray : Creates list of users with given input array * * @param body List of user object (required) * @return successful operation (status code 200) */ @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @ApiImplicitParams({ }) @RequestMapping(value = "/user/createWithArray", method = RequestMethod.POST) default ResponseEntity<Void> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List<User> body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 13
Source File: StoreApiDelegate.java From springdoc-openapi with Apache License 2.0 | 4 votes |
/** * @see StoreApi#getOrderById */ default ResponseEntity<Order> getOrderById(Long orderId) { extract(); return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 14
Source File: FakeApi.java From openapi-generator with Apache License 2.0 | 3 votes |
/** * GET /fake : To test enum parameters * To test enum parameters * * @param enumHeaderStringArray Header parameter enum test (string array) (optional, default to new ArrayList<>()) * @param enumHeaderString Header parameter enum test (string) (optional, default to -efg) * @param enumQueryStringArray Query parameter enum test (string array) (optional, default to new ArrayList<>()) * @param enumQueryString Query parameter enum test (string) (optional, default to -efg) * @param enumQueryInteger Query parameter enum test (double) (optional) * @param enumQueryDouble Query parameter enum test (double) (optional) * @param enumFormStringArray Form parameter enum test (string array) (optional, default to $) * @param enumFormString Form parameter enum test (string) (optional, default to -efg) * @return Invalid request (status code 400) * or Not found (status code 404) */ @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @ApiResponse(code = 404, message = "Not found") }) @RequestMapping(value = "/fake", consumes = { "application/x-www-form-urlencoded" }, method = RequestMethod.GET) default ResponseEntity<Void> testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List<String> enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List<String> enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List<String> enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 15
Source File: PetApiDelegate.java From openapi-generator with Apache License 2.0 | 2 votes |
/** * PUT /pet : Update an existing pet * * @param body Pet object that needs to be added to the store (required) * @return successful operation (status code 200) * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) * or Validation exception (status code 405) * @see PetApi#updatePet */ default ResponseEntity<Void> updatePet(Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 16
Source File: StoreApiController.java From openapi-generator with Apache License 2.0 | 2 votes |
/** * DELETE /store/order/{order_id} : Delete purchase order by ID * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors * * @param orderId ID of the order that needs to be deleted (required) * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) * @see StoreApi#deleteOrder */ public ResponseEntity<Void> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 17
Source File: UserApiDelegate.java From openapi-generator with Apache License 2.0 | 2 votes |
/** * DELETE /user/{username} : Delete user * This can only be done by the logged in user. * * @param username The name that needs to be deleted (required) * @return Invalid username supplied (status code 400) * or User not found (status code 404) * @see UserApi#deleteUser */ default ResponseEntity<Void> deleteUser(String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 18
Source File: PetApiController.java From openapi-generator with Apache License 2.0 | 2 votes |
/** * POST /pet/{petId} : Updates a pet in the store with form data * * @param petId ID of pet that needs to be updated (required) * @param name Updated name of the pet (optional) * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) * @see PetApi#updatePetWithForm */ public ResponseEntity<Void> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 19
Source File: FakeApiDelegate.java From openapi-generator with Apache License 2.0 | 2 votes |
/** * POST /fake/outer/number * Test serialization of outer number types * * @param body Input number as post body (optional) * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ default ResponseEntity<BigDecimal> fakeOuterNumberSerialize(BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }
Example 20
Source File: UserApiDelegate.java From openapi-generator with Apache License 2.0 | 2 votes |
/** * GET /user/login : Logs user into the system * * @param username The user name for login (required) * @param password The password for login in clear text (required) * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) * @see UserApi#loginUser */ default ResponseEntity<String> loginUser(String username, String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }