As highlighted in #5, API calls are needed to facilitate the functionality of the components. While the user will never SEE these calls occur, everything they do regarding the database is dependent on these calls working properly.
Acceptance Criteria
The following interactions are noted within the instructions:
CREATE - 'POST'
READ - 'GET'
UPDATE - 'PATCH'
DELETE - 'DELETE'
As such, API calls performing these functions will be needed.
Any newly created team members made through a POST will need a PATCH that handles the patching of their returned FBK to the created field.
All calls should work within Postman FIRST before API calls are created for them.
Dependecies
4 will need to be completed before any calls can be tested.
Dev Notes
CHECK YOUR RULES. If they don't allow indexing on a certain attribute, you won't be able to access it.
EXAMPLES FROM SIMPLY BOOKS
'POST' REQUEST - Rather than creating a new book, you'll be creating a new teammate. When this request is sent, FireBase sends back an object with the contents { name: firebaseKey } that will later need to be patched.
User Story
As highlighted in #5, API calls are needed to facilitate the functionality of the components. While the user will never SEE these calls occur, everything they do regarding the database is dependent on these calls working properly.
Acceptance Criteria
The following interactions are noted within the instructions: CREATE - 'POST' READ - 'GET' UPDATE - 'PATCH' DELETE - 'DELETE' As such, API calls performing these functions will be needed.
Dependecies
4 will need to be completed before any calls can be tested.
Dev Notes
EXAMPLES FROM SIMPLY BOOKS
'POST' REQUEST - Rather than creating a new book, you'll be creating a new teammate. When this request is sent, FireBase sends back an object with the contents { name: firebaseKey } that will later need to be patched.
'GET' REQUEST - Rather than getting books, you'll be getting team members.
'PATCH' REQUEST - Rather than updating a book. You'll be updating a singular teammate.
'DELETE' REQUEST - Rather than deleting a book, you'll be deleting a team member off a team.