Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <br>
- ### GET /claims
- _Response: Array of claims objects_
- ```
- [
- {
- id: 7498923432,
- date: 'June 10, 2016', (or whatever format)
- amount: 430.00, (or whatever format)
- memberName: 'John Smith', (cna be fname and lname too, whatever is easier)
- healthplan: 'BCBS FL',
- status: true, (this is just for "Paid' or "Not Paid"... not sure if there is other status's, if there is just send back the status string I guess)
- provider: 'Dr. Davis',
- }
- ]
- ```
- <hr>
- ### GET /claims/:id
- I do not need this endpoint if you can give me all the info in GET /claims, it is not alot so we can maybe get away with just the list
- <hr>
- ### GET /contacts/poa
- _ResponseE: Array of objects of Power of Attorney contacts_
- ```
- [
- {
- fName: 'John',
- lName: 'Morgan',
- relationship: 'Attorney',
- phone: '3335679894',
- address: '20 N Orange Ave Suite 1600 Orlando FL 32801',
- email: 'john@morgan.com'
- }
- ]
- ```
- <hr>
- ### GET /contacts/providers
- _Response: Array of objects of provider contacts_
- ```
- [
- {
- address: '4539 S Dale Mabry Hwy #110, Tampa, FL 33611',
- phone: '5557672334',
- fName: 'Dr. Christopher',
- lName: 'Davis',
- title: 'Advanced Rehabilitation'
- }
- ]
- ```
- <hr>
- ### GET /coverage/plan
- _Response_
- ```
- {
- plan: 'Blue Cross PPO',
- type: 'Medi-Cal',
- effectiveDate: '1/1/2017', (whatever format)
- termDate: '12/31/2017', (whatever format)
- }
- ```
- <hr>
- ### GET /coverage/primarycare
- _Response_
- ```
- {
- fName: 'Robert',
- lName: 'Johnson',
- address: '3006 W Azeele St, Tampa, FL 33609',
- phone: '5551230987'
- }
- ```
- <hr>
- ### GET /directory/specialties
- _Response: Array of objects of specialties_
- ```
- [
- {
- name: 'Acupuncture',
- id: 1
- },
- {
- name: 'Orthopedic',
- id: 2
- }
- ]
- ```
- <hr>
- ### POST /directory/search
- Not 100% how the search should work
- _Request: something like (only going to require that at least 1 field is set):_
- ```
- {
- fName: 'Bob',
- lName: 'Smith',
- practiceName: 'Docs R Us',
- state: 'FL',
- zip: '33123',
- specialty: '5' (I will be sending back to you the 'id' number from the specialties from /directory/specialties)
- }
- ```
- _Response: array of objects_
- ```
- [
- {
- title: 'Orthopaedic Medical Group of Tampa Bay',
- address: '4541 S Dale Mabry Hwy, Tampa, FL 33611',
- phone: 18135559986,
- other: ['Orthopedic, Surgery'] <-- array of the practice's specialties
- }
- ]
- ```
- <hr>
- ### GET /deductible
- _Response_
- ```
- {
- max: 5000,
- current: 1200,
- totalClaims: 12 <-- not sure if this belongs or not, this is just the total claims, I imagine you can get this when you are totalling the current amount the user has spent towards the deductible
- }
- ```
- <hr>
- ### GET /idcards
- _Response_
- ```
- {
- name: 'John Smith', <-- can be fName, lName, etc, this is just whoevers name is on the card I guess?
- cardID: 'ZXY42343423423234',
- groupID: '99',
- coverageDate: '1/1/2017' (whatever format)
- }
- ```
- <hr>
- ### GET /user (gets the currently auth'd user)
- This is pretty basic, maybe we should send in more info about the user? Like addresses and stuff?
- _Response_
- ```
- {
- fName: 'Bob;,
- lName: 'Smith',
- memberId: '213ZXYABC1234'
- }
- ```
- <hr>
- ### POST /user/register
- _Request:_
- ```
- {
- memberId: '123456789',
- fName: 'Bob',
- lName: 'Smith',
- userId: '123' <-- I have no idea what this is, it was in the old app
- email: 'bob@bob.com',
- password: 'password'
- }
- ```
- _Response_
- ```
- {
- result: 'success'
- }
- ```
- <hr>
- ### POST /user/changepass
- _Request:_
- ```
- {
- current: 'currentPassword',
- new: 'newPassword'
- }
- ```
- _Response_
- ```
- {
- result: 'success'
- }
- ```
- ### POST /user/forgotpass
- _Request:_
- ```
- {
- email: 'bob@bob.com'
- }
- ```
- _Response_
- ```
- {
- result: 'success'
- }
- ```
- **In the password email, please send them to /guest/forgotpass?token=whatever**
- <hr>
- ### POST /user/forgotpass/change
- This is for the password reset via email, you will send them a link to **/guest/forgotpass?token=whatever**
- _Request:_
- ```
- {
- new: 'password',
- token: 'sometoken'
- }
- ```
- _Response_
- ```
- {
- result: 'success'
- }
- ```
- <hr>
- ### POST /user/login
- _Request:_
- ```
- {
- user: 'user@email.com',
- pass: 'password',
- client_id: 'clientSecret',
- grant_type: 'token'
- }
- ```
- _Response_
- ```
- {
- token: 'somelongtoken',
- refreshToken: 'someotherlongtoken',
- }
- ```
- <hr>
- ### POST /user/refresh
- For refreshing tokens
- _Request:_
- ```
- {
- client_id: 'clientSecret',
- grant_type: 'refresh',
- refreshToken: 'somelongtoken'
- }
- ```
- _Response_
- ```
- {
- token: 'somelongtoken',
- refreshToken: 'someotherlongtoken',
- }
- ```
- <hr>
- ### POST /user/logout
- I will send you the current tokens so you can invalidate them
- _Request:_
- ```
- {
- token: 'somelongtoken',
- refreshToken: 'someotherlongtoken',
- client_id: 'clientSecret'
- }
- ```
- _Response_
- ```
- {
- result: 'success'
- }
- ```
- <hr>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement