-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhm-telematics-status-v1.yml
114 lines (109 loc) · 3.14 KB
/
hm-telematics-status-v1.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
swagger: '2.0'
host: api.high-mobility.com
info:
version: '1.0'
title: Telematics Status API
description: >-
This API allows lookups to see if a vehicle is eligible for telematics data. Currently, only BMW & MINI lookups are supported.
The API is currently only available in the production environment on https://api.high-mobility.com
securityDefinitions:
ServiceAccountToken:
type: apiKey
name: Authorization
description: >-
This is a Bearer token. Service Account Token is a temporary token for
server to service communication, find out more how to generate one at
https://high-mobility.com/learn/documentation/cloud-api/service-account-api/intro/
in: header
paths:
/v1/telematics_status:
post:
deprecated: true
security:
- ServiceAccountToken: []
tags:
- Telematics Status
summary: ''
responses:
'200':
schema:
$ref: '#/definitions/TelematicsStatusResponse'
description: Vehicle status requested successfully
'401':
schema:
$ref: '#/definitions/UnauthorizedErrors'
description: When an invalid ServiceAccountToken is used.
parameters:
- in: body
name: body
required: true
schema:
$ref: '#/definitions/TelematicsStatusRequest'
operationId: ApiWeb.TelematicsStatusController.create
description: >-
Retrieves the telematics status for a specific VIN. This can be used to
find out if the vehicle has the necessary connectivity to transmit data.
definitions:
TelematicsStatusResponse:
type: object
title: TelematicsStatusResponse
properties:
bmw:
type: object
properties:
telematics_capability:
type: string
enum:
- enabled
- disabled
- unknown
subscription_status:
type: string
enum:
- enabled
- disabled
- unknown
example:
bmw:
telematics_capability: enabled
subscription_status: enabled
description: Response of Telematics status
TelematicsStatusRequest:
type: object
properties:
vin:
type: string
description: Vehicle vin.
required:
- vin
UnauthorizedErrors:
type: object
title: Errors
properties:
errors:
description: List of errors
type: array
items:
$ref: '#/definitions/Error'
example:
- detail: >
Missing or invalid authorization header. The token must be
obtained through the service account API and sent as a header with
the format "Authorization: Bearer <token>"
source: Authorization
Error:
type: object
title: Error
required:
- title
properties:
title:
type: string
description: Error title
source:
type: string
description: Field that has problem
detail:
type: string
description: Error detail
description: Error details