0

I am making a node application. To test out some logic I go to browser and make request for a specific routes. It is good way in case of 'get request' but what to do in 'post request'.

1
  • You can use any add-ons like as postman, RESTClient, HttpRequester, etc for http requst of get, post, put, delelte, etc for check nodejs api request. Commented May 5, 2018 at 10:04

3 Answers 3

1

You can use any HTTP client like Postman or Insomnia or just curl.

Eg.:

curl -d '{"key1":"value1", "key2":"value2"}' -H "Content-Type: application/json" -X POST http://localhost:3000/data
Sign up to request clarification or add additional context in comments.

Comments

0

You can use postman to send post request

The Interface of Postman is changing acccording to the updates.

So You can get full information about postman can get Here.

https://www.getpostman.com/docs/requests

Comments

0

enter image description here

for sending json use raw for direct input set key value

use postman if you don't understand this youtube will give you awnser

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.