-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document one REST endpoint with springdoc #82 #150
base: main
Are you sure you want to change the base?
Conversation
src/main/java/cz/cvut/kbss/analysis/controller/ComponentController.java
Outdated
Show resolved
Hide resolved
src/main/java/cz/cvut/kbss/analysis/controller/ComponentController.java
Outdated
Show resolved
Hide resolved
src/main/java/cz/cvut/kbss/analysis/controller/ComponentController.java
Outdated
Show resolved
Hide resolved
src/main/java/cz/cvut/kbss/analysis/controller/ComponentController.java
Outdated
Show resolved
Hide resolved
src/main/java/cz/cvut/kbss/analysis/controller/ComponentController.java
Outdated
Show resolved
Hide resolved
5a59410
to
ea45c29
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kostobog see my comments
@ApiResponses(value = { | ||
@ApiResponse(responseCode = "201", description = "Failure mode added"), | ||
@ApiResponse(responseCode = "400", description = """ | ||
Invalid Invalid failureMode, e.g. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invalid Invalid failureMode, e.g. | |
Invalid failure mode, e.g. |
- The uri should be null or unique | ||
- Duplicate entity name | ||
- Name must not be empty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The uri should be null or unique | |
- Duplicate entity name | |
- Name must not be empty | |
- failure mode uri is not null nor unique. | |
- failure mode name already exists. | |
- failure mode name is empty. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to make it more consistent as it seemed to me that some of the bulets have semantics of errors (Duplicate entity name) and other ones semantics of constraints (The uri should be null or unique)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@blcham |
Resolves #82
if you like this style of documentation, I can document the other endpoints in the current ticket.