Giter Club home page Giter Club logo

atech-invoice's Introduction

Invoice - API e Frontend

Sistema para gerenciar mercadorias e notas fiscais. Backend desenvolvido em Java e Frontend desenvolvido em AngularJS.

Documentação

A documentação do desafio pode ser encontrada em DevJavaSenior.pdf.

As telas (frontend) podem ser visualizadas em:

Tecnologias e Requisitos

  • Java 1.8
  • AngularJS
  • Spring Boot 1.4
  • Maven 3.3.9
  • JPA
  • HSQLDB
  • JMS
  • ActiveMQ
  • JUnit

Suíte de testes

$ mvn test

Instalação

$ mvn spring-boot:run

Demo (Frontend)

API

Listar mercadorias

Exemplo de requisição:

Exemplo de resposta:

  • 200 OK
    {
      "content": [
        {
          "id": 1,
          "name": "iPhone 6S 16GB",
          "price": 2799
        },
        {
          "id": 2,
          "name": "iPad Mini 64GB",
          "price": 3700
        },
        {
          "id": 3,
          "name": "Moto X Style 32GB",
          "price": 2199
        },
        {
          "id": 4,
          "name": "Galaxy S6",
          "price": 1799
        }
      ],
      "last": true,
      "totalPages": 1,
      "totalElements": 4,
      "size": 20,
      "number": 0,
      "sort": null,
      "numberOfElements": 4,
      "first": true
    }

Exibir detalhes da mercadoria

Exemplo de requisição:

Exemplo de resposta:

  • 200 OK
    {
      "id": 1,
      "name": "iPhone 6S 16GB",
      "price": 2799
    }

Listar notas fiscais

Exemplo de requisição:

Exemplo de resposta:

  • 200 OK
    {
      "content": [
        {
          "id": 1,
          "company": {
            "id": 1,
            "name": "Apple"
          },
          "customer": "John Doe",
          "description": "Invoice description",
          "items": [
            {
              "id": 1,
              "product": {
                "id": 1,
                "name": "iPhone 6S 16GB",
                "price": 2799
              },
              "quantity": 1,
              "totalPrice": 2799
            },
            {
              "id": 2,
              "product": {
                "id": 2,
                "name": "iPad Mini 64GB",
                "price": 3700
              },
              "quantity": 1,
              "totalPrice": 3700
            }
          ],
          "totalPrice": 6499
        },
        {
          "id": 2,
          "company": {
            "id": 1,
            "name": "Apple"
          },
          "customer": "John Doe",
          "description": "Invoice description",
          "items": [
            {
              "id": 3,
              "product": {
                "id": 3,
                "name": "Moto X Style 32GB",
                "price": 2199
              },
              "quantity": 2,
              "totalPrice": 4398
            }
          ],
          "totalPrice": 4398
        }
      ],
      "last": true,
      "totalPages": 1,
      "totalElements": 2,
      "size": 20,
      "number": 0,
      "sort": null,
      "numberOfElements": 2,
      "first": true
    }

Exibir detalhes da notas fiscal

Exemplo de requisição:

Exemplo de resposta:

  • 200 OK
    {
      "id": 1,
      "company": {
        "id": 1,
        "name": "Apple"
      },
      "customer": "John Doe",
      "description": "Invoice description",
      "items": [
        {
          "id": 1,
          "product": {
            "id": 1,
            "name": "iPhone 6S 16GB",
            "price": 2799
          },
          "quantity": 1,
          "totalPrice": 2799
        },
        {
          "id": 2,
          "product": {
            "id": 2,
            "name": "iPad Mini 64GB",
            "price": 3700
          },
          "quantity": 1,
          "totalPrice": 3700
        }
      ],
      "totalPrice": 6499
    }

atech-invoice's People

Contributors

lucasmro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.