I've been testing out stoplight prism https://stoplight.io/open-source/prism/ and using a https://petstore.swagger.io/ doc to run my mocks I'm able to use the GET method for /pet and get mocked results back using Prism. The swagger is requesting me to authenticate to use the PUT/UPDATE/DELETE methods.
After authenticating with the steps below. I'm still getting an error:
{
"type":"https://stoplight.io/prism/errors#NOT_ACCEPTABLE",
"title":"The server cannot produce a representation for your accept header",
"status":406,
"detail":"Unable to find content for application/json"
}
Steps:
- https://petstore.swagger.io/
- click authorize
- I add in a random client_id
- then add read and write scopes.
- I open my postman and select Authorization and add the following:
I click the Get New Access Token button and click the option to add token.
Then in my headers I add the following:
When I do my post I get the following error:
{
"type":"https://stoplight.io/prism/errors#NOT_ACCEPTABLE",
"title":"The server cannot produce a representation for your accept header",
"status":406,
"detail":"Unable to find content for application/json"
}