Automile ClientApiAuthorizations API

The ClientApiAuthorizations API from Automile — 2 operation(s) for clientapiauthorizations.

OpenAPI Specification

automile-clientapiauthorizations-api-openapi.yml Raw ↑
swagger: '2.0'
info:
  title: Automile ClientApi ClientApiAuthorizations API
  version: v1
tags:
- name: ClientApiAuthorizations
paths:
  /v1/client/apiauthorizations:
    get:
      tags:
      - ClientApiAuthorizations
      summary: Get a list of user that has authorized the logged in API client for access
      description: Only users that has given authorization to the given API client will be returned
      produces:
      - text/plain
      - application/json
      - text/json
      responses:
        '200':
          description: The users are returned
          schema:
            type: array
            items:
              $ref: '#/definitions/APIAuthorizationModel'
        '500':
          description: Internal server error
      security:
      - oauth2: []
  /v1/client/apiauthorizations/{apiAuthorizationId}:
    get:
      tags:
      - ClientApiAuthorizations
      summary: Get the details about a specific user authorization
      operationId: GetByAPIAuthorizationId
      produces:
      - text/plain
      - application/json
      - text/json
      parameters:
      - in: path
        name: apiAuthorizationId
        description: The id of the authorization
        required: true
        type: integer
        format: int32
      responses:
        '200':
          description: The user details are returned
          schema:
            $ref: '#/definitions/APIAuthorizationModel'
        '403':
          description: Request is forbidden, meaning you dont' have access to this authorization
          schema:
            $ref: '#/definitions/ProblemDetails'
        '500':
          description: Internal server error
      security:
      - oauth2: []
definitions:
  ProblemDetails:
    type: object
    properties:
      type:
        type: string
      title:
        type: string
      status:
        format: int32
        type: integer
      detail:
        type: string
      instance:
        type: string
    additionalProperties: {}
  APIAuthorizationModel:
    type: object
    properties:
      APIAuthorizationId:
        format: int32
        type: integer
      IssueDate:
        format: date-time
        type: string
      APIClientId:
        format: int32
        type: integer
      UserId:
        format: int32
        type: integer
      ScopesDelimitedBySpaces:
        type: string
      ExpirationDateUtc:
        format: date-time
        type: string
    additionalProperties: false
securityDefinitions:
  oauth2:
    type: oauth2
    flow: implicit
    authorizationUrl: https://api.automile.com/login/
    scopes:
      read: Read access to protected resources
      write: Write access to protected resources
    description: OAuth2 Implicit Grant