Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

Get a server response

GET {{baseUrl}}/mocks/{{mockId}}/server-responses/{{serverResponseId}}

Gets information about a server response.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "createdAt": "2022-08-02T15:08:03.000Z", "updatedAt": "2022-08-02T15:08:03.000Z", "id": "965cdd16-fe22-4d96-a161-3d05490ac421", "name": "Internal Server Error", "statusCode": 500, "headers": [], "language": null, "body": "{\n \"message\": \"Something went wrong; try again later.\"\n}", "createdBy": "20891195", "updatedBy": "20891195", "mock": "32cd624d-9986-4f20-9048-89252f722269" }



Curl
curl -X GET 'https://api.getpostman.com/mocks/mockId/server-responses/serverResponseId'

ENDPOINTS