I’ve noticed in the yaml definition here: https://swagger.api.smartthings.com/public/st-api.yml
There is a problem with both the parameter ‘authorization’ and the security Bearer. The definition states the ‘authorization’ parameter to be
required: true
Since this can be set in the security Bearer token this is not the case and should be set to false.
parameters:
authorization:
name: Authorization
in: header
description: OAuth token
required: true
type: string
format: string
eg for devices see:
r:devices:*
/devices/{deviceId}:
parameters:
- $ref: '#/parameters/authorization'
- $ref: '#/parameters/deviceId'
get:
summary: Get a device's description.
operationId: getDevice
description: Get a device's description.
security:
- Bearer:
- r:devices:*
responses:
200:
description: A Device
schema:
$ref: '#/definitions/Device'
401:
$ref: '#/responses/notAuthenticated'
403:
$ref: '#/responses/notAuthorized'
400:
$ref: '#/responses/badRequest'
429:
$ref: '#/responses/tooManyRequests'
default:
$ref: '#/responses/defaultResponse'
tags:
- devices