Skip to content

Instantly share code, notes, and snippets.

@otarza
Created May 31, 2014 03:08
Show Gist options
  • Save otarza/c0525c2c6bef88efc193 to your computer and use it in GitHub Desktop.
Save otarza/c0525c2c6bef88efc193 to your computer and use it in GitHub Desktop.
DSN API
{
"comment" : {
"id" : "comment id",
"text" : "comment text",
"links" : {
"topic" : "link/to/topic",
"repliedTo" : "link/to/parent/comment",
"repliesTo" : "link/to/child/comments"
}
}
}
{
"comments" : [
{
"id" : "comment id",
"text" : "comment text",
"links" : {
"topic" : "link/to/topic",
"repliedTo" : "link/to/parent/comment",
"repliesTo" : "link/to/child/comments"
}
},
{
"id" : "comment id",
"text" : "comment text",
"links" : {
"topic" : "link/to/topic",
"repliedTo" : "link/to/parent/comment",
"repliesTo" : "link/to/child/comments"
}
}
]
}
{
"rating" : {
"id" : "rating id",
"value" : "negative or positive",
"links" : [
"topic" : "url/to/topic"
]
}
}
{
"topic" : {
"id" : "topic id"
"title" : "string",
"description" : "string",
"imageUrl" : "url",
"pubDate" : "timestamp",
"links" : [
"author" : "url/to/user",
"comments" : "url/to/comments",
"ratingCount" : "url/to/ratingCount",
"rating" : "url/to/rating",
]
}
}
{
"topics": [
{
"id" : "topic id"
"title" : "string",
"description" : "string",
"imageUrl" : "url",
"pubDate" : "timestamp",
"links" : [
"author" : "url/to/user",
"comments" : "url/to/comments",
"ratingCount" : "url/to/ratingCount",
"rating" : "url/to/rating",
]
},
{
"id" : "topic id"
"title" : "string",
"description" : "string",
"imageUrl" : "url",
"pubDate" : "timestamp",
"links" : [
"author" : "url/to/user",
"comments" : "url/to/comments",
"ratingCount" : "url/to/ratingCount",
"rating" : "url/to/rating",
]
}
]
}
{
"user" : {
"id" : "user id",
"alias" : "@name",
"email" : "email",
"profileLogoUrl" : "logo/url.jpg",
"firstName" : "String",
"lastName" : "String",
"info" : "String",
"fbId" : "string",
}
}
{
"users" : [
{
"id" : "user id",
"alias" : "@name",
"email" : "email",
"profileLogoUrl" : "logo/url.jpg",
"firstName" : "String",
"lastName" : "String",
"info" : "String",
"fbId" : "string",
},
{
"id" : "user id",
"alias" : "@name",
"email" : "email",
"profileLogoUrl" : "logo/url.jpg",
"firstName" : "String",
"lastName" : "String",
"info" : "String",
"fbId" : "string",
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment