service-database

command module
v0.0.0-...-10596c8 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

README

service-database

Database service in Go for the GreenNav project
This repository contains code which follows Design plan for database service

Database setup:

create table nodes(placename text unique,lon real, lat real);    
create table pcountry(placename text, countryname text, foreign key(placename) references nodes(placename));

APIs:

  1. Get all nodes data:
    curl -X GET http://localhost:8888/node/
  2. Get country name of the place
    curl -X GET http://localhost:8888/country?place=Pune

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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