golang-rest-server

command module
v0.0.0-...-0fcc971 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2014 License: MIT Imports: 6 Imported by: 0

README

API Resource Server

Build Status Coverage Status

This is an example of a basic API server that retrieves resources based on the URL pattern. It relies on a MongoDB instance and standard REST conventions.

Getting Started

Seed your MongoDB with some data. In your mongo client, run the following:

use test
db.notes.insert({"note": "This is a note."});
  1. Clone the repo.
  2. go get -d ./... or if you have gpm installed gpm.
  3. Run go run server.go --databaseName=test --databaseUrl=localhost:27017
  4. Go to http://localhost:3000/notes

This is a work in progress.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package `handlers` provides single retrieval or list of resources based on the URI path.
Package `handlers` provides single retrieval or list of resources based on the URI path.

Jump to

Keyboard shortcuts

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