Coder Social home page Coder Social logo

api-springboot-zipcode's Introduction

api--springboot-zipcode

  • Criar API REST para cadastrar as faixas de CEP de cada loja; ●
  • Criar API REST para retornar qual é a loja física que atende determinado CEP; REGRAS
  • A tabela de cadastro de CEP deve possuir as seguintes colunas:
  • ID, CODIGO_LOJA, FAIXA_INICIO e FAIXA_FIM;
  • As faixas de CEP não pode conflitar com as de outras lojas;
  • Deve ser possível editar/excluir uma faixa de CEP;
  • A aplicação deve ser feita em Springboot + REST + JPA/Hibernate

RESULTADO ESPERADO

CODIGO_LOJA FAIXA_INICIO FAIXA_FIM
LOJA_PINHEIROS 10000000 20000000
LOJA_PINHEIROS 20000001 30000000
LOJA_JARDINS 30000001 40000000
LOJA_JARDINS 40000001 50000000

MODO ERRADO

CODIGO_LOJA FAIXA_INICIO FAIXA_FIM
LOJA_PINHEIROS 10000000 20000000
LOJA_PINHEIROS 20000001 30000000
LOJA_JARDINS 10000001 (erro! essa faixa de CEP conflita com a faixa de CEP
da loja de Pinheiros)
40000000

api-springboot-zipcode's People

Stargazers

 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.