GithubHelp home page GithubHelp logo

web-peticoes's Introduction

web-peticoes

Api para cadastro de assinatura de petições

URL DA HOSPEDAGEM DO SISTEMA: https://peticoes-leticia.herokuapp.com/

KEY DO HEADER PARA ROTAS QUE NECESSITA AUTENTICAÇÃO: x-access-token

ROTAS DO SISTEMA:

BUSCA TODAS AS PETIÇÕES: (GET) /api/peticoes
BUSCA PETIÇÕES POR ID: (GET) /api/peticoes/:id
AUTENTICAÇÃO DO USUÁRIO: (POST) /api/auth
{
"email": "[email protected]",
"pass": "maria123"
}
INSERE NOVA PETIÇÃO (NESCESSITA ESTAR AUTENTICADO): (POST) /api/peticoes
{
"titulo": "Mais ônibus para o IFSP",
"descricao": "Incluir mais rotas de ônibus que acessem o IFSP"
}
EDITA PETIÇÃO (NESCESSITA ESTAR AUTENTICADO): (PUT) /api/peticoes/:id
{
"titulo": "Mais ônibus para o IFSP Campinas",
"descricao": "Incluir mais rotas de ônibus que acessem o IFSP"
}
ASSINAR PETIÇÃO (NESCESSITA ESTAR AUTENTICADO): (POST) /api/sign/:id
REMOVER ASSINATURA DA PETIÇÃO (NESCESSITA ESTAR AUTENTICADO): (DELETE) /api/sign/:id
DELETAR PETIÇÃO (NESCESSITA ESTAR AUTENTICADO): (DELETE) /api/peticoes/:id

web-peticoes's People

Contributors

leticiaaleal avatar leticialealciandt 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.