[
  {
    "title": "Returns a list of users",
    "canonical": "returns-a-list-of-users",
    "description": "Optional extended description in CommonMark or HTML.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/users",
      "group": [
        ""
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "codeblock": {
                "tabs": [
                  {
                    "title": "shell",
                    "language": "shell",
                    "code": "curl --request GET \\\n     --url https://example.com/users \\\n     --header 'accept: application/json'"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "const options = {method: 'GET', headers: {accept: 'application/json'}};\n\nfetch('https://example.com/users', options)\n  .then(res => res.json())\n  .then(res => console.log(res))\n  .catch(err => console.error(err));"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "import requests\n\nurl = \"https://example.com/users\"\n\nheaders = {\"accept\": \"application/json\"}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.text)"
                  },
                  {
                    "title": "go",
                    "language": "go",
                    "code": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io\"\n)\n\nfunc main() {\n\n\turl := \"https://example.com/users\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"accept\", \"application/json\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := io.ReadAll(res.Body)\n\n\tfmt.Println(string(body))\n\n}"
                  }
                ]
              }
            }
          ],
          "kind": "request"
        },
        {
          "description": "Example response",
          "examples": [
            {
              "codeblock": {
                "title": "200",
                "tabs": [
                  {
                    "title": "application/json",
                    "language": "json",
                    "code": "[\n  {\n    \"message\": \"string\",\n    \"id\": 0,\n    \"username\": \"string\",\n    \"email\": \"user@example.com\",\n    \"status\": \"active\",\n    \"createdAt\": \"2019-08-24T14:15:22Z\",\n    \"updatedAt\": \"2019-08-24T14:15:22Z\"\n  }\n]"
                  }
                ]
              }
            }
          ],
          "kind": "response"
        }
      ]
    },
    "definitions": [
      {
        "title": "Response",
        "type": "return",
        "variants": [
          {
            "title": "200",
            "description": "A JSON array of users",
            "properties": [],
            "rootProperty": {
              "type": "$$array",
              "properties": [
                {
                  "name": "message",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "id",
                  "type": "integer",
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "username",
                  "type": "string",
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "email",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "status",
                  "type": "$$enum",
                  "description": "",
                  "meta": [
                    {
                      "name": "enum-type",
                      "value": "string"
                    }
                  ],
                  "properties": [
                    {
                      "name": "active",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "inactive",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  }
                },
                {
                  "name": "createdAt",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "updatedAt",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ]
            },
            "meta": [
              {
                "name": "status",
                "value": "200"
              },
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "definitionDescription",
                "value": ""
              }
            ],
            "symbolDef": {
              "id": []
            }
          }
        ],
        "properties": []
      }
    ]
  },
  {
    "title": "Response",
    "description": "",
    "canonical": "objects/Response",
    "definitions": [
      {
        "title": "Response",
        "properties": [
          {
            "name": "message",
            "type": "string",
            "description": "",
            "meta": []
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/Response",
          "canonical": "objects/Response",
          "label": "Response"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "codeblock": {
                "tabs": [
                  {
                    "title": "json",
                    "language": "json",
                    "code": "{\n  \"message\": \"\"\n}"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "Response",
      "group": [
        "Objects"
      ]
    }
  },
  {
    "title": "User",
    "description": "",
    "canonical": "objects/User",
    "definitions": [
      {
        "title": "User",
        "properties": [
          {
            "name": "id",
            "type": "integer",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "username",
            "type": "string",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "email",
            "type": "string",
            "description": "",
            "meta": []
          },
          {
            "name": "status",
            "type": "$$enum",
            "description": "",
            "meta": [
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "active",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "inactive",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "createdAt",
            "type": "string",
            "description": "",
            "meta": []
          },
          {
            "name": "updatedAt",
            "type": "string",
            "description": "",
            "meta": []
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/User",
          "canonical": "objects/User",
          "label": "User"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "codeblock": {
                "tabs": [
                  {
                    "title": "json",
                    "language": "json",
                    "code": "{\n  \"id\": 0,\n  \"username\": \"\",\n  \"email\": \"\",\n  \"status\": \"\",\n  \"createdAt\": \"\",\n  \"updatedAt\": \"\"\n}"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "User",
      "group": [
        "Objects"
      ]
    }
  }
]