Skip to content

Latest commit

 

History

History
154 lines (116 loc) · 3.7 KB

README.md

File metadata and controls

154 lines (116 loc) · 3.7 KB

💻 Sobre o Projeto

Olá, este é um projeto Web service criado com as tecnologias java, spring boot, JPA em conjunto com banco de dados relacional SQL, a aplicação está disponibilizada no Heroku.

Status do Desafio: Concluido

🥇 Aplicação disponivel no Heroku:

https://amazonstore-api.herokuapp.com

🛠 Serviços disponíveis

👨‍💻 User:

[GET] https://amazonstore-api.herokuapp.com/users
[GET] https://amazonstore-api.herokuapp.com/users/id
[POST] https://amazonstore-api.herokuapp.com/users
[PUT] https://amazonstore-api.herokuapp.com/users/id
[DELETE] https://amazonstore-api.herokuapp.com/users/id

{
   "id": 1,
   "email": "Maria Brown",
   "nome": "[email protected]",
   "phone": "988888888",
   "password": "123456"
}

🎁 Product:

[GET] https://amazonstore-api.herokuapp.com/products
[GET] https://amazonstore-api.herokuapp.com/products/id

{
  "id": 1,
  "name": "The Lord of the Rings",
  "description": "Lorem ipsum dolor sit amet, consectetur.",
  "price": 90.5,
  "imgUrl": "",
  "categorias": [
     {
       "id": 2,
       "name": "Books"
     }
   ]
} 

📌 Category:

[GET] https://amazonstore-api.herokuapp.com/categories
[GET] https://amazonstore-api.herokuapp.com/categories/id

   {
     "id": 1,
     "name": "Electronics"
    }

🛒 Order:

[GET] https://andrealvesdc-web-serve-sb-jpa.herokuapp.com/orders
[GET] https://andrealvesdc-web-serve-sb-jpa.herokuapp.com/orders/id

{
  "id": 1,
  "moment": "2019-06-20T19:53:07Z",
  "orderStatus": "PAID",
  "client": {
     "id": 2,
     "email": "Alex Green",
     "nome": "[email protected]",
     "phone": "977777777",
     "password": "123456"
  },
  "items": [
     {
        "quantity": 2,
        "price": 90.5,
        "product": {
           "id": 1,
           "name": "The Lord of the Rings",
           "description": "Lorem ipsum dolor sit amet, consectetur.",
           "price": 90.5,
           "imgUrl": "",
           "categorias": [
              {
                 "id": 2,
                 "name": "Books"
              }
           ]
        },
        "subTotal": 181.0
 }

🎯 Modelo de domínio

Domain model

🚀 Modelo de instância

Domain Instance

📝 Licença

Esse projeto está sob a licença MIT. Veja o arquivo LICENSE para mais detalhes.

Feito com 💚 by Samuel Almeida