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

Return an object nested to the requested depth

GEThttps://api.testingapis.com/api/edge-cases/deepSign in to see this endpoint's URL

Parameters 1

NameTypeDescription
depthquery · integer (int32)Nesting depth, 1–500, default 100. Many serializers stop at a default maximum depth of 64. Default: 100.

Responses

200
Success.
400
depth is outside 1–500 or not an integer.

Example

Request
curl -X GET "https://api.testingapis.com/api/edge-cases/deep?depth=3" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{"level": 1, "child": {"level": 2, "child": {"level": 3, "leaf": true}}}

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.