Skip to content

API para testar métodos HTTP utilizando padrão REST

Notifications You must be signed in to change notification settings

lucas231090/Server-HTTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Servidor HTTP para testes

Professor Lucas

O servidor está preparado para responder requisições baseadas no padrão REST.

Clone o repositório e instale as depêndencias utilizando npm install

Para inicializar o servidor utilize o comando npm start

Rotas da API de Aulas

Verbo HTTP Padrão de URL Função
GET /aulas Lista todas as aulas (index)
POST /aulas Cria uma nova aula (create)
GET /aulas/{id} Exibe a aula número "id" (show)
PUT /aulas/{id} Altera a aula número "id" (update)
DELETE /aulas/{id} Remove a aula número "id" (delete)

EXEMPLO DE ENVIO DE BODY NAS REQUISIÇÕES POST/PUT

{ "title": "Aula teste", "content": "Descrição da aula teste" }

About

API para testar métodos HTTP utilizando padrão REST

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published