-
Notifications
You must be signed in to change notification settings - Fork 96
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
1 changed file
with
40 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# HMDA Auth API | ||
|
||
## Health Endpoint | ||
|
||
```shell | ||
curl -XGET {{host}}:9095 | ||
``` | ||
|
||
The response should be similar to the following: | ||
|
||
```json | ||
{ | ||
"status":"OK", | ||
"service": | ||
"hmda-auth-api", | ||
"time":"2018-08-08T19:08:20.655Z", | ||
"host":"{{host}}" | ||
} | ||
``` | ||
|
||
## Update User Account | ||
|
||
```shell | ||
curl --location --request PUT 'https://host:9095/users/' \ | ||
--header 'Content-Type: application/json' \ | ||
--header 'Authorization: Bearer {{token}}' \ | ||
--data '{"firstName": "{{user first name}}", "lastName": "{{user last name}}", "leis": ["{{lei1}}", "{{lei2}}"]}' | ||
``` | ||
|
||
Response: | ||
|
||
```json | ||
{ | ||
"firstName": "{{user first name}}", | ||
"lastName": "{{user last name}}", | ||
"leis": [ | ||
"{{lei1}}", "{{lei2}}" | ||
] | ||
} | ||
``` |