snips

command
v0.0.0-...-87f56a9 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2012 License: MIT Imports: 7 Imported by: 0

README

A simple rest2go server and client.

Prerequirements
$ go get github.com/Kissaki/rest2go

Compile with
$ go build snips.go rest2go collection.go

Start server with
$ ./snips -server

Run client with
$ ./snips

You can also access the server with other tools or your webbrowser (which will allos you to at least Index and Find(Id) by GET requests).
Open http://127.0.0.1:3000/snips/ in your browser.

Documentation

Overview

Defines SnipsCollection struct-type and NewSnipsCollection()
It is used by the example REST server for storing and managing snips
It has the methods Add, WithId, All and Remove.

Defines Index, Find, Create, Update and Delete methods for SnipsCollection
These will be called on the corresponding REST requests

Example REST server and client.

Jump to

Keyboard shortcuts

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