TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Return valid JSON mislabelled as text/html

GEThttps://api.testingapis.com/api/formats/wrong-content-typeSign in to see this endpoint's URL

Return valid JSON mislabelled as text/html.

Responses

200
Success.

Example

Request
curl -X GET "https://api.testingapis.com/api/formats/wrong-content-type" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
Content-Type: text/html; charset=utf-8

{"id":1,"name":"Alice Johnson","email":"alice@example.com","roles":["admin","editor"],"active":true,"score":98.5,"manager":null}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.