|
1 | 1 | // |
2 | | -// Copyright (C) 2020-2021 IOTech Ltd |
| 2 | +// Copyright (C) 2020-2022 IOTech Ltd |
3 | 3 | // |
4 | 4 | // SPDX-License-Identifier: Apache-2.0 |
5 | 5 |
|
@@ -100,11 +100,12 @@ const ( |
100 | 100 | ApiTransmissionByStatusRoute = ApiTransmissionRoute + "/" + Status + "/{" + Status + "}" |
101 | 101 | ApiTransmissionByNotificationIdRoute = ApiTransmissionRoute + "/" + Notification + "/" + Id + "/{" + Id + "}" |
102 | 102 |
|
103 | | - ApiConfigRoute = ApiBase + "/config" |
104 | | - ApiMetricsRoute = ApiBase + "/metrics" |
105 | | - ApiPingRoute = ApiBase + "/ping" |
106 | | - ApiVersionRoute = ApiBase + "/version" |
107 | | - ApiSecretRoute = ApiBase + "/secret" |
| 103 | + ApiConfigRoute = ApiBase + "/config" |
| 104 | + ApiMetricsRoute = ApiBase + "/metrics" |
| 105 | + ApiPingRoute = ApiBase + "/ping" |
| 106 | + ApiVersionRoute = ApiBase + "/version" |
| 107 | + ApiSecretRoute = ApiBase + "/secret" |
| 108 | + ApiUnitsOfMeasureRoute = ApiBase + "/uom" |
108 | 109 |
|
109 | 110 | ApiDeviceCallbackRoute = ApiBase + "/callback/device" |
110 | 111 | ApiDeviceCallbackNameRoute = ApiBase + "/callback/device/name/{name}" |
@@ -284,10 +285,12 @@ const ( |
284 | 285 |
|
285 | 286 | // Constants related to the possible content types supported by the APIs |
286 | 287 | const ( |
| 288 | + Accept = "Accept" |
287 | 289 | ContentType = "Content-Type" |
288 | 290 | ContentLength = "Content-Length" |
289 | 291 | ContentTypeCBOR = "application/cbor" |
290 | 292 | ContentTypeJSON = "application/json" |
| 293 | + ContentTypeTOML = "application/toml" |
291 | 294 | ContentTypeYAML = "application/x-yaml" |
292 | 295 | ContentTypeText = "text/plain" |
293 | 296 | ContentTypeXML = "application/xml" |
|
0 commit comments