Giter Site home page Giter Site logo

juridigo_api_pagamentos's Introduction

juridigo_api_pagamentos

Servidor

Obtenção e inicialização do projeto

cd go/src/github.com/
mkdir juridigo
cd juridigo
git clone https://github.com/andre250/juridigo_api_pagamentos.git
cd juridigo_api_pagamentos/
dep ensure 
gin -i main.go

Endpoints

Pagamentos

http://.../pagamento

METHOD: POST

Descrição: Registra um pagamento

Body: 
{
	"trabalhoId": [String],
	"usuarioId":[String],
	"valor":[Float64],
	"dataConclusao":[String | unix timestamp]
}
http://.../pagamento?pagamento={id}

METHOD: PUT

Descrição: Registra um pagamento

Parametros:
- id = string identificador do pagamento atualizado

Body: 
{
	"campo":"valor"
}
http://.../pagamento?trabalho={id}

METHOD: GET

Descrição: Busca todos os pagamentos de um trabalho

Parametros:
- id = string identificador do trabalho 

http://.../pagamento?usuario={id}&status={status}

METHOD: GET

Descrição: Busca todos os pagamentos de um usuario por status

Parametros:
- id = string identificador do usuario
- status = booleano [true|false]   

juridigo_api_pagamentos's People

Contributors

andre250 avatar

Watchers

James Cloos 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.