{
  "opencollection": "1.0.0",
  "info": {
    "name": "Elementum Access Token Views API",
    "version": "0.0.1"
  },
  "items": [
    {
      "info": {
        "name": "Views",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List views under an app",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "/v1/apps/:alias/views",
            "params": [
              {
                "name": "alias",
                "value": "",
                "type": "path",
                "description": "The app's namespace or its UUID"
              },
              {
                "name": "first",
                "value": "",
                "type": "query",
                "description": "The number of elements to retrieve after the 'after' cursor location"
              },
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "The starting cursor to begin searching, defaults to the beginning of the list"
              },
              {
                "name": "last",
                "value": "",
                "type": "query",
                "description": "The number of elements to retrieve before the 'before' cursor location"
              },
              {
                "name": "before",
                "value": "",
                "type": "query",
                "description": "The starting cursor to begin searching, defaults to the end of the list"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List views under an app"
        },
        {
          "info": {
            "name": "Create a view under an app",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "/v1/apps/:alias/views",
            "params": [
              {
                "name": "alias",
                "value": "",
                "type": "path",
                "description": "The app's namespace or its UUID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create a view under an app"
        },
        {
          "info": {
            "name": "Get a view by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "/v1/apps/:alias/views/:id",
            "params": [
              {
                "name": "alias",
                "value": "",
                "type": "path",
                "description": "The app's namespace or its UUID"
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The resource ID"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get a view by ID"
        },
        {
          "info": {
            "name": "Update a view under an app",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "/v1/apps/:alias/views/:id",
            "params": [
              {
                "name": "alias",
                "value": "",
                "type": "path",
                "description": "The app's namespace or its UUID"
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Portable cross-environment identifier (client handle) of the view to update"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update a view under an app"
        }
      ]
    }
  ],
  "bundled": true
}