Skip to content

Instantly share code, notes, and snippets.

Rob Harrison robwithhair

  • App Institute
Block or report user

Report or block robwithhair

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@robwithhair
robwithhair / Readme.md
Last active Jun 22, 2016
First impressions of oauth saved json types
View Readme.md

Couchbase OAuth types

Ok, so first impressions are the way that the data is being saved in couchbase is not conforming to some of the conventions we made regarding required fields and keys.

All keys saved to the database should be in the format [reverse domain]_[sigular type]_[int id or urlsafe string id] or as an example com.example.www_client_web-app. URLsafe ID's should be composed of a-z A-Z 0-9 or - but not _.

All objects saved in the DB should have the following required properties...

{
"id":"int id or urlsafe string id", // always a string, only the end of the key
View PhotoUploader_test.go
package main
import (
"bytes"
"encoding/json"
. "github.com/smartystreets/goconvey/convey"
"io"
"mime/multipart"
"net/http"
"net/http/httptest"
You can’t perform that action at this time.