An open API service indexing awesome lists of open source software.

https://github.com/rubenchirino/clothes-store

Clothes store E-commerce developed with Spring
https://github.com/rubenchirino/clothes-store

ecommerce java spring

Last synced: about 2 months ago
JSON representation

Clothes store E-commerce developed with Spring

Awesome Lists containing this project

README

          

# clothes-store
Clothes store E-commerce developed with Spring

## Dev setup Commands

```bash
# Install dependencies (only the first time)
mvn clean install

# Run the local server at localhost:8080
mvn spring-boot:run
```

### Home

Screenshot 2023-11-18 at 18 34 15

## ๐Ÿ‘š == Garments == ๐Ÿ‘•

### List

Screenshot 2023-11-18 at 18 34 38

### Create

Screenshot 2023-11-18 at 18 33 55

### Edit

Screenshot 2023-11-18 at 18 35 36

### Endpoints

| Method | URL | Description |
| -------- | ---------------------------------------- | ---------------------------------------- |
| `GET` | `/api/garments/all` | Retrieves a list of all the garments |
| `GET` | `/api/garments` | Retrieves a paginated list of garments |
| `GET` | `/api/garments/:id` | Retrieves a garment by its ID |
| `POST` | `/api/garments` | Creates a new garment |
| `PUT` | `/api/garments/:id` | Updates an existing garment |
| `DELETE` | `/api/garments/:id` | Deletes a specific garment by its ID |

### ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ == Clients == ๐Ÿ™๐Ÿปโ€โ™€๏ธ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ผ

### List

Screenshot 2023-11-18 at 18 51 23

### Create

Screenshot 2023-11-18 at 18 51 36

### Edit

Screenshot 2023-11-18 at 18 51 53

### Endpoints

| Method | URL | Description |
| -------- | --------------------- | -------------------------------------------- |
| `GET` | `/api/clients/all` | Retrieves a list of all clients |
| `GET` | `/api/clients/:id` | Retrieves a client by their ID |
| `GET` | `/api/clients` | Retrieves a paginated list of clients |
| `POST` | `/api/clients` | Creates a new client |
| `PUT` | `/api/clients/:id` | Updates an existing client |
| `DELETE` | `/api/clients/:id` | Deletes a specific client by their ID |

### ๐Ÿ’ถ == Sales == ๐Ÿท๏ธ

### List

Screenshot 2023-11-18 at 18 56 20

### Create Cash Sale

Screenshot 2023-11-18 at 18 56 58

### Create Card Sale

Screenshot 2023-11-18 at 18 57 09

### Show Sale

Screenshot 2023-11-18 at 18 57 30

### Add Item to a Sale

Screenshot 2023-11-18 at 18 58 05

### Endpoints

| Method | URL | Description |
| -------- | ---------------------------------------- | ------------------------------------------------ |
| `GET` | `/api/sales/all` | Retrieves a list of all sales |
| `GET` | `/api/sales` | Retrieves a paginated list of sales |
| `GET` | `/api/sales/:id` | Retrieves details of a specific sale by its ID |
| `POST` | `/api/sales/cash` | Creates a new cash sale |
| `POST` | `/api/sales/card` | Creates a new card sale |
| `POST` | `/api/sales/:id/items` | Adds a new item to a specific sale |
| `PUT` | `/api/sales/:sale_id/items/:item_id` | Modifies an existing item in a sale |
| `DELETE` | `/api/sales/:sale_id/items/:item_id` | Deletes a specific item from a sale |
| `POST` | `/api/sales/cash` (with business) | Creates a new cash sale with business details |
| `POST` | `/api/sales/card` (with business) | Creates a new card sale with business details |