openapi: 3.0.0
info:
  title: Android Services Authentication
  #  description: >-
  #    The Management for Electronic Sensors API is an eletronic sensor utility that manages information about sensors of different types and its tasks.
  description: Use the green **Authorize** button to enter your apikey.
  contact: {}
  version: "1.7.0"

servers:
  - url: 'https://api.zebra.com/v2'
    description: Production server
    variables: {}
security:
  - ApiKeyAuth: []

paths:
  /devices/credentials/token:
    post:
      summary: Creates an authentication token.
      tags:
        - Android Services Authentication
      description: Creates a token which is used by Android Services in order to authenticate the usage.
      operationId: Create Android Service token
      responses:
        '200':
          description: A successful response.
          headers: { }
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceTokenResponse'
        '401':
          description: Authentication information is missing or invalid.
          headers: { }
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_message'
      deprecated: false
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
  schemas:
    error_message:
      type: object
      example:
        Code: string
        Message: string
        Info: string
    DeviceTokenResponse:
      title: Response object containing the Android Services authentication token.
      type: object
      properties:
        token:
          title: Android Service token
          description: Generated Authentication Token
          type: string 
    