Automile ClientContracts API

The ClientContracts API from Automile — 3 operation(s) for clientcontracts.

OpenAPI Specification

automile-clientcontracts-api-openapi.yml Raw ↑
swagger: '2.0'
info:
  title: Automile ClientApi ClientContracts API
  version: v1
tags:
- name: ClientContracts
paths:
  /v1/client/contracts:
    get:
      tags:
      - ClientContracts
      summary: ''
      produces:
      - text/plain
      - application/json
      - text/json
      responses:
        '200':
          description: ''
          schema:
            $ref: '#/definitions/HttpResponseMessage'
        '500':
          description: Internal server error
      security:
      - oauth2: []
  /v1/client/contracts/journeys:
    get:
      tags:
      - ClientContracts
      summary: ''
      produces:
      - text/plain
      - application/json
      - text/json
      parameters:
      - in: query
        name: contractId
        type: integer
        format: int32
      - in: query
        name: fromDate
        type: string
        format: date-time
      - in: query
        name: toDate
        type: string
        format: date-time
      responses:
        '200':
          description: ''
          schema:
            $ref: '#/definitions/HttpResponseMessage'
        '500':
          description: Internal server error
      security:
      - oauth2: []
  /v1/client/contracts/confirmjourneys:
    post:
      tags:
      - ClientContracts
      summary: ''
      parameters:
      - in: query
        name: ids
        type: array
        items:
          format: int32
          type: integer
        collectionFormat: multi
      responses:
        '200':
          description: ''
        '500':
          description: Internal server error
      security:
      - oauth2: []
definitions:
  HttpRequestMessage:
    type: object
    properties:
      Version:
        $ref: '#/definitions/Version'
      VersionPolicy:
        format: int32
        enum:
        - 0
        - 1
        - 2
        type: integer
      Content:
        $ref: '#/definitions/HttpContent'
      Method:
        $ref: '#/definitions/HttpMethod'
      RequestUri:
        format: uri
        type: string
      Headers:
        type: array
        items:
          $ref: '#/definitions/StringStringIEnumerableKeyValuePair'
        readOnly: true
      Properties:
        type: object
        additionalProperties: {}
        readOnly: true
      Options:
        type: object
        additionalProperties: {}
        readOnly: true
    additionalProperties: false
  HttpContent:
    type: object
    properties:
      Headers:
        type: array
        items:
          $ref: '#/definitions/StringStringIEnumerableKeyValuePair'
        readOnly: true
    additionalProperties: false
  HttpResponseMessage:
    type: object
    properties:
      Version:
        $ref: '#/definitions/Version'
      Content:
        $ref: '#/definitions/HttpContent'
      StatusCode:
        format: int32
        enum:
        - 100
        - 101
        - 102
        - 103
        - 200
        - 201
        - 202
        - 203
        - 204
        - 205
        - 206
        - 207
        - 208
        - 226
        - 300
        - 301
        - 302
        - 303
        - 304
        - 305
        - 306
        - 307
        - 308
        - 400
        - 401
        - 402
        - 403
        - 404
        - 405
        - 406
        - 407
        - 408
        - 409
        - 410
        - 411
        - 412
        - 413
        - 414
        - 415
        - 416
        - 417
        - 421
        - 422
        - 423
        - 424
        - 426
        - 428
        - 429
        - 431
        - 451
        - 500
        - 501
        - 502
        - 503
        - 504
        - 505
        - 506
        - 507
        - 508
        - 510
        - 511
        type: integer
      ReasonPhrase:
        type: string
      Headers:
        type: array
        items:
          $ref: '#/definitions/StringStringIEnumerableKeyValuePair'
        readOnly: true
      TrailingHeaders:
        type: array
        items:
          $ref: '#/definitions/StringStringIEnumerableKeyValuePair'
        readOnly: true
      RequestMessage:
        $ref: '#/definitions/HttpRequestMessage'
      IsSuccessStatusCode:
        type: boolean
        readOnly: true
    additionalProperties: false
  StringStringIEnumerableKeyValuePair:
    type: object
    properties:
      Key:
        type: string
      Value:
        type: array
        items:
          type: string
    additionalProperties: false
  HttpMethod:
    type: object
    properties:
      Method:
        type: string
    additionalProperties: false
  Version:
    type: object
    properties:
      Major:
        format: int32
        type: integer
        readOnly: true
      Minor:
        format: int32
        type: integer
        readOnly: true
      Build:
        format: int32
        type: integer
        readOnly: true
      Revision:
        format: int32
        type: integer
        readOnly: true
      MajorRevision:
        format: int32
        type: integer
        readOnly: true
      MinorRevision:
        format: int32
        type: integer
        readOnly: true
    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