Skip to content

profhugorafael/otica-api-luan-garitano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http

http://www.google.com/search

http -> protocolo

"/search" -> recurso

http methods = GET, POST, PUT, DELETE, PATCH

requisicao = verbo + rota

GET + /products

POST + /products

resposta -> headers + body + statusCode

  • [privacidade] [keywords] [variavel/metodo]

Composicao

class Personagem {
    private int vida;
    private int ataque;
    private int defesa;
}

class Arqueiro extends Personagem {
    private String nome;
    private Arco arco;
}

class Arco {
    private int numeroDeFlechas;
}

Ordem recomendada

  • Model: Product
  • Repository (acesso ao DB): ProductRepository
  • Service(regras e logicas): ProductService
  • Controller(fornece as funcionalidas): ProductController

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages