bus-api-go

command module
v0.0.0-...-fa9a36a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2018 License: MIT Imports: 8 Imported by: 0

README

Bus Schedule API

Build Status Coverage Status

Generic API for bus schedules in Go.

Development

Copy the settings from sample:

cp config/settings_sample.yaml config/settings.yaml

Start docker enviroment (docker and docker-compose required)

make run

Service avaliable in http://localhost:5000

Java Version with Spring Boot: https://github.com/rodrigo-brito/onibus-api

Endpoints
  • /status - Health check
  • /msg/mail - Email service
  • /api/v1/bus - All bus
  • /api/v1/bus/:id - Bus by ID
  • /api/v1/bus/:id/schedule - Schedules by bus ID
  • /api/v1/bus/:id/schedule/daytype - Bus schedules separated by day type
  • /api/v1/company - All companies
  • /api/v1/company/:id - Company by ID
  • /api/v1/company/:id/bus - Bus by company ID
Projects that used it

Ônibus Sabará: https://horarios.sabaramais.com.br

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL