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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址