-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implement REST API #14
Conversation
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.
Some minor comments. The code is very organized. I liked that you went above and beyond to handle id's and faking the list yourself.
… you want all or some details of the pet. In your case if you are just returning the type I would change the url to reflect this.
…onsists of basic parameters types, you can probably use Response.ok().entity(pet).build() and it will serialize the object already to a readable string.
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.
Nice, Just please watch the styling. There is a lot of mess and inconsistency. The IntelliJ allows to re-format before committing in the dialog. Or you can just format the code yourself manually.
Added GET, POST, PUT, and DELETE endpoints.
Tested API using Postman.