Skip to content

Added Created HTTP response code for Role and User post methods #381

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

Conversation

b0
Copy link
Contributor

@b0 b0 commented Oct 22, 2019

When creating Role or User api will return Location header with uri for new entity and json dto with id for created entity...

Copy link
Contributor

@xmichaelx xmichaelx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've read the PR - looks ok, I'll run it and check how it works - it would be nice if it would have some tests as well, but we also can address that after merging and set up requirement for newer PRs to have some tests attached

@skoruba
Copy link
Owner

skoruba commented Oct 25, 2019

I will add new project for tests regarding to API #383

@b0
Copy link
Contributor Author

b0 commented Oct 25, 2019

Would you merge this since you are ok with it?

Also, is there a "chat room" with two of you where we can discuss further developments and goals? Maybe I can help.

Thank you

@skoruba
Copy link
Owner

skoruba commented Nov 4, 2019

I will test it, it would be nice implement same logic into all methods for creation of some entity. What do you think?

@maulik-modi
Copy link

@b0, would it be possible for you to apply same logic into all methods for creation of some entity ?

@b0
Copy link
Contributor Author

b0 commented Nov 20, 2019

@skoruba, @xmichaelx I have added 201 response with Location header for all controllers post methods where applicable.
Feel free to review.

@skoruba
Copy link
Owner

skoruba commented Nov 20, 2019

@b0 - great work! I will test it. 👍🏼😊

@skoruba skoruba changed the base branch from dev to feature/api-created-response December 2, 2019 12:39
@skoruba skoruba merged commit cc5c32d into skoruba:feature/api-created-response Dec 2, 2019
@b0 b0 deleted the feature/return-created201-http-response branch December 11, 2019 09:07
@skoruba skoruba mentioned this pull request Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants