This application was made entirely by prompting ChatGPT for its codes. Every piece of code generated by ChatGPT was copied and pasted manually inside the project's directory, creating the necessary files, importing and indenting the code accordingly.
The entire chat transcription is here (Please excuse my grammar mistakes).
Before starting the application, create a database in your PostgreSQL server named springgpt. After that, simply open the project in your favorite IDE and run the application.
To test the endpoints, import this collection in Postman. You can also run the endpoints using your IDE or simply running cURL in your terminal.
Method | Path | Description |
---|---|---|
POST | /api/client | Create client |
PUT | /api/client | Edit client |
DELETE | /api/client/:id | Delete client |
GET | /api/client | Get all clients |
GET | /api/client/:id | Get client by ID |
POST | /api/product | Create product |
PUT | /api/product | Edit product |
DELETE | /api/product/:id | Delete product |
GET | /api/product | Get all products |
GET | /api/product/:id | Get product by ID |