iap-user-adapter v0.1.1
IAP User Adapter
The IAP User Adapter is an AWS Lambda for integrating and mocking user management APIs for the IAP platform. The primary purpose is to provide simple, authenticated APIs that are capable of searching and returning user data from Salesforce downstream.
Dev Setup
Pull down this repository and start running the application locally via the following commands:
Commands
npm run start
Starts an express server using the build assets in the dist folder
start:dev
Starts the server in development mode. Uses nodemon to restart on file change and starts a debugger for attaching to process
build
Use tsc
to check .ts file and transpile into js file in ./dist
directory
test
Run the tests using the jest
test runner and assertion library
prettier:write
Check all the files with prettier and write any changes to the file
prettier:check
Check all the files with prettier and exit if any files to not comply with defined styles
lint
Run eslint over the project and check for any errors
generate
Generate swagger definations based on the .yml
files that are placed alongside api endpoint
Dependencies
None for the moment - this is purely mocking TBD applications from core apps
Technologies
- NodeJs (LTS)
- Nib Express Serverless
- Samoa
Deployment
This application is deployed using samoa. Please refer to the documentation in the repo.
Urls
- https://api-gateway.nib-cf-test.com/iap-user-adapter/v1/user/:id
- https://api-gateway.nib.com.au/iap-user-adapter/v1/user/:id
- https://api-gateway.nib-cf-test.com/iap-user-adapter/v1/users/search-by-email?email=:email
- https://api-gateway.nib.com.au/iap-user-adapter/v1/users/search-by-email?email=:email
Slice details:
https://api-gateway.nib-cf-test.com/iap-user-adapter_slice/v1/user/:id
OCE Support / logs
TBD
Changelog
3 years ago