File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
springdoc-openapi-javadoc/src/test/java/test/org/springdoc/api/app37 Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -67,26 +67,26 @@ public Car process(@RequestBody Car c) {
6767 return c ;
6868 }
6969
70+
7071 /**
7172 * Pets post response entity.
7273 *
7374 * @param pet the pet
7475 * @return the response entity
7576 */
76- @ PostMapping (value = "/pets " , consumes = "application/json " )
77- public ResponseEntity <Void > petsPost (@ Valid @ RequestBody Pet pet ) {
77+ @ PostMapping (value = "/pets1 " , consumes = "text/plain " )
78+ public ResponseEntity <Void > petsPost1 (@ Valid @ RequestBody String pet ) {
7879 return new ResponseEntity <Void >(HttpStatus .NOT_IMPLEMENTED );
7980 }
8081
8182 /**
8283 * Pets post response entity.
8384 *
84- * @param pet the pet
85+ * @param pet the pet
8586 * @return the response entity
8687 */
87- @ PostMapping (value = "/pets " , consumes = "text/plain " )
88- public ResponseEntity <Void > petsPost (@ Valid @ RequestBody String pet ) {
88+ @ PostMapping (value = "/pets2 " , consumes = "application/json " )
89+ public ResponseEntity <Void > petsPost2 (@ Valid @ RequestBody Pet pet ) {
8990 return new ResponseEntity <Void >(HttpStatus .NOT_IMPLEMENTED );
9091 }
91-
9292}
You can’t perform that action at this time.
0 commit comments