GOLang and Bigquery API

This application is intended to make viability on golang and bigquery. Follow the instructions below to run the project

Requirements

First steps

  • Clone this project

  • Inside of project run install all requirements

  $ go get -t -v -u ./...
  • And run project
  $ go run main.go

Requests

  • Request to send Api in route POST http://localhost:8071/production
  {
    "Weight": 12.34,
    "EquipmentId": "1234",
    "ProductionOrderId": "12345",
    "ProductAttributeId": "123456",
    "CompanyId": "1234567",
    "QrCodeId": "12345678",
    "Active": true,
    "CreatedBy": "123456789",
    "UpdatedBy": "1234567890"
  }
  • Request to send Api in route GET with ID optional to GetOne (UUID válid) or GetAll if not send id http://localhost:8071/production/?{UUID}

  • Request to send Api in route DELETE with ID http://localhost:8071/production/{UUID}