GithubHelp home page GithubHelp logo

developeramarish / coding-challenge-shopping-list Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neilkennedy/coding-challenge-shopping-list

0.0 0.0 0.0 99 KB

License: MIT License

C# 99.92% Batchfile 0.04% ASP 0.04%

coding-challenge-shopping-list's Introduction

coding-challenge-shopping-list

Notes

  • Please excuse the tab issue. I usually use 2 spaces, but the example solution uses 4 spaces so I switched half way through and now things might be a little mixed
  • The in-memory store is just a crude static property. This might cause issues when the Unit Tests are all run together. If it does then you might need to run some individually.
  • Only the .Net45 solution was updated in ServiceClient
  • Ninject is used in the Service solution for dependency injection.
  • The Service uses the built in Visual Studio Unit Tests while the ServiceClient uses NUnit 2 (because that's what the sample project used).

Brief

We want to have a web service in either MVC or Web API that will enable us to populate a shopping list for our office. So here is how we want you to create it:

1- Service Endpoint

Create an endpoint which will be accessible through a friendly route. (This can be hosted on your localhost at least for now).

The endpoint will work based on the following web requests:

  • Http Post request should adding a drink in to the list with quantity e.g. name of drink (Pepsi) and quantity (1)
  • Http Put request for updating a drinks quantity
  • Http Delete request for removing a drink from the shopping list
  • Http Get request for retrieving a drink by its name and its quantity so we can see how many ordered
  • Http Get request for retrieving full list of what we have in the shopping list

Notes:

  • This doesn’t have to use database you can use in memory solution to hold the shopping list. Any thing simple that works
  • Ideally it should contain one unique drink name for each entry to avoid repetitions
  • Please feel free to implement/explain any advanced features to demonstrate your skills and experience such as paginated lists api authorisation and validation etc.

2- Service Client

We have a web api client library at GitHub repository here. We want you to modify this library so that it can interact with the shopping list endpoint that will be created so that it can act as a client for the endpoint.

Please upload both solutions on Github and send us the link, thanks.

coding-challenge-shopping-list's People

Contributors

neilkennedy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.