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

refactor: edit handlers in prep for funtionality and cleanup old endpoints #75

Merged
merged 6 commits into from
Jul 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions audit-resolve.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,19 @@
"madeAt": 1624698347746
},
"1500|@mojaloop/central-services-shared>widdershins>yargs>yargs-parser": {
"decision": "postpone",
"madeAt": 1624698365464
"decision": "ignore",
"madeAt": 1625557607471,
"expiresAt": 1628149603934
},
"1675|@mojaloop/central-services-shared>shins>sanitize-html": {
"decision": "postpone",
"madeAt": 1624698375475
"decision": "ignore",
"madeAt": 1625557608766,
"expiresAt": 1628149603934
},
"1676|@mojaloop/central-services-shared>shins>sanitize-html": {
"decision": "postpone",
"madeAt": 1624698375475
"decision": "ignore",
"madeAt": 1625557608766,
"expiresAt": 1628149603934
}
},
"rules": {},
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"@hapi/hapi": "^19.1.1",
"@hapi/inert": "^6.0.3",
"@hapi/vision": "^6.1.0",
"@mojaloop/api-snippets": "^12.4.2",
"@mojaloop/api-snippets": "^12.4.5",
"@mojaloop/central-services-error-handling": "^11.3.0",
"@mojaloop/central-services-health": "^13.0.0",
"@mojaloop/central-services-logger": "^10.6.1",
Expand Down
24 changes: 17 additions & 7 deletions src/interface/api-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,29 @@ openapi: 3.0.1
info:
title: Mojaloop Auth-Service API
version: '0.1.0'
description: An API a central auth service in Mojaloop, concerned with creating \nand managing Consents and validating thirdparty transactions
description: |
An API a central auth service in Mojaloop, concerned with creating and
managing Consents and validating thirdparty transactions
license:
name: Open API for FSP Interoperability (FSPIOP) (Implementation Friendly Version)
servers:
- url: /
paths:
/consents:
$ref: '../../node_modules/@mojaloop/api-snippets/thirdparty/openapi3/paths/consents.yaml'
/consents/{ID}:
$ref: '../../node_modules/@mojaloop/api-snippets/thirdparty/openapi3/paths/consents_ID.yaml'
/health:
$ref: '../../node_modules/@mojaloop/api-snippets/thirdparty/openapi3/paths/health.yaml'
/metrics:
$ref: '../../node_modules/@mojaloop/api-snippets/thirdparty/openapi3/paths/metrics.yaml'
/thirdpartyRequests/transactions/{ID}/authorizations:
$ref: '../../node_modules/@mojaloop/api-snippets/thirdparty/openapi3/paths/thirdpartyRequests_transactions_ID_authz.yaml'
# for registering Consent objects
/consents:
$ref: '../../node_modules/@mojaloop/api-snippets/thirdparty/openapi3/paths/consents.yaml'
# for receiving callbacks from the ALS about registering the auth-service as
# the authoritative source for a Consent object
/participants/{Type}/{ID}:
$ref: '../../node_modules/@mojaloop/api-snippets/thirdparty/openapi3/paths/participants_Type_ID.yaml'
/participants/{Type}/{ID}/error:
$ref: '../../node_modules/@mojaloop/api-snippets/thirdparty/openapi3/paths/participants_Type_ID_error.yaml'
# to be implemented
# /thirdpartyRequests/verifications:
# $ref: '../../node_modules/@mojaloop/api-snippets/thirdparty/openapi3/paths/thirdpartyRequests_verifications.yaml'
# /thirdpartyRequests/verifications/{ID}:
# $ref: '../../node_modules/@mojaloop/api-snippets/thirdparty/openapi3/paths/thirdpartyRequests_verifications_ID.yaml'
Loading