Add POST example to Calling REST APIs
The Calling REST APIs section demonstrates how to use LoopBack 4 to call GET APIs. It would be benefiting to the broader community to demonstrate how to call POST APIs. I have the todo-jwt example hosted in Heroku that could be used in the documentation to help illustrate the practical aspects of the topic. Feel free to use any open source POST API or placeholders to demonstrate the idea
Acceptance criteria
- [ ] Split the page into 2 sections; a) calling GET APIs and b) calling POST APIs
- [ ] Include step by step instructions of how to set up the 2 types of API calls
- [ ] Provide evidence of what the success or failure result would look like
- [ ] Include Common Task section that links out to further readings on the topics discussed such as datasources, controllers, services and models
Can I work on this change?
Thanks for your interest. Please go ahead @Ashwithabg
Hello, do you still need help on this issue? I'm learning how to document REST APIs and would love to use this as a learning experience.
@Ashwithabg, if I'm not mistaken, I do not see PRs related to this. I'm wondering if you're still on it? Thanks.
@dhmlau can I pick this up?
@dhmlau can I pick this up?
Hi. Feel free there has not been a PR on this
@mrmodise I have few question, so i have to edit this page, the tasks as you mentioned is to split pages into 2 sections, Usage of GET and POST with LoopBack 4. And you have already written how to use loopback to create GET api here.
So my question is, should I extend what you have written to explain POST request or I should write both from scratch?
and should the example include how authentication works or I can discard it?
@neel-desh, i think it would be good to edit this page to include the POST scenario as well. Feel free to add any information on how to get authentication works in that docs as well. We have a list of examples created by the community. If you think it would be useful to put it there, please add it to https://loopback.io/doc/en/lb4/Community-examples.html as well.
I might not be able to pick this. sorry. Someone else could go ahead and pick this up.
Can i pick this up?