{
  "swagger": "2.0",
  "info": {
    "title": "Advanced Action API",
    "version": "",
    "description": "A resource action is – in fact – a state transition. This API example demonstrates an action - state transition - to another resource.\n\n## API Blueprint\n\n+ [Previous: Resource Model](11.%20Resource%20Model.md)\n\n+ [This: Raw API Blueprint](https://raw.github.com/apiaryio/api-blueprint/master/examples/12.%20Advanced%20Action.md)\n\n+ [Next: Named Endpoints](13.%20Named%20Endpoints.md)"
  },
  "paths": {
    "/tasks/tasks": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "examples": {
              "application/json": [
                {
                  "id": 123,
                  "name": "Exercise in gym",
                  "done": false,
                  "type": "task"
                },
                {
                  "id": 124,
                  "name": "Shop for groceries",
                  "done": true,
                  "type": "task"
                }
              ]
            }
          }
        },
        "summary": "List All Tasks",
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "description": "",
            "required": true,
            "type": "string"
          },
          {
            "name": "priority",
            "in": "query",
            "description": "",
            "required": true,
            "type": "number"
          }
        ],
        "produces": [
          "application/json"
        ]
      }
    },
    "/task/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "examples": {
              "application/json": {
                "id": 123,
                "name": "Go to gym",
                "done": false,
                "type": "task"
              }
            }
          }
        },
        "summary": "Retrieve Task",
        "description": "This is a state transition to another resource",
        "tags": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ]
      },
      "delete": {
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {},
            "examples": {}
          }
        },
        "summary": "Delete Task",
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "",
            "required": true,
            "type": "string"
          }
        ]
      }
    }
  },
  "definitions": {
    "Tasks": {}
  },
  "securityDefinitions": {},
  "tags": []
}