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) {
67
67
return c ;
68
68
}
69
69
70
+
70
71
/**
71
72
* Pets post response entity.
72
73
*
73
74
* @param pet the pet
74
75
* @return the response entity
75
76
*/
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 ) {
78
79
return new ResponseEntity <Void >(HttpStatus .NOT_IMPLEMENTED );
79
80
}
80
81
81
82
/**
82
83
* Pets post response entity.
83
84
*
84
- * @param pet the pet
85
+ * @param pet the pet
85
86
* @return the response entity
86
87
*/
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 ) {
89
90
return new ResponseEntity <Void >(HttpStatus .NOT_IMPLEMENTED );
90
91
}
91
-
92
92
}
You can’t perform that action at this time.
0 commit comments