dynamic-cli icon indicating copy to clipboard operation
dynamic-cli copied to clipboard

Implement POST in dynamic to post the response from an API

Open GouravSardana opened this issue 4 years ago • 6 comments

This feature will include the following things -

  1. Once a user will enter dynamic -POST, it will ask for a URL to put and the default URL would be 127.0.0.1:8000 and it will ask for the endpoint or you can put it directly in the URL itself
  2. It will ask for headers then it will ask for payloads
  3. Optional param - User-Agent
  4. It will build on top of CURL.
  5. The output will get in JSON with proper syntax highlighter.

Example -

  • dynamic -POST
  • Enter the URL with endpoint - [press enter - default would be 127.0.0.1:800]
  • Headers - Enter headers
  • User Agent [Optional]

Posting (loading emoji)


{
json output
}

GouravSardana avatar Apr 03 '21 05:04 GouravSardana

Hi, Can I take up this issue ??

Ramas1998 avatar Apr 10 '21 10:04 Ramas1998

@anshsrtv I see no pr has been made can u please assign me I will send pr within 2 days

subhangi2731 avatar May 21 '21 17:05 subhangi2731

@GouravSardana I would like to take up this issue

harshakhmk avatar Jun 08 '21 09:06 harshakhmk

Yes you can @harshakhmk

GouravSardana avatar Jun 08 '21 09:06 GouravSardana

How shall we take POST request payload, shall we take it as input from terminal and convert them into a dictionary or shall we read it from a JSON @GouravSardana @pranavbaburaj

harshakhmk avatar Jun 08 '21 10:06 harshakhmk

How shall we take POST request payload, shall we take it as input from the terminal and convert them into a dictionary or shall we read it from a JSON @GouravSardana @pranavbaburaj

Well, I think we should add both ways. So that, the user can choose which one to do.

lainq avatar Jun 09 '21 10:06 lainq