Cas limites JSON
Des cas limites JSON pour éprouver les parseurs, les assertions et l’affichage. La plupart des corps sont du JSON brut écrit à la main, pour que les octets exacts (emoji littéraux, -0, nombres énormes, clés en double) soient conservés.
Votre compte débloque ces points d’accès. Utilisez Try it sur la page de chaque point d’accès pour envoyer des requêtes.
Ces points d’accès demandent un compte gratuit. Créez-en un ou connectez-vous pour voir leurs détails et les essayer ici.
- GET
https://api.testingapis.com/api/edge-casesList the available edge-case endpointsList the available edge-case endpoints. - GET
https://api.testingapis.com/api/edge-cases/datesReturn one instant in many date formats, plus invalid and boundary 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 depthReturn an object nested to the requested depth. - GET
https://api.testingapis.com/api/edge-cases/duplicate-keysReturn raw JSON text that contains duplicate keysReturn raw JSON text that contains duplicate keys. - GET
https://api.testingapis.com/api/edge-cases/empty-arrayReturn exactly []Return exactly[]. - GET
https://api.testingapis.com/api/edge-cases/empty-objectReturn exactly {}Return exactly{}. - GET
https://api.testingapis.com/api/edge-cases/large-arrayReturn a large array of objectsReturn a large array of objects. - GET
https://api.testingapis.com/api/edge-cases/mixed-arrayReturn an array that mixes every JSON typeReturn 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 falseReturn nulls alongside null-like values such as"null", empty strings, 0 and false. - GET
https://api.testingapis.com/api/edge-cases/numbersReturn numeric edge casesReturn 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 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 casesReturn 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 bodyReturn 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 valuesReturn 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 keysReturn an object with many keys.
Exemple de requête
List the available edge-case endpoints. Référence complète et bouton Send (en anglais).
curl -X GET "https://api.testingapis.com/api/edge-cases"{"endpoints": ["types", "numbers", "… 16 more items"]}Connectez-vous pour voir les détails
Les paramètres, les exemples de requête et de réponse et le panneau Try it en direct pour ces points d’accès sont réservés aux membres connectés. Les comptes sont gratuits et se créent en quelques secondes.