Skip to content

Commit

Permalink
Change how outgoing headers are specified. (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Yakushev committed Jan 7, 2019
1 parent f0227b0 commit 26bf3cf
Showing 1 changed file with 31 additions and 11 deletions.
42 changes: 31 additions & 11 deletions base.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,69 +35,89 @@
}
],
"components": {
"headers": {
"parameters": {
"Cache-Control": {
"description": "The standard HTTP Cache-Control header is required for all requests.",
"schema": {
"type": "string"
},
"required": true
"required": true,
"in": "header",
"name": "Cache-Control"
},
"User-Agent": {
"description": "The User-Agent header field should contain information about the user agent originating the request. There are no restrictions on the value of this header.",
"schema": {
"type": "string"
},
"required": true
"required": true,
"in": "header",
"name": "User-Agent"
},
"X-Bunq-Language": {
"description": "The X-Bunq-Language header must contain a preferred language indication. The value of this header is formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. Currently only the languages en_US and nl_NL are supported. Anything else will default to en_US.",
"schema": {
"type": "string"
},
"required": true
"required": true,
"in": "header",
"name": "X-Bunq-Language"
},
"X-Bunq-Region": {
"description": "The X-Bunq-Region header must contain the region (country) of the client device. The value of this header is formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore.",
"schema": {
"type": "string"
},
"required": true
"required": true,
"in": "header",
"name": "X-Bunq-Region"
},
"X-Bunq-Client-Request-Id": {
"description": "This header must specify an ID with each request that is unique for the logged in user. There are no restrictions for the format of this ID. However, the server will respond with an error when the same ID is used again on the same DeviceServer.",
"schema": {
"type": "string"
},
"required": true
"required": true,
"in": "header",
"name": "X-Bunq-Client-Request-Id"
},
"X-Bunq-Geolocation": {
"description": "This header must specify the geolocation of the device. The format of this value is longitude latitude altitude radius country. The country is expected to be formatted of an ISO 3166-1 alpha-2 country code. When no geolocation is available or known the header must still be included but can be zero valued.",
"schema": {
"type": "string"
},
"required": true
"required": true,
"in": "header",
"name": "X-Bunq-Geolocation"
},
"X-Bunq-Client-Signature": {
"description": "The signature header is included for all API calls except for POST /v1/installation. See the signing page for details on how to create this signature.",
"schema": {
"type": "string"
},
"required": true
"required": true,
"in": "header",
"name": "X-Bunq-Client-Signature"
},
"X-Bunq-Client-Authentication": {
"description": "The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call",
"schema": {
"type": "string"
},
"required": true
"required": true,
"in": "header",
"name": "X-Bunq-Client-Authentication"
},
"X-Bunq-Attachment-Description": {
"description": "This header should be used when uploading an Attachment's content to give it a description.",
"schema": {
"type": "string"
}
},
},
"in": "header",
"name": "X-Bunq-Attachment-Description"
}
},
"headers": {
"X-Bunq-Client-Response-Id": {
"description": "A unique ID for the response formatted as a UUID. Clients can use it to add extra protection against replay attacks.",
"schema": {
Expand Down

0 comments on commit 26bf3cf

Please sign in to comment.