Giter Club home page Giter Club logo

tentamen's Introduction

Bargain Books

We're going to revolutionize the books market by providing a site for selling books between individuals

{
    "ISBN": "978-0-321-87758-1",
    "Title": "Essential C#5.0",
    "Author": "Mark Michaelis",
    "Price": 59.99,
    "SellerEmail": "[email protected]",
    "Used": true,
    "Location": {
        "City": "Redmond",
        "Street": "156TH AVE NE"
    }
}

We need to be able to provide a nice list of all the books for sale, as well as showing, creating, updating and deleting individual books. Status codes returned by the API should reflect whether something was created, changed, or if the request had no effect.

Our customers know what they want, so being able to filter books on Title or Author is important, one is enough. Basic data type validation should be performed for basic data types such as String, Number and Boolean.

Your mission, should you choose to accept it, is to implement this API and prove that it works, either by providing tests or a swagger file for manual testing. All methods and paths should be tested by unit tests or documented in swagger, but not neccessarily both.

Instructions

Fork this repo (top right corner icon on github) to create a copy of this repo to your own gitub account, clone your repo, do your implementation and push to your github, and create a pull request when done.

Running

npm install
npm start

Developing

npm install
npm run dev

Test

npm install
npm run test

swagger

Swagger UI availble at localhost:3000/swagger Specification served at UI availble at localhost:3000/swagger.yaml

Update the swagger/swagger.yaml file containing an openapi 3.0 or swagger 2.0 specification of the API.

NOTE: The online swagger editor http://editor.swagger.io/ can occasionally report errors for a correct yaml file. If you get an error that doesn't make sense, just reload the editor page.

tentamen's People

Contributors

jonaseck2 avatar fakeshemp 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.