Mritunjay Upadhyay
Mritunjay Upadhyay

Reputation: 1094

post request in nodejs without frontend

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'.

Upvotes: 0

Views: 429

Answers (3)

Sanjay
Sanjay

Reputation: 1007

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

Upvotes: 0

Selmi Karim
Selmi Karim

Reputation: 2235

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

Upvotes: 0

Bless
Bless

Reputation: 5370

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

Upvotes: 1

Related Questions