Skip to content
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

User URL paramerter as the value for a field inside the request body #144

Closed
Alwyn2000 opened this issue Jun 11, 2020 · 0 comments
Closed

Comments

@Alwyn2000
Copy link

Hello,
If I have PUT request and request body like below, if I want to set the id in request body same as the id in URL, what should I do? Can I use something like

id: 'request.query.id' ??

URL:
PUT http://localhost/api/v1/update/student/{id}
Request Body
{
"id": null,
"name": "string"
"age" : "string"
}

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

No branches or pull requests

1 participant