Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kgudel committed Aug 21, 2023
1 parent 99a2f0b commit 1120cc2
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions hmda-auth/README.md
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}}"
]
}
```

0 comments on commit 1120cc2

Please sign in to comment.