There are 4 parts to this assessment. All materials can be found found within the cypress/integration/interview
directory.
Implement the following functionality in the server.js
file:
- When
/users
api is called with no params, then it returns all users ordered by email ascending - When
/users
api is called withemail
query param, then it returns user foremail
- When
/subscriptions
api is called withid
query param, then it returns subscription, user, and deliveries forsubscription_id
- When
/subscriptions
api is called withtype
query param then it returns all subscriptions fortype
- When
/deliveries
api is called withid
query param, then it returns delivery, subscription, and user forid
- When
/deliveries
api is called withsubscription_id
param then it returns all deliveries forsubscription_id
Implement integration tests for your APIs in the interview-part-2.spec.js
file. Don't forget to test for negative scenarios!
Complete the exercise found in interview-part-3.spec.js
Finally, complete the exercise found in interview-part-4
Please DO NOT spend more than 2 hours working on this take-home assessment. We value your time as much as you do. It's OK if you don't finish - there are no points for completion.