I am going to implement a POST API in an existing resource class StudentResource
, which contains already a POST REST API in order to create a Student
.
The new POST API is basically for validating a Student
entity, of the following form:
POST /api/student/validate Request Body: { student_id : <>, validation_type : <> }
Now, I am not able to understand, should I create a new resource class: StudentValidationResource
to put this new validate REST API or should I put this in existing StudentResource
.
Could anyone please help here?
https://stackoverflow.com/questions/67310114/putting-multiple-post-api-in-a-single-resource-class-in-spring-boot-application April 29, 2021 at 10:06AM
没有评论:
发表评论