-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(availit-mock-data): integrate mock data. Closes #128
- Loading branch information
Rob McGuinness
committed
Jan 2, 2018
1 parent
d5da0f1
commit bbc9043
Showing
16 changed files
with
2,104 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,35 @@ | ||
# availity-mock-data | ||
|
||
> Mock data for Availity API rest services | ||
## Installation | ||
|
||
```bash | ||
❯ npm install availity-mock-data --save-dev | ||
``` | ||
|
||
|
||
## Persona | ||
|
||
A fake user by the name of Jane Smith is used through the mocks with the following attributes: | ||
|
||
- **email**: jane.smith@example.com | ||
- **id**: aka12345789 | ||
|
||
## Routes | ||
|
||
- `/v1/log-messages` | ||
- `/sdk/platform/v1/users/me` | ||
- `/sdk/platform/v1/users/aka123456789` (Jane Smith) | ||
- `/sdk/platform/v1/users/aka987654321` (Abraham Lincoln) | ||
- `/sdk/platform/v1/organizations` | ||
- `/sdk/platform/v1/permissions` | ||
- `/sdk/platform/v1/regions` | ||
- `/v1/internal/providers` | ||
|
||
## Disclaimer | ||
|
||
Open source software components distributed or made available in the Availity Materials are licensed to Company under the terms of the applicable open source license agreements, which may be found in text files included in the Availity Materials. | ||
|
||
## License | ||
[MIT](../../LICENSE) |
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,17 @@ | ||
{ | ||
"links": { | ||
"regions": { | ||
"href": "${context}/sdk/platform/v1/regions?userId=aka987654321" | ||
}, | ||
"organizations": { | ||
"href": "${context}/sdk/platform/v1/organizations?userId=aka987654321" | ||
}, | ||
"self": { | ||
"href": "${context}/sdk/platform/v1/users/aka987654321" | ||
} | ||
}, | ||
"id": "aka987654321", | ||
"lastName": "Lincoln", | ||
"firstName": "Abraham", | ||
"email": "abraham.lincoln@availity.com" | ||
} |
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,31 @@ | ||
{ | ||
"totalCount" : 1, | ||
"count" : 1, | ||
"offset" : 0, | ||
"limit" : 50, | ||
"regionAggregations" : [ { | ||
"type" : "hits", | ||
"hits" : [ { | ||
"key" : "userRegionCount", | ||
"count" : 56 | ||
} ] | ||
} ], | ||
"links" : { | ||
"self" : { | ||
"href" : "${context}/sdk/platform/v1/regions?currentlySelected=true" | ||
}, | ||
"user" : { | ||
"href" : "${context}/sdk/platform/v1/users/aka123456789" | ||
} | ||
}, | ||
"regions" : [ { | ||
"links": { | ||
"self": { | ||
"href": "${context}/sdk/platform/v1/regions/FL" | ||
} | ||
}, | ||
"id": "FL", | ||
"value": "Florida", | ||
"currentlySelected": true | ||
} ] | ||
} |
Empty file.
Oops, something went wrong.