Skip to content

added custom HTTP-Methods for create and update#451

Closed
matsluni wants to merge 2 commits intomarmelab:masterfrom
matsluni:customHTTPMethods
Closed

added custom HTTP-Methods for create and update#451
matsluni wants to merge 2 commits intomarmelab:masterfrom
matsluni:customHTTPMethods

Conversation

@matsluni
Copy link
Copy Markdown
Contributor

Hi,

for a current task I need the possibility to set a custom HTTP method for a create operation, in my case 'put' instead of 'post'. I saw a similar request in #362.

I gave it a try in this pull request. The change I did works for me, so please consider merging if you think this is a useful addition.

If you think another approach for the same goal is better just get back to me.
I also tried to add tests for this in CreateQueriesSpec.js and UpdateQueriesSpec.js but couldn't figure out to set the xxxMethod on the entity. So, if you could give me a hint I will add this as well.

Kind regards,
Matthias

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The variable name isn't well chosen. Use resource instead. Same in UpdateQueries

@matsluni
Copy link
Copy Markdown
Contributor Author

Ok, I changed the variable name to resource. Is there anything more I can do?

@manuquentin
Copy link
Copy Markdown
Contributor

Can you rebase please ?

@matsluni
Copy link
Copy Markdown
Contributor Author

I tried to rebase and saw that you moved some pieces around! ;-) I have look closer to rebase correctly.

@jeromemacias
Copy link
Copy Markdown
Contributor

You will need to do all this modifications on the new https://github.com/marmelab/admin-config repository. Sorry for inconvenience.

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