🚰 Kitchen Sink
Post request
The POST method is used to submit data to be processed by the server.
It typically results in the creation of a new resource on the server.
POST requests are not idempotent as each request creates a new resource, and subsequent identical requests may result in multiple resources being created.
Typical Usage:
POST requests are commonly used for operations that create new resources or trigger specific actions on the server.
For example,
creating a new user account, submitting a form, or making a purchase.
post/kitchen-sink/http-methods/post
Response
Post request
Example response
{
"data": {
"headers": {
"accept": "*/*",
"accept-encoding": "gzip, deflate, br",
"cache-control": "no-cache",
"connection": "keep-alive",
"content-length": "0",
"cookie": "accessToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NDg5NjI2ZGMyNjVmMGFhMmRiYjczYTQiLCJlbWFpbCI6IndhamUuc2h1YmhhbTExMTJAZ21haWwuY29tIiwidXNlcm5hbWUiOiJ3YWplc2h1YmhhbTIiLCJyb2xlIjoiQURNSU4iLCJpYXQiOjE2ODY3Mjc3MjAsImV4cCI6MTY4NjgxNDEyMH0.X7DSYAaqIFVtNxqDSYWW40NNoxu-npBh0Yo7dsPIfBg; refreshToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NDg5NjI2ZGMyNjVmMGFhMmRiYjczYTQiLCJpYXQiOjE2ODY3Mjc3MjAsImV4cCI6MTY4NzU5MTcyMH0.sesIJ2P7EqaauA8JbNFe-7vbWMhH7uhiPn25x4zUG0I",
"host": "localhost:8080",
"postman-token": "b38af068-46cf-4301-84e3-43c8976ffc6f",
"user-agent": "PostmanRuntime/7.32.2"
},
"method": "POST",
"origin": "::ffff:172.27.0.3",
"url": "http://localhost:8080/api/v1/kitchen-sink/http-methods/post"
},
"message": "POST request",
"statusCode": 200,
"success": true
}