GithubHelp home page GithubHelp logo

aakashvani / invoice-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 12.57 MB

Assignment Technokart

Home Page: https://api-invoice-api.herokuapp.com/api/invoice

JavaScript 99.50% Procfile 0.50%
expressjs mongodb nodejs

invoice-api's Introduction

INVOICE API


Problem Statement

Description :

Create an API which would accept 3 parameters.

  1. Invoice Date.
  2. Invoice Number.
  3. Invoice Amount.

You have to store these details in the db (Mongodb Atlas). The logic to store the data would be as follows :-

The Invoice date should not be greater than the invoice date of previous or next invoice number. E.g.

  • Invoice number 1 has invoice date 3rd July 2022. Invoice number 3 has invoice date 5th July 2022.

  • So when I put invoice number 2, it’s date should lie between 3rd July and 5th July, such validation should be there at the backend. o Also a clean code, commented code is a plus, along with Readme.md for documentation.

You have to create 4 end points :

  • Enter new invoice details.
  • Update a specific invoice based on invoice number
  • Delete a specific invoice based on invoice number
  • Get all invoices stored in the db
  • Get invoices between 2 dates

API Reference :- [API is deployed, You can use very easily by using these urls]

To GET all Invoice

  https://api-invoice-api.herokuapp.com/api/invoice

To GET Invoice between two dates

    https://api-invoice-api.herokuapp.com/api/invoice/date/:endDate/:startDate/
    https://api-invoice-api.herokuapp.com/api/invoice/date/2022-06-01/2022-05-05/

To POST/CREATE an Invoice

   https://api-invoice-api.herokuapp.com/api/invoice

To PATCH an Invoice based on Invoice number

   https://api-invoice-api.herokuapp.com/api/invoice/:number

To DELETE an Invoice based on Invoice number

   https://api-invoice-api.herokuapp.com/api/invoice/:number

Presentation

To GET all Invoice

user signup and login


To GET Invoice between two dates

user signup and login


To POST/CREATE an Invoice

user signup and login


To PATCH an Invoice by Invoice number

user signup and login


To DELETE an Invoice by Invoice number

user signup and login

Tools used on this project

  • Visual Studio Code
  • MongoDB Atlas
  • Postman

πŸ“¬ Contact

If you want to contact me, you can reach me through below handles.

linkedin Github

Β© 2022 Technokart

invoice-api's People

Contributors

aakashvani avatar

Watchers

 avatar

Forkers

akhilbolla18

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.