Casos extremos de JSON
Casos extremos de JSON para pôr à prova parsers, asserções e a interface. A maioria dos corpos é JSON escrito à mão, para que os bytes exatos (emoji literais, -0, números enormes, chaves duplicadas) se mantenham.
- GET
https://api.testingapis.com/api/edge-casesList the available edge-case endpoints. - GET
https://api.testingapis.com/api/edge-cases/datesReturn one instant in many date formats, plus invalid and boundary dates. - GET
https://api.testingapis.com/api/edge-cases/deepReturn an object nested to the requested depth. - GET
https://api.testingapis.com/api/edge-cases/duplicate-keysReturn raw JSON text that contains duplicate keys. - GET
https://api.testingapis.com/api/edge-cases/empty-arrayReturn exactly[]. - GET
https://api.testingapis.com/api/edge-cases/empty-objectReturn exactly{}. - GET
https://api.testingapis.com/api/edge-cases/large-arrayReturn a large array of objects. - GET
https://api.testingapis.com/api/edge-cases/mixed-arrayReturn an array that mixes every JSON type. - GET
https://api.testingapis.com/api/edge-cases/nullsReturn nulls alongside null-like values such as"null", empty strings, 0 and false. - GET
https://api.testingapis.com/api/edge-cases/numbersReturn numeric edge cases: 64-bit limits, unsafe integers, -0 and float precision. - GET
https://api.testingapis.com/api/edge-cases/special-keysReturn an object with awkward keys: empty, dotted,__proto__, quoted, emoji and case variants. - GET
https://api.testingapis.com/api/edge-cases/stringsReturn string edge cases: unicode, emoji, RTL, zero-width, escapes, injection-looking text and a ~10 KB string. - GET
https://api.testingapis.com/api/edge-cases/top-level/{kind}Return a bare JSON scalar or array as the whole body. - GET
https://api.testingapis.com/api/edge-cases/typesReturn one of every JSON value type, including empty and look-alike values. - GET
https://api.testingapis.com/api/edge-cases/wideReturn an object with many keys.
Requisição de exemplo
List the available edge-case endpoints. Referência completa e botão Send (em inglês).
cURL
curl -X GET "https://api.testingapis.com/api/edge-cases"Resposta · 200 OK
{"endpoints": ["types", "numbers", "… 16 more items"]}