Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Config file for Insomnia REST app for WP-API dev - change base_url, username, password and import into app
{
"_type": "export",
"__export_format": 2,
"__export_date": "2016-11-03T03:57:14.655Z",
"__export_source": "insomnia.desktop.app:v3.6.6",
"resources": [
{
"modified": 1477842143375,
"created": 1477841988306,
"parentId": null,
"name": "WordPress",
"_id": "wrk_de5a32b81b8c4e20a7208f452b96dbc4",
"_type": "workspace"
},
{
"modified": 1477848435556,
"created": 1477842033141,
"parentId": "wrk_de5a32b81b8c4e20a7208f452b96dbc4",
"name": "Base",
"data": {
"base_url": "http://wpcore.dev/src",
"username": "admin",
"password": "pword"
},
"_id": "env_86b0b7ea91eb490bbf475238e36fac0e",
"_type": "environment"
},
{
"modified": 1477868932104,
"created": 1477842269526,
"parentId": "wrk_de5a32b81b8c4e20a7208f452b96dbc4",
"name": "Default Jar",
"cookies": [],
"_id": "jar_9e1fb77788294ed6aa36a8a30e0ae611",
"_type": "cookie_jar"
},
{
"modified": 1477843091162,
"created": 1477843077032,
"parentId": "wrk_de5a32b81b8c4e20a7208f452b96dbc4",
"name": "WP-API",
"environment": {},
"_id": "fld_b491dad74cd04319b19684e4b8f050df",
"_type": "request_group"
},
{
"modified": 1477857387165,
"created": 1477857143461,
"parentId": "fld_b491dad74cd04319b19684e4b8f050df",
"url": "{{ base_url }}/wp-json/wp/v2/statuses",
"name": "Post Statuses",
"method": "GET",
"body": "",
"parameters": [],
"headers": [],
"authentication": {},
"_id": "req_07f3e9a064e548ecb8fe4d97aee90a14",
"_type": "request"
},
{
"modified": 1477857387165,
"created": 1477847828555,
"parentId": "fld_b491dad74cd04319b19684e4b8f050df",
"url": "{{ base_url }}/wp-json/wp/v2/posts",
"name": "Posts",
"method": "GET",
"body": "",
"parameters": [],
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"authentication": {
"username": "",
"password": ""
},
"_id": "req_0f51c92761754be0813f780271620fa2",
"_type": "request"
},
{
"modified": 1477857387165,
"created": 1477857362074,
"parentId": "fld_b491dad74cd04319b19684e4b8f050df",
"url": "{{ base_url }}/wp-json/wp/v2/categories",
"name": "Categories",
"method": "GET",
"body": "",
"parameters": [],
"headers": [],
"authentication": {},
"_id": "req_333dfb4dd78349f39b65d2432baf4ee5",
"_type": "request"
},
{
"modified": 1477857387165,
"created": 1477856713937,
"parentId": "fld_b491dad74cd04319b19684e4b8f050df",
"url": "{{ base_url }}/wp-json/wp/v2/media",
"name": "Media",
"method": "GET",
"body": "",
"parameters": [],
"headers": [],
"authentication": {},
"_id": "req_4597992e54924c7cadb4a74981ec3ed1",
"_type": "request"
},
{
"modified": 1477857387165,
"created": 1477857201001,
"parentId": "fld_b491dad74cd04319b19684e4b8f050df",
"url": "{{ base_url }}/wp-json/wp/v2/comments",
"name": "Comments",
"method": "GET",
"body": "",
"parameters": [],
"headers": [],
"authentication": {},
"_id": "req_45a9e29c8af4476fbbac09a98966fcc4",
"_type": "request"
},
{
"modified": 1477857387165,
"created": 1477842278523,
"parentId": "fld_b491dad74cd04319b19684e4b8f050df",
"url": "{{ base_url }}/wp-json/wp/v2/pages",
"name": "Pages",
"method": "GET",
"body": "",
"parameters": [],
"headers": [],
"authentication": {},
"_id": "req_6acd6c43454945bc8b5911fa6516ed93",
"_type": "request"
},
{
"modified": 1477858063426,
"created": 1477857507567,
"parentId": "fld_b491dad74cd04319b19684e4b8f050df",
"url": "{{ base_url }}/wp-json/wp/v2/users",
"name": "Users",
"method": "POST",
"body": "",
"parameters": [
{
"name": "username",
"value": "Cruella DeVille"
},
{
"name": "email",
"value": "cruella@gmail.com"
},
{
"name": "password",
"value": "puppies123"
}
],
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"authentication": {
"username": "{{username}}",
"password": "{{password}}"
},
"_id": "req_a39daa2adf154478aa1e4c3da590913f",
"_type": "request"
},
{
"modified": 1477857387165,
"created": 1477842997735,
"parentId": "fld_b491dad74cd04319b19684e4b8f050df",
"url": "{{ base_url }}/wp-json/",
"name": "Base",
"method": "GET",
"body": "",
"parameters": [],
"headers": [],
"authentication": {},
"_id": "req_b9b63ad6ef974111bb530660c9e83040",
"_type": "request"
},
{
"modified": 1477868906500,
"created": 1477857407946,
"parentId": "fld_b491dad74cd04319b19684e4b8f050df",
"url": "{{ base_url }}/wp-json/wp/v2/users",
"name": "Users",
"method": "GET",
"body": "",
"parameters": [
{
"name": "",
"value": ""
}
],
"headers": [],
"authentication": {
"username": "{{username}}",
"password": "{{password}}"
},
"_id": "req_c426ec8ee6e241ef9f9e7bb4ef2fcbd9",
"_type": "request"
},
{
"modified": 1477857387165,
"created": 1477842193579,
"parentId": "fld_b491dad74cd04319b19684e4b8f050df",
"url": "{{ base_url }}/wp-json/wp/v2/posts",
"name": "Posts",
"method": "POST",
"body": "{\n\t\"status\": \"draft\"\n}",
"parameters": [
{
"name": "title",
"value": "New Post"
},
{
"name": "content",
"value": "This is from the API"
}
],
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"authentication": {
"username": "{{username}}",
"password": "{{password}}"
},
"_id": "req_c6422ffd5a964d7cbce5d99c5afd2da9",
"_type": "request"
},
{
"modified": 1477857387165,
"created": 1477857059491,
"parentId": "fld_b491dad74cd04319b19684e4b8f050df",
"url": "{{ base_url }}/wp-json/wp/v2/types",
"name": "Post Types",
"method": "GET",
"body": "",
"parameters": [],
"headers": [],
"authentication": {},
"_id": "req_d27158474f1346749179af20608c108a",
"_type": "request"
},
{
"modified": 1477857394302,
"created": 1477857383988,
"parentId": "fld_b491dad74cd04319b19684e4b8f050df",
"url": "{{ base_url }}/wp-json/wp/v2/tags",
"name": "Tags",
"method": "GET",
"body": "",
"parameters": [],
"headers": [],
"authentication": {},
"_id": "req_f265347a84fb4a2e818804b713240596",
"_type": "request"
},
{
"modified": 1477857387165,
"created": 1477857271599,
"parentId": "fld_b491dad74cd04319b19684e4b8f050df",
"url": "{{ base_url }}/wp-json/wp/v2/taxonomies",
"name": "Taxonomies",
"method": "GET",
"body": "",
"parameters": [],
"headers": [],
"authentication": {},
"_id": "req_f9565c0974ea40cb89710d6e39ff4180",
"_type": "request"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment