Skip to content

challapalli/invoice-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Invoice App

Invoice App is a Spring Boot application that provides RESTful APIs for managing invoices.

API Endpoints

Get All Invoices

  • URL: /invoice
  • Method: GET
  • Description: Retrieves all invoices.
  • Response: JSON array of invoices.

Create Invoice

  • URL: /invoice
  • Method: POST
  • Description: Creates a new invoice.
  • Request Body: JSON object representing the new invoice.
  • Response: JSON object representing the created invoice.

Update Invoice

  • URL: /invoice/{id}
  • Method: PUT
  • Description: Updates an existing invoice with the specified ID.
  • Parameters: id (String) - ID of the invoice to update.
  • Request Body: JSON object representing the updated invoice.
  • Response: JSON object representing the updated invoice.

Delete Invoice

  • URL: /invoice/{id}
  • Method: DELETE
  • Description: Deletes the invoice with the specified ID.
  • Parameters: id (String) - ID of the invoice to delete.
  • Response: HTTP status code indicating success or failure.

Technologies Used

  • Spring Boot
  • Spring Data JPA
  • Maven
  • H2 DB

How to Run

  • Make sure you have Java and Maven installed.
  • Clone this repository.
  • Navigate to the project directory.
  • Run mvn spring-boot:run.
  • The application will start at http://localhost:8080.

Sample JSON Structure for Invoice

{
  "id": "123456",
  "invoice": "INV001",
  "customer": "Apple",
  "email": "support@apple.com"
  "invoiceDate": "2024-05-18T12:37:48.040Z"
  "dueDate": "2024-05-18T12:37:48.040Z"
  "status": "Approved"
  "amount": 2566
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages