diff --git a/public/api/conf/1.0/application.yaml b/public/api/conf/1.0/application.yaml index 38c39fa..ec4dfc4 100644 --- a/public/api/conf/1.0/application.yaml +++ b/public/api/conf/1.0/application.yaml @@ -128,6 +128,25 @@ paths: code: FORBIDDEN deprecated: false components: + parameters: + acceptHeader: + name: Accept + in: header + description: "Specifies the response format and the version of the API to be used. For example: application/vnd.hmrc.2.0+json" + schema: + type: string + enum: [ + "application/vnd.hmrc.2.0+json", + "application/vnd.hmrc.2.0+xml" + ] + required: true + authorizationHeader: + name: Authorization + in: header + description: "An OAuth 2.0 Bearer Token" + schema: + type: string + required: true schemas: errorResponse: title: errorResponse diff --git a/public/api/conf/1.1/application.yaml b/public/api/conf/1.1/application.yaml index 0205b50..385140e 100644 --- a/public/api/conf/1.1/application.yaml +++ b/public/api/conf/1.1/application.yaml @@ -27,7 +27,9 @@ paths: summary: Get user information description: Retrieves OpenID Connect compliant information about the signed-in user operationId: Getuserinformation - parameters: [] + parameters: + - $ref: '#/components/parameters/authorizationHeader' + - $ref: '#/components/parameters/acceptHeader' responses: '200': description: '' @@ -132,6 +134,25 @@ paths: code: FORBIDDEN deprecated: false components: + parameters: + acceptHeader: + name: Accept + in: header + description: "Specifies the response format and the version of the API to be used. For example: application/vnd.hmrc.2.0+json" + schema: + type: string + enum: [ + "application/vnd.hmrc.2.0+json", + "application/vnd.hmrc.2.0+xml" + ] + required: true + authorizationHeader: + name: Authorization + in: header + description: "An OAuth 2.0 Bearer Token" + schema: + type: string + required: true schemas: errorResponse: title: errorResponse