Skip to content

Instantly share code, notes, and snippets.

@jpcaparas
Last active August 8, 2017 02:56
Show Gist options
  • Save jpcaparas/8277c34d975c5bcd2934664e2eee97a8 to your computer and use it in GitHub Desktop.
Save jpcaparas/8277c34d975c5bcd2934664e2eee97a8 to your computer and use it in GitHub Desktop.
Mongoblog postman collection
{
"variables": [],
"info": {
"name": "Mongoblog",
"_postman_id": "b3c8aae5-ae6a-7e2c-e602-68b704121213",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "Categories",
"description": "",
"item": [
{
"name": "/categories (index)",
"request": {
"url": "{{url}}/categories",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "/categories/{category} (show)",
"request": {
"url": "{{url}}/categories/{{category}}",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "/categories (store)",
"request": {
"url": "{{url}}/categories",
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "name",
"value": "This is a category name",
"type": "text",
"enabled": true
}
]
},
"description": ""
},
"response": []
},
{
"name": "/categories/{category} (update)",
"request": {
"url": "{{url}}/categories/{{category}}",
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "name",
"value": "This is a new category name",
"type": "text",
"enabled": true
},
{
"key": "_method",
"value": "PATCH",
"type": "text",
"enabled": true
}
]
},
"description": ""
},
"response": []
},
{
"name": "/categories/{category} (destroy)",
"request": {
"url": "{{url}}/categories/{{category}}",
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "_method",
"value": "DELETE",
"type": "text",
"enabled": true
}
]
},
"description": ""
},
"response": []
}
]
},
{
"name": "Comments",
"description": "",
"item": [
{
"name": "/comments (index)",
"request": {
"url": "{{url}}/comments?page=1",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "/comments/{comment} (show)",
"request": {
"url": "{{url}}/comments/{{comment}}",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "/comments (store)",
"request": {
"url": "{{url}}/comments",
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "author",
"value": "John Smith",
"type": "text",
"enabled": true
},
{
"key": "author_email",
"value": "john.smith@example.com",
"type": "text",
"enabled": true
},
{
"key": "author_url",
"value": "http://johnsmith.example",
"type": "text",
"enabled": true
},
{
"key": "author_ip",
"value": "127.0.0.1",
"type": "text",
"enabled": true
},
{
"key": "author_agent",
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 ",
"type": "text",
"enabled": true
},
{
"key": "content",
"value": "This is a comment",
"type": "text",
"enabled": true
},
{
"key": "post_id",
"value": "{{post}}",
"type": "text",
"enabled": true
}
]
},
"description": ""
},
"response": []
},
{
"name": "/comments/{comment} (update)",
"request": {
"url": "{{url}}/comments/{{comment}}",
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "author",
"value": "Andrew Smith",
"type": "text",
"enabled": true
},
{
"key": "author_email",
"value": "andrew.smith@example.com",
"type": "text",
"enabled": true
},
{
"key": "author_url",
"value": "http://andrewsmith.example",
"type": "text",
"enabled": true
},
{
"key": "author_ip",
"value": "192.168.1.1",
"type": "text",
"enabled": true
},
{
"key": "author_agent",
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 ",
"type": "text",
"enabled": true
},
{
"key": "content",
"value": "This is a new comment",
"type": "text",
"enabled": true
},
{
"key": "post_id",
"value": "{{post}}",
"type": "text",
"enabled": true
},
{
"key": "_method",
"value": "PATCH",
"type": "text",
"enabled": true
}
]
},
"description": ""
},
"response": []
},
{
"name": "/comments/{comment} (destroy)",
"request": {
"url": "{{url}}/comments/{{comment}}",
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "_method",
"value": "DELETE",
"type": "text",
"enabled": true
}
]
},
"description": ""
},
"response": []
}
]
},
{
"name": "Posts",
"description": "",
"item": [
{
"name": "/posts (index)",
"request": {
"url": "{{url}}/posts",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "/posts/{post} (show)",
"request": {
"url": "{{url}}/posts/{{id}}",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "/posts (store)",
"request": {
"url": "{{url}}/posts",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"description": ""
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "title",
"value": "This is a post title",
"type": "text",
"enabled": true
},
{
"key": "is_published",
"value": "1",
"type": "text",
"enabled": true
},
{
"key": "user_id",
"value": "5986331a1d168c432710b7ca",
"type": "text",
"enabled": true
},
{
"key": "categories[0]",
"value": "{{category}}",
"type": "text",
"enabled": true
},
{
"key": "tags[0]",
"value": "{{tag}}",
"type": "text",
"enabled": true
}
]
},
"description": ""
},
"response": []
},
{
"name": "/posts/{post} (update)",
"request": {
"url": "{{url}}/posts/{{post}}",
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "title",
"value": "This is new post title",
"type": "text",
"enabled": true
},
{
"key": "is_published",
"value": "0",
"type": "text",
"enabled": true
},
{
"key": "categories[0]",
"value": "{{category}}",
"type": "text",
"enabled": true
},
{
"key": "tags[0]",
"value": "{{tag}}",
"type": "text",
"enabled": true
},
{
"key": "user_id",
"value": "5986331a1d168c432710b7ca",
"type": "text",
"enabled": true
},
{
"key": "_method",
"value": "PUT",
"type": "text",
"enabled": true
}
]
},
"description": ""
},
"response": []
},
{
"name": "/posts/{post} (destroy)",
"request": {
"url": "{{url}}/posts/{{post}}",
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "_method",
"value": "DELETE",
"type": "text",
"enabled": true
}
]
},
"description": ""
},
"response": []
}
]
},
{
"name": "Tags",
"description": "",
"item": [
{
"name": "/tags (index)",
"request": {
"url": "{{url}}/tags?page=1",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "/tags/{id} (show)",
"request": {
"url": "{{url}}/tags/{{tag}}",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "/tags (store)",
"request": {
"url": "{{url}}/tags",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"description": ""
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "name",
"value": "This is a tag name",
"type": "text",
"enabled": true
}
]
},
"description": ""
},
"response": []
},
{
"name": "/tags/{tag} (update)",
"request": {
"url": "{{url}}/tags/{{tag}}",
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "name",
"value": "This is a new tag name",
"type": "text",
"enabled": true
},
{
"key": "_method",
"value": "PATCH",
"type": "text",
"enabled": true
}
]
},
"description": ""
},
"response": []
},
{
"name": "/tags/{tag} (destroy)",
"request": {
"url": "{{url}}/tags/{{tag}}",
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "_method",
"value": "DELETE",
"type": "text",
"enabled": true
}
]
},
"description": ""
},
"response": []
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment