Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update maxAge-behaviour for /verify & /retrieve #218

Merged
9 changes: 2 additions & 7 deletions code/API_definitions/location-retrieval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ info:
# Further info and support

(FAQs will be added in a later version of the documentation)
termsOfService: http://swagger.io/terms/
termsOfService: https://swagger.io/terms/
contact:
email: [email protected]
license:
Expand Down Expand Up @@ -366,11 +366,6 @@ components:
status: 400
code: INVALID_ARGUMENT
message: "Invalid argument"
MaxAgeIssue:
value:
status: 400
code: LOCATION_RETRIEVAL.MAXAGE_INVALID_ARGUMENT
message: "maxAge threshold cannot be satisfied"
Generic401:
description: Unauthenticated
headers:
Expand Down Expand Up @@ -429,7 +424,7 @@ components:
example:
status: 422
code: LOCATION_RETRIEVAL.UNABLE_TO_FULFILL_MAX_AGE
message: "Unable to provide expected frehsness for location"
message: "Unable to provide expected freshness for location"
Generic500:
description: Internal server error
headers:
Expand Down
17 changes: 16 additions & 1 deletion code/API_definitions/location-verification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ info:
# Further info and support

(FAQs will be added in a later version of the documentation)
termsOfService: http://swagger.io/terms/
termsOfService: https://swagger.io/terms/
contact:
email: [email protected]
license:
Expand Down Expand Up @@ -162,6 +162,8 @@ paths:
$ref: "#/components/responses/Generic403"
"404":
$ref: "#/components/responses/Generic404"
"422":
$ref: "#/components/responses/VerifyLocationUnprocessableEntity422"
"500":
$ref: "#/components/responses/Generic500"
"503":
Expand Down Expand Up @@ -456,6 +458,19 @@ components:
status: 404
code: NOT_FOUND
message: "The specified resource is not found"
VerifyLocationUnprocessableEntity422:
maxl2287 marked this conversation as resolved.
Show resolved Hide resolved
description: Unprocessable Entity
headers:
x-correlator:
$ref: '#/components/headers/x-correlator'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
example:
status: 422
code: LOCATION_RETRIEVAL.UNABLE_TO_FULFILL_MAX_AGE
maxl2287 marked this conversation as resolved.
Show resolved Hide resolved
message: "Unable to provide expected freshness for location"
Generic500:
description: Internal server error
headers:
Expand Down