Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save oksana-c/fcb3b81183c702c17565f37fac5c9288 to your computer and use it in GitHub Desktop.
Save oksana-c/fcb3b81183c702c17565f37fac5c9288 to your computer and use it in GitHub Desktop.
GAO API for PR Tests -
{
"info": {
"_postman_id": "327e8396-b20c-49f7-8827-214aaa11203c",
"name": "GAO API for PR Tests",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "GAO Product Post",
"request": {
"auth": {
"type": "oauth2",
"oauth2": [
{
"key": "accessToken",
"value": "",
"type": "string"
},
{
"key": "tokenType",
"value": "Bearer",
"type": "string"
},
{
"key": "addTokenTo",
"value": "header",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "X-CSRF-Token",
"type": "text",
"value": "UPDATE ME"
},
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "Accept",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": [{\"target_id\":\"product\"}],\n \"title\": [{\"value\":\"Product Test POST - 1\"}],\n \"field_issue_date\": [{\"value\":\"2019-07-07T07:07:07\"}],\n \"field_docdate\": [{\"value\":\"2019-07-07T07:07:07\"}],\n \"field_original_release\": [{\"value\":\"2019-07-07T07:07:07\"}],\n \"field_errata\": [{\"value\": \"Errata Value UPDATE\"}],\n \"field_product_type_group_source\": [{\"value\": \"Product Type Group 1\"}],\n \"field_document_type_source\": [{\"value\": \"Report\"}],\n \"field_jobcode\": [{\"value\": \"123456\"}],\n \"field_content_id\": [{\"value\": \"1\"}],\n \"field_accno\": [{\"value\": \"ABC123\"}],\n \"field_product_code\": [{\"value\": \"ABC321\"}],\n \"field_product_number\": [{\"value\": \"PRODNUM2\"}],\n \"field_topic_source\": [{\"value\": \"Agriculture and Food\"}],\n \"field_additional_topics_source\": [{\"value\": \"Budget and Spending,Education\"}],\n \"field_agency_source\": [{\"value\": \"Test Agency 1\"}],\n \"field_subject_term_source\": [{\"value\": \"401(k) plans,AA-1 Visas\"}],\n \"field_child_product_id\": [{\"value\": \"pdf_id_1,pdf_id_2,video_id_1,video_id_2\"}],\n \"field_staff_director_source\": [{\"value\": \"John Doe\"}],\n \"field_witness_source\": [{\"value\": \"John Smith,Jane Doe\"}],\n \"field_description\": [{\"value\": \"Description\"}],\n \"field_fast_facts_description\": [{\"value\": \"Facts\"}],\n \"field_html_block\": [{\"value\": \"HTML Block content\"}]\n}"
},
"url": {
"raw": "https://gao.test/api/v1/product?_format=json",
"protocol": "https",
"host": [
"gao",
"test"
],
"path": [
"api",
"v1",
"product"
],
"query": [
{
"key": "_format",
"value": "json"
}
]
}
},
"response": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment