Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paradocx96/applestore-api
https://github.com/paradocx96/applestore-api
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/paradocx96/applestore-api
- Owner: paradocx96
- Created: 2022-04-27T19:16:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-04-28T06:33:10.000Z (over 2 years ago)
- Last Synced: 2024-10-16T07:59:01.094Z (2 months ago)
- Language: Java
- Homepage: https://madd-assignment3.herokuapp.com
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MADD Assignment 3 Backend
## Endpoints
### GET All
```
"method": "GET",
"url": "http://localhost:8080/api/v1/item/"
```### POST
```
"method": "POST",
"body": {
"name": "iPhone 12",
"code": "120100",
"availableUnit": 10,
"price": 699.99,
"taxPrice": 799.99,
"productDescription": "This is the sample desccription for item.",
"imagePath": "iphone12.jpg",
"type": "New"
},
"url": "http://localhost:8080/api/v1/item/"
```### GET By ID
```
"method": "GET",
"url": "http://localhost:8080/api/v1/item/6269928bcff1cd692e83faef"
```### GET By Type
```
"method": "GET",
"url": "http://localhost:8080/api/v1/item/byType/New"
```### PUT
```
"method": "PUT",
"body": {
"id":"6269928bcff1cd692e83faef",
"name": "iPhone 12",
"code": "120100",
"availableUnit": 10,
"price": 699.99,
"taxPrice": 799.99,
"productDescription": "This is the sample desccription for item.",
"imagePath": "iphone12.jpg",
"type": "New"
},
"url": "http://localhost:8080/api/v1/item/"
```### DELETE
```
"method": "DELETE",
"url": "http://localhost:8080/api/v1/item/6269928bcff1cd692e83faef"
```### Postman Endpoints
```
Link: https://www.getpostman.com/collections/436e616bcf6106037cf2
```### By @paradocx96