Product Registration and Sales System for a Marketplace
Front-end: VueJs with Quasar
Back-end: PHP
Make sure you have the following require installed on your machine:
- Docker
- Docker Compose
git clone https://github.com/biancamota/desafio-tecnico.git
cd desafio-tecnico
docker-compose up --build -d
The API will be available at: http://localhost:9090/
The Frontend will be available at: http://localhost:9000/
GET /products
Parameter | Type | Description |
---|---|---|
none | none | return all products |
GET /products/{id}
Parameter | Type | Description |
---|---|---|
id | string | return a specific product with the given ID |
POST /products
Parameter | Type | Description |
---|---|---|
id | string | Creates a new product. |
PUT /products/{id}
Parameter | Type | Description |
---|---|---|
id | string | Updates an existing product with the provided ID. |
DELETE /products/{id}
Parameter | Type | Description |
---|---|---|
id | string | Deletes a product with the provided ID. |
GET /categories
Parameter | Type | Description |
---|---|---|
none | none | return all categories |
GET /categories/{id}
Parameter | Type | Description |
---|---|---|
id | string | return a specific category with the given ID |
POST /categories
Parameter | Type | Description |
---|---|---|
id | string | Creates a new category. |
PUT /categories/{id}
Parameter | Type | Description |
---|---|---|
id | string | Updates an existing category with the provided ID. |
DELETE /categories/{id}
Parameter | Type | Description |
---|---|---|
id | string | Deletes a category with the provided ID. |
GET /sales
Parameter | Type | Description |
---|---|---|
none | none | return all sales |
GET /sales/{id}
Parameter | Type | Description |
---|---|---|
id | string | return a specific sale with the given ID |
POST /sales
Parameter | Type | Description |
---|---|---|
id | string | Creates a new sale. |
PUT /sales/{id}
Parameter | Type | Description |
---|---|---|
id | string | Updates an existing sale with the provided ID. |
DELETE /sales/{id}
Parameter | Type | Description |
---|---|---|
id | string | Deletes a sale with the provided ID. |
GET /users
Parameter | Type | Description |
---|---|---|
none | none | return all users |
GET /users/{id}
Parameter | Type | Description |
---|---|---|
id | string | return a specific user with the given ID |
POST /users
Parameter | Type | Description |
---|---|---|
id | string | Creates a new user. |
PUT /users/{id}
Parameter | Type | Description |
---|---|---|
id | string | Updates an existing user with the provided ID. |
DELETE /users/{id}
Parameter | Type | Description |
---|---|---|
id | string | Deletes a user with the provided ID. |