-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
69 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,9 @@ info: | |
termsOfService: http://swagger.io/terms/ | ||
contact: | ||
email: [email protected] | ||
name: Telefónica Open Gateway DevRel | ||
url: https://opengateway.telefonica.com/en/developer-hub | ||
email: [email protected] | ||
license: | ||
name: Apache 2.0 | ||
url: https://www.apache.org/licenses/LICENSE-2.0.html | ||
|
@@ -23,39 +25,45 @@ externalDocs: | |
description: Product documentation at Camara | ||
url: https://github.com/camaraproject/ | ||
servers: | ||
- url: "{apiRoot}/{basePath}" | ||
- url: "{host}/sim-swap/{version}" | ||
variables: | ||
apiRoot: | ||
default: http://localhost:9091 | ||
description: API root | ||
basePath: | ||
default: sim-swap/v0 | ||
description: Base path for the simSwap API | ||
host: | ||
default: sandbox.opengateway.telefonica.com/apigateway | ||
description: API gateway URL | ||
version: | ||
default: v0 | ||
description: Version of the SIM Swap API | ||
paths: | ||
/retrieve-date: | ||
/check: | ||
post: | ||
summary: /check | ||
tags: | ||
- Check for a SIM swap | ||
security: | ||
- three_legged: | ||
- retrieve-sim-swap-date | ||
tags: | ||
- Retrieve SIM swap date | ||
description: Get timestamp of last MSISDN <-> IMSI pairing change for a mobile user account provided with MSIDN. | ||
operationId: retrieveSimSwapDate | ||
- check-sim-swap | ||
description: | | ||
Check if SIM swap has been performed during a past period | ||
Check the [Authorization guide](/docs/authorization) on how to get an OAuth2 token, with the following purpose: | ||
`dpv:FraudPreventionAndDetection#sim-swap` | ||
operationId: checkSimSwap | ||
requestBody: | ||
description: | | ||
Create a SIM swap date request for a MSISDN identifier. | ||
Create a check SIM swap request for a MSISDN identifier. | ||
content : | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/CreateSimSwapDate" | ||
$ref: "#/components/schemas/CreateCheckSimSwap" | ||
required: true | ||
responses: | ||
"200": | ||
description: Contains information about SIM swap change | ||
description: Returns whether a SIM swap has been performed during a past period | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/SimSwapInfo" | ||
$ref: "#/components/schemas/CheckSimSwapInfo" | ||
"400": | ||
$ref: "#/components/responses/Generic400" | ||
"401": | ||
|
@@ -72,30 +80,36 @@ paths: | |
$ref: "#/components/responses/Generic503" | ||
"504": | ||
$ref: "#/components/responses/Generic504" | ||
/check: | ||
/retrieve-date: | ||
post: | ||
summary: /retrieve-date | ||
tags: | ||
- Retrieve latest SIM swap date | ||
security: | ||
- three_legged: | ||
- check-sim-swap | ||
tags: | ||
- Check SIM swap | ||
description: Check if SIM swap has been performed during a past period | ||
operationId: checkSimSwap | ||
- retrieve-sim-swap-date | ||
description: | | ||
Get timestamp of last MSISDN <-> IMSI pairing change for a mobile user account provided with MSIDN. | ||
Check the [Authorization guide](/docs/authorization) on how to get an OAuth2 token, with the following purpose: | ||
`dpv:FraudPreventionAndDetection#sim-swap` | ||
operationId: retrieveSimSwapDate | ||
requestBody: | ||
description: | | ||
Create a check SIM swap request for a MSISDN identifier. | ||
Create a SIM swap date request for a MSISDN identifier. | ||
content : | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/CreateCheckSimSwap" | ||
$ref: "#/components/schemas/CreateSimSwapDate" | ||
required: true | ||
responses: | ||
"200": | ||
description: Returns whether a SIM swap has been performed during a past period | ||
description: Contains information about SIM swap change | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/CheckSimSwapInfo" | ||
$ref: "#/components/schemas/SimSwapInfo" | ||
"400": | ||
$ref: "#/components/responses/Generic400" | ||
"401": | ||
|
@@ -118,8 +132,8 @@ components: | |
type: oauth2 | ||
flows: | ||
authorizationCode: | ||
authorizationUrl: https://auth.example.com/authorize | ||
tokenUrl: https://auth.example.com/token | ||
authorizationUrl: https://{host}/authorize | ||
tokenUrl: https://{host}/token | ||
scopes: | ||
check-sim-swap: checkSimSwap operation | ||
retrieve-sim-swap-date: retrieveSimSwapDate operation | ||
|