{
 "openapi": "3.0.3",
 "info": {
  "title": "Portal API",
  "version": "1.4.0"
 },
 "servers": [
  {
   "url": "https://alnetiq.com/api/v1"
  }
 ],
 "components": {
  "securitySchemes": {
   "ApiKeyAuth": {
    "type": "apiKey",
    "in": "header",
    "name": "X-Api-Key"
   }
  }
 },
 "paths": {
  "/status": {
   "get": {
    "summary": "Service health",
    "responses": {
     "200": {
      "description": "OK"
     }
    }
   }
  },
  "/users": {
   "get": {
    "summary": "List users",
    "security": [
     {
      "ApiKeyAuth": []
     }
    ],
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "schema": {
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "Key required"
     }
    }
   }
  },
  "/auth/token": {
   "post": {
    "summary": "Obtain access token",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "client_id": {
          "type": "string"
         },
         "client_secret": {
          "type": "string"
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Token"
     },
     "401": {
      "description": "Invalid client"
     }
    }
   }
  }
 }
}