Skip to content

Commit

Permalink
refactor: edit handlers in prep for funtionality and cleanup old endp…
Browse files Browse the repository at this point in the history
…oints (#75)

* refactor: refactor handlers in anticipation for funtionality and cleanup old endpoints

* chore: update integration tests

* chore: regen package-lock and api

* chore: fix tests

* chore: ignore vulnerabilities
  • Loading branch information
kleyow committed Jul 6, 2021
1 parent 1a9d397 commit 1d5abee
Show file tree
Hide file tree
Showing 28 changed files with 1,045 additions and 1,897 deletions.
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

0 comments on commit 1d5abee

Please sign in to comment.