Smart Nurse
Smart Nurse Application to improve the Nursery Operation by Digitalization
UI is developed by @FadilaCendikia
BackEnd is developed by @elistrisnawati
To access to back-end:
- User Name:
u01
- Password:
***
- Secret:
1fejZk40***
- Client:
pie
- URL Business: https://app.n-tco.com
- URL Auth: “https://sso.n-tco.com/auth/realms/YSH/protocol/openid-connect/token
You can use PostMan for your convenience.
How to run:
- Get the Token by passing using OAUTH2 to URL Auth
- Using the generated token get the secret key and session key
- Using the secret key & session key to query to the system.
Secret Key
- NURSE:
YYEkld6y***
###Example ####To Sign In to OAUTH2
curl 'https://sso.n-tco.com/auth/realms/YSH/protocol/openid-connect/token'
-X POST
-H 'Accept: application/json, text/javascript, */*; q=0.01'
-H 'Accept-Encoding: gzip, deflate, br'
-H 'Content-Type: application/x-www-form-urlencoded'
--data-raw 'client_id=CLIENT&client_secret=SECRET&username=USER&password=PASSWORD&grant_type=password'
####To Authenticate & getting the Secret Key and Session Key
curl 'https://app.pie.co.id/rest/page/authenticate'
-X POST
-H 'Accept: application/json, text/javascript, */*; q=0.01'
-H 'Content-Type: application/json;charset=utf-8'
-H 'Authorization: Bearer TOKEN'
--data-raw '{"clientId":"SNE"}'
####To Load Nurse
curl 'https://app.pie.co.id/rest/composite/query'
-X POST
-H 'Accept: application/json, text/javascript, */*; q=0.01'
-H 'Accept-Encoding: gzip, deflate, br'
-H 'Content-Type: application/json;charset=utf-8'
-H 'Authorization: Bearer TOKEN'
-H 'x-session: SESSION'
--data-raw '{"secretKey":"SECRET","filterMap":{"ACTIVE":true}}'