Project description.
Trial Project for work interview in Alfasoft Company. Objective was to create a simple user management Web API.
##Constraints
- Should be able to store user's identification, name and password.
- Business logic MUST be in the controller
- Controller should be create using option Web API 2 Controller With Actions, using Entity Framework
- Add a user only if there's none with supplied name or identification
- In case of a fail, the response MUST be a Bad Request (400)
- Remove a user only if exists one with supplied name
- In case of a fail, the response MUST be a Bad Request (400)
- For testing purposes, there should be 3 views:(See below)
- Add View with input for identification, name and password
- Remove View with input for name
- List View with iddentification, name and password fields
Unfortunatly due to Same-origin policy I am unable to provide Views with requests to another webpages. Still thinking on that problem.
- Download Zip file HERE OR clone from this repository
- Double-click on AlfasoftExercise.sln to start Visual Studio OR Add it with the File > Open > Project/Solution (Ctrl+Shift+O)
- Hit Run/Debug
- Project is deployed in AppHarbor and can be access in the following end-points:
- [List] (http://alfasoftexercise.apphb.com/api/users)
- [Add] (http://alfasoftexercise.apphb.com/api/users/new)
- [Remove] (http://alfasoftexercise.apphb.com/api/users/delete)
EDIT: Still having some struggles with the deploy
Note: It may take up to 5 minutes for the application to load initially (due to project inactivity)