Skip to content

Instantly share code, notes, and snippets.

@letrunghieu
Last active August 29, 2015 14:08
Show Gist options
  • Save letrunghieu/84024c203949acbc7cb4 to your computer and use it in GitHub Desktop.
Save letrunghieu/84024c203949acbc7cb4 to your computer and use it in GitHub Desktop.
Gigakyujin API
{
"id": "ecb79ae2-9fa2-9591-0f73-e94719358120",
"name": "Gigakyujin API",
"description": "",
"order": [],
"folders": [],
"timestamp": 1415158506401,
"synced": false,
"requests": [
{
"collectionId": "ecb79ae2-9fa2-9591-0f73-e94719358120",
"id": "0be3b25c-1c2c-1267-91e2-f9c3e08f04d2",
"name": "OAuth: invalid token request",
"description": "",
"url": "http://api.gigakyujin.local:8000/oauth/token",
"method": "GET",
"headers": "",
"data": [],
"dataMode": "params",
"timestamp": 0,
"responses": [],
"version": 2,
"synced": false
},
{
"collectionId": "ecb79ae2-9fa2-9591-0f73-e94719358120",
"id": "0e30e996-1fca-52ab-c8a8-b6b45e266957",
"name": "Invalid REST request: missing access token",
"description": "",
"url": "http://api-gigakyujin.herokuapp.com/v1/posts",
"method": "GET",
"headers": "",
"data": [
{
"key": "access_token",
"value": "03807cb390319329bdf6c777d4dfae9c0d3b3c35",
"type": "text"
},
{
"key": "parentType",
"value": "comment",
"type": "text"
},
{
"key": "parentId",
"value": "12345678-2222-2222-2222-123456789012",
"type": "text"
}
],
"dataMode": "params",
"timestamp": 0,
"version": 2,
"time": 1415259102276,
"synced": false
},
{
"collectionId": "ecb79ae2-9fa2-9591-0f73-e94719358120",
"id": "45274c17-48ff-76d6-7570-b09286106d4b",
"name": "OAuth: Valid token request",
"description": "",
"url": "http://api-gigakyujin.herokuapp.com/oauth/token?grant_type=password&username=example&password=password&client_id=test-client",
"method": "GET",
"headers": "",
"data": [
{
"key": "access_token",
"value": "03807cb390319329bdf6c777d4dfae9c0d3b3c35",
"type": "text"
},
{
"key": "parentType",
"value": "comment",
"type": "text"
},
{
"key": "parentId",
"value": "12345678-2222-2222-2222-123456789012",
"type": "text"
}
],
"dataMode": "params",
"timestamp": 0,
"version": 2,
"time": 1415259075402,
"synced": false
},
{
"id": "46dce890-2251-b889-f47a-abad4bb7a135",
"headers": "",
"url": "http://api-gigakyujin.herokuapp.com/v1/comments/12345678-1111-1111-1111-123456789012",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
"data": [
{
"key": "action",
"value": "voteup",
"type": "text",
"enabled": true
},
{
"key": "author_id",
"value": "03807cb390319329bdf6c777d4dfae9c0d3b3c35",
"type": "text",
"enabled": true
},
{
"key": "access_token",
"value": "03807cb390319329bdf6c777d4dfae9c0d3b3c35",
"type": "text",
"enabled": true
},
{
"key": "positive",
"value": "true",
"type": "text",
"enabled": true
}
],
"dataMode": "urlencoded",
"version": 2,
"tests": "",
"time": 1415260141531,
"name": "Comments: vote",
"description": "",
"collectionId": "ecb79ae2-9fa2-9591-0f73-e94719358120",
"responses": [],
"synced": false
},
{
"collectionId": "ecb79ae2-9fa2-9591-0f73-e94719358120",
"id": "548e7a31-fb24-46b5-439b-ae72ca0bcbce",
"name": "Posts: get lists of posts",
"description": "",
"url": "http://api-gigakyujin.herokuapp.com/v1/posts?access_token=03807cb390319329bdf6c777d4dfae9c0d3b3c35",
"method": "GET",
"headers": "",
"data": [
{
"key": "access_token",
"value": "03807cb390319329bdf6c777d4dfae9c0d3b3c35",
"type": "text"
},
{
"key": "parentType",
"value": "comment",
"type": "text"
},
{
"key": "parentId",
"value": "12345678-2222-2222-2222-123456789012",
"type": "text"
}
],
"dataMode": "params",
"timestamp": 0,
"version": 2,
"time": 1415259132900,
"synced": false
},
{
"collectionId": "ecb79ae2-9fa2-9591-0f73-e94719358120",
"id": "579164f6-93a0-6bc6-e92f-81db31ffced4",
"name": "Posts: get post details",
"description": "",
"url": "http://api-gigakyujin.herokuapp.com/v1/posts/11111111-1111-1111-1111-11111111111?access_token=03807cb390319329bdf6c777d4dfae9c0d3b3c35",
"method": "GET",
"headers": "",
"data": [
{
"key": "access_token",
"value": "03807cb390319329bdf6c777d4dfae9c0d3b3c35",
"type": "text"
},
{
"key": "parentType",
"value": "comment",
"type": "text"
},
{
"key": "parentId",
"value": "12345678-2222-2222-2222-123456789012",
"type": "text"
}
],
"dataMode": "params",
"timestamp": 0,
"version": 2,
"time": 1415259153740,
"synced": false
},
{
"collectionId": "ecb79ae2-9fa2-9591-0f73-e94719358120",
"id": "58c56d6a-f3ea-702b-b14d-a873ea0267b9",
"name": "Comments: get list missing required params ",
"description": "",
"url": "http://api-gigakyujin.herokuapp.com/v1/comments?access_token=03807cb390319329bdf6c777d4dfae9c0d3b3c35",
"method": "GET",
"headers": "",
"data": [],
"dataMode": "params",
"timestamp": 0,
"responses": [],
"version": 2,
"synced": false
},
{
"id": "69bda643-b1de-2579-f371-9f4331436bcb",
"headers": "",
"url": "http://api-gigakyujin.herokuapp.com/v1/comments",
"preRequestScript": "",
"pathVariables": {},
"method": "POST",
"data": [
{
"key": "access_token",
"value": "03807cb390319329bdf6c777d4dfae9c0d3b3c35",
"type": "text",
"enabled": true
},
{
"key": "parent_type",
"value": "comment",
"type": "text",
"enabled": true
},
{
"key": "parent_id",
"value": "12345678-2222-2222-2222-123456789012",
"type": "text",
"enabled": true
},
{
"key": "body",
"value": "Lorem ipsum",
"type": "text",
"enabled": true
},
{
"key": "author_id",
"value": "03807cb390319329bdf6c777d4dfae9c0d3b3c35",
"type": "text",
"enabled": true
}
],
"dataMode": "urlencoded",
"version": 2,
"tests": "",
"time": 1415260275917,
"name": "Comments: create -success",
"description": "",
"collectionId": "ecb79ae2-9fa2-9591-0f73-e94719358120",
"responses": [],
"synced": false
},
{
"id": "6d2b70ba-6aea-8818-56e7-2479791476bf",
"headers": "",
"url": "http://api-gigakyujin.herokuapp.com/v1/comments",
"preRequestScript": "",
"pathVariables": {},
"method": "POST",
"data": [
{
"key": "access_token",
"value": "03807cb390319329bdf6c777d4dfae9c0d3b3c35",
"type": "text",
"enabled": true
},
{
"key": "parent_type",
"value": "comment",
"type": "text",
"enabled": true
},
{
"key": "parent_id",
"value": "12345678-2222-2222-2222-123456789012",
"type": "text",
"enabled": true
}
],
"dataMode": "urlencoded",
"version": 2,
"tests": "",
"time": 1415260287147,
"name": "Comments: create - invalid",
"description": "",
"collectionId": "ecb79ae2-9fa2-9591-0f73-e94719358120",
"responses": [],
"synced": false
},
{
"id": "9f233417-4a16-3adc-6604-d3ed243e2895",
"headers": "",
"url": "http://api-gigakyujin.herokuapp.com/v1/comments/12345678-1111-1111-1111-123456789012",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
"data": [
{
"key": "action",
"value": "report",
"type": "text",
"enabled": true
},
{
"key": "access_token",
"value": "03807cb390319329bdf6c777d4dfae9c0d3b3c35",
"type": "text",
"enabled": true
},
{
"key": "positive",
"value": "true",
"type": "text",
"enabled": true
}
],
"dataMode": "urlencoded",
"version": 2,
"tests": "",
"time": 1415260159498,
"name": "Comments: report - invalid",
"description": "",
"collectionId": "ecb79ae2-9fa2-9591-0f73-e94719358120",
"responses": [],
"synced": false
},
{
"id": "af1d7caf-f822-95a5-bbb4-34edfd23ae04",
"headers": "",
"url": "http://api-gigakyujin.herokuapp.com/v1/comments?access_token=03807cb390319329bdf6c777d4dfae9c0d3b3c35&parent_type=post&parent_id=12345678-1111-1111-1111-123456789012",
"preRequestScript": "",
"pathVariables": {},
"method": "GET",
"data": [],
"dataMode": "params",
"version": 2,
"tests": "",
"time": 1415260182169,
"name": "Comments: get list - post",
"description": "",
"collectionId": "ecb79ae2-9fa2-9591-0f73-e94719358120",
"responses": [],
"synced": false
},
{
"id": "b2aaf0ea-607a-a766-d28c-c9b8b16c662a",
"headers": "",
"url": "http://api-gigakyujin.herokuapp.com/v1/comments?access_token=03807cb390319329bdf6c777d4dfae9c0d3b3c35&parent_type=comment&parent_id=12345678-2222-2222-2222-123456789012",
"preRequestScript": "",
"pathVariables": {},
"method": "GET",
"data": [],
"dataMode": "params",
"version": 2,
"tests": "",
"time": 1415260193680,
"name": "Comments: get list - empty",
"description": "",
"collectionId": "ecb79ae2-9fa2-9591-0f73-e94719358120",
"responses": [],
"synced": false
},
{
"id": "cca8605d-874d-ba0b-b0e4-764395b50d8e",
"headers": "",
"url": "http://api-gigakyujin.herokuapp.com/v1/comments?access_token=03807cb390319329bdf6c777d4dfae9c0d3b3c35&parent_type=comment&parent_id=12345678-1111-1111-1111-123456789012",
"preRequestScript": "",
"pathVariables": {},
"method": "GET",
"data": [],
"dataMode": "params",
"version": 2,
"tests": "",
"time": 1415260211858,
"name": "Comments: get list - comment",
"description": "",
"collectionId": "ecb79ae2-9fa2-9591-0f73-e94719358120",
"responses": [],
"synced": false
},
{
"id": "dd319383-774f-4710-7e54-3da4fa5db96c",
"headers": "",
"url": "http://api-gigakyujin.herokuapp.com/v1/comments/12345678-1111-1111-1111-123456789012",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
"data": [
{
"key": "action",
"value": "report",
"type": "text",
"enabled": true
},
{
"key": "author_id",
"value": "03807cb390319329bdf6c777d4dfae9c0d3b3c35",
"type": "text",
"enabled": true
},
{
"key": "access_token",
"value": "03807cb390319329bdf6c777d4dfae9c0d3b3c35",
"type": "text",
"enabled": true
},
{
"key": "positive",
"value": "true",
"type": "text",
"enabled": true
}
],
"dataMode": "urlencoded",
"version": 2,
"tests": "",
"time": 1415260150594,
"name": "Comments: report",
"description": "",
"collectionId": "ecb79ae2-9fa2-9591-0f73-e94719358120",
"responses": [],
"synced": false
},
{
"collectionId": "ecb79ae2-9fa2-9591-0f73-e94719358120",
"id": "f4d8ee77-a05b-41f8-f3ae-a9522a03ef59",
"name": "OAuth: Valid token request - 2",
"description": "",
"url": "http://api-gigakyujin.herokuapp.com/oauth/token?grant_type=password&username=other&password=password&client_id=test-client",
"method": "GET",
"headers": "",
"data": [
{
"key": "access_token",
"value": "03807cb390319329bdf6c777d4dfae9c0d3b3c35",
"type": "text"
},
{
"key": "parentType",
"value": "comment",
"type": "text"
},
{
"key": "parentId",
"value": "12345678-2222-2222-2222-123456789012",
"type": "text"
}
],
"dataMode": "params",
"timestamp": 0,
"version": 2,
"time": 1415259065356,
"synced": false
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment