Skip to content

Instantly share code, notes, and snippets.

@hakjoon
Last active December 10, 2020 02:26
Show Gist options
  • Save hakjoon/03110b3c439df0d3d46ef1bb019fd3d9 to your computer and use it in GitHub Desktop.
Save hakjoon/03110b3c439df0d3d46ef1bb019fd3d9 to your computer and use it in GitHub Desktop.
.NET Project Interview stories

Suggested Coding Interview Stories

Story Points
In order for other developers to utilize the API, implement Swagger/OpenAPI 2
The CTO has requested we standardize our API documentation. Change the title of your swagger document to "Fool Commerce API." 1
Add a new endpoint that allows searching for a customer by email address. 1
BI has noticed some customers have purchased the product more than once. Setup the API to prevent customers from ordering a product they currently own. 1
Add a way for to return all the products for a given "brand". 1
Marketing has decided they want to track the type of payment used for each order. Record what type of payment method the customer used. (Credit Card, Apple Pay, Google Pay, etc.). 2
As it stands, orders in the system cannot be cancelled. Add a way to keep track of the status of an order. The statuses of "Active" and "Cancelled" come to mind as a good start. 2
BI has requested to be able to easily determine when subscriptions are purchased that are over $200. Implement a feature to log or record information so it may be consumed by BI. 2
It has been discovered that subscriptions are being created where the bounds of the start date and end date are invalid, write a test to ensure that you are accounting for this scenario. 3
Customer service has requested a web page that displays a list of all the customer's names. 3
Add a filter so that offers can be looked up by date created. For example, it might be useful to look at offers created in the last month, or offers created after or before a certain date. 3
A team maintaining a python project has decided they would like to use a client library from our commerce project. Generate a client library to be consumed by a python application. 5
Our security team has requested us to lock down our API to only authorized admin users. Add an authentication layer with roles called "admin", and "user". Setup the "Product" endpoint so only users in the "admin" role can create/update/delete products. 5
Another dev team has requested the ability to see the order history for a given customer. Create an endpoint that returns a payload that lists the names of the products that a given customer owns, and on what date they purchased the product. 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment