URI logging service
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Godeps
models
vendor/github.com/lib/pq
.travis.yml
README.md
SqlAndCurls.md
app.json
main.go

README.md

ulog Deploy

Build Status

A URI logger to demo Postgresql's data types. An attempt at rolling my own go/postgresql web service after following the tutorial over at: http://www.alexedwards.net/blog/practical-persistence-sql.

Resulting API

GET /log

Returns all URI's stored in the database in the format:

log_id=[serial integer] log_timestamp=[2006-01-02T15:04:05.999999Z]
log_description=[description text]
log_uri=[uri string]

POST /log?uri=[uri][&description=[text]]

Saves a URI with a description and timestamp. The description is optional. Parameters must be in valid uri encoding. If successful, returns with a response of:

Successfully created "[log_description]...", 1 row(s) affected.

Backlog