Skip to content

Instantly share code, notes, and snippets.

@sebgie
Created May 13, 2014 13:29
Show Gist options
  • Save sebgie/7a44f4021bebbc078897 to your computer and use it in GitHub Desktop.
Save sebgie/7a44f4021bebbc078897 to your computer and use it in GitHub Desktop.
Ghost Postman Collection
{
"id": "9e133283-a4b6-f10b-9017-3cecb199caf5",
"name": "Ghost",
"description": "",
"order": [
"a4c7e155-2226-b93a-4e7f-2ac4a627d1b3",
"1d854d60-f99b-a64d-a3c5-df0382cc617a",
"f5b3f80c-950d-5a16-65e5-37e33e6caa81",
"a65e4759-e61c-0880-f8a9-1967765c63f1",
"38db5f5d-fd17-614d-7fbe-341f7c5df8c5",
"e74a472c-6c29-6e61-d7e9-8d0fd7e2a1f6",
"9db4d75c-49d4-0160-39f6-3098a1c1dead",
"a3a3363d-a5bd-46bc-1f72-9beb49cf8be8",
"8a1f2544-2147-574b-e9b2-02c8c6f13917",
"de377f2c-a1a1-0876-1bc7-b9c37fa136cc",
"cb68edd2-9348-0897-4b48-80add18acf2a",
"90726bb7-b99d-fd85-2625-fdb55f379b94",
"dad09bb5-6f97-54a1-d71e-ebf6de30c1fa",
"e9af2cd3-c21b-15ba-0799-5608d326a362",
"ad009910-9f4c-9a79-4343-3c756e16e131"
],
"folders": [],
"timestamp": 1399643925946,
"synced": false,
"requests": [
{
"id": "1d854d60-f99b-a64d-a3c5-df0382cc617a",
"headers": "",
"url": "https://local.tryghost.org/ghost/api/v0.1/posts/1/",
"pathVariables": {},
"method": "GET",
"data": [],
"dataMode": "params",
"name": "Request one Post",
"description": "",
"descriptionFormat": "html",
"time": 1399898366720,
"version": 2,
"responses": [],
"tests": "",
"collectionId": "9e133283-a4b6-f10b-9017-3cecb199caf5",
"synced": false
},
{
"id": "38db5f5d-fd17-614d-7fbe-341f7c5df8c5",
"headers": "X-CSRF-Token: {{X-CSRF-Token}}\nContent-Type: application/json\n",
"url": "https://local.tryghost.org/ghost/api/v0.1/posts/19/",
"pathVariables": {},
"method": "DELETE",
"data": "",
"dataMode": "raw",
"version": 2,
"tests": "",
"time": 1399897992232,
"name": "Delete a post",
"description": "",
"collectionId": "9e133283-a4b6-f10b-9017-3cecb199caf5",
"responses": [],
"synced": false
},
{
"id": "8a1f2544-2147-574b-e9b2-02c8c6f13917",
"headers": "",
"url": "https://local.tryghost.org/ghost/api/v0.1/settings/",
"pathVariables": {},
"method": "GET",
"data": [],
"dataMode": "params",
"name": "Request all Settings",
"description": "",
"descriptionFormat": "html",
"time": 1399899111738,
"version": 2,
"responses": [],
"tests": "",
"collectionId": "9e133283-a4b6-f10b-9017-3cecb199caf5",
"synced": false
},
{
"id": "90726bb7-b99d-fd85-2625-fdb55f379b94",
"headers": "",
"url": "https://local.tryghost.org/ghost/api/v0.1/tags/",
"pathVariables": {},
"method": "GET",
"data": [],
"dataMode": "params",
"name": "Request all Tags",
"description": "",
"descriptionFormat": "html",
"time": 1399899302240,
"version": 2,
"responses": [],
"tests": "",
"collectionId": "9e133283-a4b6-f10b-9017-3cecb199caf5",
"synced": false
},
{
"id": "9db4d75c-49d4-0160-39f6-3098a1c1dead",
"headers": "",
"url": "https://local.tryghost.org/ghost/api/v0.1/users/1/",
"pathVariables": {},
"method": "GET",
"data": [],
"dataMode": "params",
"version": 2,
"tests": "",
"time": 1399898820009,
"name": "Request one User",
"description": "",
"collectionId": "9e133283-a4b6-f10b-9017-3cecb199caf5",
"responses": [],
"synced": false
},
{
"id": "a3a3363d-a5bd-46bc-1f72-9beb49cf8be8",
"headers": "X-CSRF-Token: {{X-CSRF-Token}}\nContent-Type: application/json\n",
"url": "https://local.tryghost.org/ghost/api/v0.1/users/1/",
"pathVariables": {},
"method": "PUT",
"data": "{\n \"users\": [\n {\n \"id\": 1,\n \"name\": \"Sebastian Gierlinger 1\"\n }\n ]\n}",
"dataMode": "raw",
"version": 2,
"tests": "",
"time": 1399898503109,
"name": "Update a user",
"description": "",
"collectionId": "9e133283-a4b6-f10b-9017-3cecb199caf5",
"responses": [],
"synced": false
},
{
"id": "a4c7e155-2226-b93a-4e7f-2ac4a627d1b3",
"headers": "",
"url": "https://local.tryghost.org/ghost/api/v0.1/posts/?status=all",
"pathVariables": {},
"method": "GET",
"data": [],
"dataMode": "params",
"name": "Request all Posts",
"description": "",
"descriptionFormat": "html",
"time": 1399648727699,
"version": 2,
"responses": [],
"tests": "",
"collectionId": "9e133283-a4b6-f10b-9017-3cecb199caf5",
"synced": false
},
{
"id": "a65e4759-e61c-0880-f8a9-1967765c63f1",
"headers": "X-CSRF-Token: {{X-CSRF-Token}}\nContent-Type: application/json\n",
"url": "https://local.tryghost.org/ghost/api/v0.1/posts/",
"pathVariables": {},
"method": "POST",
"data": "{\n \"posts\": [\n {\n \"title\": \"New post\",\n \"status\": \"draft\",\n \"markdown\": \"\"\n }\n ]\n}",
"dataMode": "raw",
"version": 2,
"tests": "",
"time": 1399897972381,
"name": "Add a new post",
"description": "",
"collectionId": "9e133283-a4b6-f10b-9017-3cecb199caf5",
"responses": [],
"synced": false
},
{
"id": "ad009910-9f4c-9a79-4343-3c756e16e131",
"headers": "X-CSRF-Token: {{X-CSRF-Token}}\nContent-Type: application/json\n",
"url": "https://local.tryghost.org/ghost/api/v0.1/notifications/3/",
"pathVariables": {},
"method": "DELETE",
"data": "",
"dataMode": "raw",
"version": 2,
"tests": "",
"time": 1399914171371,
"name": "Delete a notification",
"description": "",
"collectionId": "9e133283-a4b6-f10b-9017-3cecb199caf5",
"responses": [],
"synced": false
},
{
"id": "cb68edd2-9348-0897-4b48-80add18acf2a",
"headers": "X-CSRF-Token: {{X-CSRF-Token}}\nContent-Type: application/json\n",
"url": "https://local.tryghost.org/ghost/api/v0.1/settings/",
"pathVariables": {},
"method": "PUT",
"data": "{\n \"settings\": [\n {\n \"id\":5,\n \"key\":\"title\",\n \"value\":\"new title\"\n }\n ]\n}",
"dataMode": "raw",
"name": "Update a setting",
"description": "",
"descriptionFormat": "html",
"time": 1399899258970,
"version": 2,
"responses": [],
"tests": "",
"collectionId": "9e133283-a4b6-f10b-9017-3cecb199caf5",
"synced": false
},
{
"id": "dad09bb5-6f97-54a1-d71e-ebf6de30c1fa",
"headers": "",
"url": "https://local.tryghost.org/ghost/api/v0.1/notifications/",
"pathVariables": {},
"method": "GET",
"data": [],
"dataMode": "params",
"name": "Request all Notifications",
"description": "",
"descriptionFormat": "html",
"time": 1399913969269,
"version": 2,
"responses": [],
"tests": "",
"collectionId": "9e133283-a4b6-f10b-9017-3cecb199caf5",
"synced": false
},
{
"id": "de377f2c-a1a1-0876-1bc7-b9c37fa136cc",
"headers": "",
"url": "https://local.tryghost.org/ghost/api/v0.1/settings/title",
"pathVariables": {},
"method": "GET",
"data": [],
"dataMode": "params",
"name": "Request one Setting",
"description": "",
"descriptionFormat": "html",
"time": 1399899130608,
"version": 2,
"responses": [],
"tests": "",
"collectionId": "9e133283-a4b6-f10b-9017-3cecb199caf5",
"synced": false
},
{
"id": "e74a472c-6c29-6e61-d7e9-8d0fd7e2a1f6",
"headers": "",
"url": "https://local.tryghost.org/ghost/api/v0.1/users/",
"pathVariables": {},
"method": "GET",
"data": [],
"dataMode": "params",
"name": "Request all Users",
"description": "",
"descriptionFormat": "html",
"time": 1399644430225,
"version": 2,
"responses": [],
"tests": "",
"collectionId": "9e133283-a4b6-f10b-9017-3cecb199caf5",
"synced": false
},
{
"id": "e9af2cd3-c21b-15ba-0799-5608d326a362",
"headers": "X-CSRF-Token: {{X-CSRF-Token}}\nContent-Type: application/json\n",
"url": "https://local.tryghost.org/ghost/api/v0.1/notifications/",
"pathVariables": {},
"method": "POST",
"data": "{\n \"message\":\"blabla bal\"\n}",
"dataMode": "raw",
"version": 2,
"tests": "",
"time": 1399914098979,
"name": "Add a new notification",
"description": "",
"collectionId": "9e133283-a4b6-f10b-9017-3cecb199caf5",
"responses": [],
"synced": false
},
{
"id": "f5b3f80c-950d-5a16-65e5-37e33e6caa81",
"headers": "X-CSRF-Token: {{X-CSRF-Token}}\nContent-Type: application/json\n",
"url": "https://local.tryghost.org/ghost/api/v0.1/posts/19/",
"pathVariables": {},
"method": "PUT",
"data": "{\n \"posts\": [\n {\n \"id\": 19,\n \"uuid\": \"d543286e-b1d3-4d29-97a0-5da6ea205486\",\n \"title\": \"New post\",\n \"slug\": \"new-post\",\n \"markdown\": \"ma yne post\",\n \"html\": \"<p>ma yne post</p>\",\n \"image\": null,\n \"featured\": false,\n \"page\": false,\n \"status\": \"draft\",\n \"language\": \"en_US\",\n \"meta_title\": null,\n \"meta_description\": null,\n \"created_at\": \"2014-03-18T19:05:01.966Z\",\n \"created_by\": 1,\n \"updated_at\": \"2014-03-18T19:05:01.966Z\",\n \"updated_by\": 1,\n \"published_at\": null,\n \"published_by\": null,\n \"tags\": [],\n \"fields\": [],\n \"author\": 1\n }\n ]\n}",
"dataMode": "raw",
"version": 2,
"tests": "",
"time": 1399897967118,
"name": "Update a post",
"description": "",
"collectionId": "9e133283-a4b6-f10b-9017-3cecb199caf5",
"responses": [],
"synced": false
}
]
}
@sebgie
Copy link
Author

sebgie commented May 13, 2014

Ghost collection for Postman.

The collection makes use of the X-CSRF-Token environment variable that holds the csrf token of your current session. You have to configure the environment within Postman. To use this collection it is required to install Postman Interceptor for sessions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment