ENH: Add cURL Examples to HTTP Docs
#1113
- Added Curl Examples to HTTP Docs. For Better DX.
- Fixed Response which we actually get from the calls.
Attaching screenshots for the same.
Incase of any changes please let me know.
cc @JyotinderSingh
Is there a way we can have a tabbed layout for the request and curl command? The first tab could show the existing content, and the second tab could be titled "cURL" and display the curl request when clicked.
Hi, I think the suggestion of having a tabbed layout is fantastic. I found one resource if that helps: https://docusaurus.io/docs/next/markdown-features/tabs.
Looking forward to see this change.
Thanks Apoorv
@JyotinderSingh @apoorvyadav1111
Done sir
Here the Attached Screenshots, Kindly check once.
Kindly let me know in case of further changes. 🚀
Hi @vanshavenger , I tried the changes in my local and they look way better now. I am curious about syncing the tabs. When you click cURL on one, it will update for every other tab. What do you think about this idea?
@apoorvyadav1111 Done sir!!!
Kindly check and let me know if you like it
Hi @vanshavenger , some of the requests use localhost:8082 and some use your_server_url. We need to ensure we keep only one. I am not sure about which one. Maybe @JyotinderSingh can share his views on this.
@apoorvyadav1111 Ig we should keep it your_server_url as it is more generic. As Developers can run it on their instances or local host. and PORT also be PORT everywhere. as it can be config with --http-port flag.
Will wait for @JyotinderSingh inputs for the same and will commit new changes based on that.
@apoorvyadav1111 Ig we should keep it your_server_url as it is more generic.
As Developers can run it on their instances or local host. and PORT also be PORT everywhere. as it can be config with --http-port flag.
Will wait for @JyotinderSingh inputs for the same and will commit new changes based on that.
This sounds good to me, let's keep it as your_server_url.
Thanks for introducing the tabbed layout, it looks amazing. Will get folks to use this across other parts of the codebase as well.
@JyotinderSingh done sir, For HTTP Request have kept it as /GET.
as on the same page it is mentioned we need to use http://your-server-address:port/
@apoorvyadav1111 done🚀