We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there any feature that queries only certain fields in the API based on user requests?
If this is the sample user data:
{ "id": 1, "name": "Leanne Graham", "username": "Bret", "email": "[email protected]", "address": { "street": "Kulas Light", "suite": "Apt. 556", "city": "Gwenborough", "zipcode": "92998-3874", "geo": { "lat": "-37.3159", "lng": "81.1496" } }, "phone": "1-770-736-8031 x56442", "website": "hildegard.org", "company": { "name": "Romaguera-Crona", "catchPhrase": "Multi-layered client-server neural-net", "bs": "harness real-time e-markets" } }
And if I hit https://jsonplaceholder.typicode.com/users/1?query=+id&+name&+username I want only the id, name and username in the response.
https://jsonplaceholder.typicode.com/users/1?query=+id&+name&+username
Or https://jsonplaceholder.typicode.com/users/1?query=-id&-name&-username to not send id, name and username in the response.
https://jsonplaceholder.typicode.com/users/1?query=-id&-name&-username
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is there any feature that queries only certain fields in the API based on user requests?
If this is the sample user data:
And if I hit
https://jsonplaceholder.typicode.com/users/1?query=+id&+name&+username
I want only the id, name and username in the response.Or
https://jsonplaceholder.typicode.com/users/1?query=-id&-name&-username
to not send id, name and username in the response.The text was updated successfully, but these errors were encountered: