Skip to content

Commit

Permalink
feat(availit-mock-data): integrate mock data. Closes #128
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob McGuinness committed Jan 2, 2018
1 parent d5da0f1 commit bbc9043
Show file tree
Hide file tree
Showing 16 changed files with 2,104 additions and 0 deletions.
35 changes: 35 additions & 0 deletions packages/availity-mock-data/README.md
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)
17 changes: 17 additions & 0 deletions packages/availity-mock-data/data/admin.json
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"
}
31 changes: 31 additions & 0 deletions packages/availity-mock-data/data/currentRegion.json
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.
Loading

0 comments on commit bbc9043

Please sign in to comment.