TalentMAP-API.postman_collection.json
{
"info": {
"_postman_id": "75f41f3e-0538-4d08-9e1e-d12b29644047",
"name": "TalentMAP-API",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "19944110"
},
"item": [
{
"name": "Initialize / Profile",
"item": [
{
"name": "POST /token and GET /profile",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
"var host = pm.environment.get('host');",
"var uname = pm.environment.get('uname');",
"var upw = pm.environment.get('upw');",
"",
"pm.sendRequest({",
" url: `${host}/api/v1/accounts/token/`,",
" method: 'POST',",
" header: 'Content-Type:application/x-www-form-urlencoded',",
" body: {",
" mode: 'urlencoded',",
" urlencoded: [",
" { key: \"username\", value: uname },",
" { key: \"password\", value: upw },",
" ]",
" }",
"}, (err, res) => {",
" const { token } = res.json();",
" pm.environment.set('Authorization', `Token ${token}`);",
"});"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"exec": [
"res = pm.response.json()",
"",
"var Ajv = require('ajv'),",
" ajv = new Ajv({logger: console}),",
" schema = {",
" \"required\": [",
" \"id\",",
" \"is_cdo\",",
" \"initials\",",
" \"avatar\",",
" \"display_name\",",
" \"cdo_info\",",
" \"employee_info\",",
" \"user_info\",",
" \"current_assignment\",",
" \"emp_id\",",
" \"user\"",
" ],",
" \"properties\": {",
" \"id\": {",
" \"$id\": \"#/properties/id\",",
" \"type\": \"integer\"",
" },",
" \"is_cdo\": {",
" \"$id\": \"#/properties/is_cdo\",",
" \"type\": \"boolean\"",
" },",
" \"initials\": {",
" \"$id\": \"#/properties/initials\",",
" \"type\": \"string\"",
" },",
" \"avatar\": {",
" \"required\": [",
" \"s\",",
" \"m\",",
" \"l\",",
" \"compare\"",
" ],",
" \"properties\": {",
" \"s\": {",
" \"$id\": \"#/properties/avatar/properties/s\",",
" \"type\": \"string\"",
" },",
" \"m\": {",
" \"$id\": \"#/properties/avatar/properties/m\",",
" \"type\": \"string\"",
" },",
" \"l\": {",
" \"$id\": \"#/properties/avatar/properties/l\",",
" \"type\": \"string\"",
" },",
" \"compare\": {",
" \"items\": {",
" \"$id\": \"#/properties/avatar/properties/compare/items\",",
" \"type\": \"string\"",
" },",
" \"$id\": \"#/properties/avatar/properties/compare\",",
" \"type\": \"array\"",
" }",
" },",
" \"$id\": \"#/properties/avatar\",",
" \"type\": \"object\"",
" },",
" \"display_name\": {",
" \"$id\": \"#/properties/display_name\",",
" \"type\": \"string\"",
" },",
" \"cdo_info\": {",
" \"required\": [],",
" \"properties\": {},",
" \"$id\": \"#/properties/cdo_info\",",
" \"type\": \"object\"",
" },",
" \"employee_info\": {",
" \"required\": [],",
" \"properties\": {},",
" \"$id\": \"#/properties/employee_info\",",
" \"type\": \"object\"",
" },",
" \"user_info\": {",
" \"required\": [],",
" \"properties\": {},",
" \"$id\": \"#/properties/user_info\",",
" \"type\": \"object\"",
" },",
" \"current_assignment\": {",
" \"required\": [],",
" \"properties\": {},",
" \"$id\": \"#/properties/current_assignment\",",
" \"type\": \"object\"",
" },",
" \"emp_id\": {",
" \"$id\": \"#/properties/emp_id\",",
" \"type\": \"string\"",
" },",
" \"user\": {",
" \"required\": [",
" \"username\",",
" \"email\",",
" \"first_name\",",
" \"last_name\"",
" ],",
" \"properties\": {",
" \"username\": {",
" \"$id\": \"#/properties/user/properties/username\",",
" \"type\": \"string\"",
" },",
" \"email\": {",
" \"$id\": \"#/properties/user/properties/email\",",
" \"type\": \"string\"",
" },",
" \"first_name\": {",
" \"$id\": \"#/properties/user/properties/first_name\",",
" \"type\": \"string\"",
" },",
" \"last_name\": {",
" \"$id\": \"#/properties/user/properties/last_name\",",
" \"type\": \"string\"",
" }",
" },",
" \"$id\": \"#/properties/user\",",
" \"type\": \"object\"",
" }",
" },",
" \"$id\": \"http://example.org/root.json#\",",
" \"type\": \"object\",",
" \"definitions\": {},",
" \"$schema\": \"http://json-schema.org/draft-07/schema#\"",
"};",
"",
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"});",
"",
"pm.test(\"Matches schema\", function () {",
" pm.expect(ajv.validate(schema, res), JSON.stringify(ajv.errors)).to.be.true;",
"});"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {}
},
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/profile/",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"profile",
""
]
}
},
"response": []
}
]
},
{
"name": "Glossary",
"item": [
{
"name": "GET /glossary",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"exec": [
"res = pm.response.json()",
"",
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"});",
"",
"pm.test(\"Response contains 'results' property\", function () {",
" pm.expect(res).to.have.property('results');",
"});"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {}
},
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/glossary/",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"glossary",
""
]
}
},
"response": []
}
]
},
{
"name": "FSBid",
"item": [
{
"name": "reference",
"item": [
{
"name": "GET /fsbid/reference/travelfunctions/",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var Ajv = require(\"ajv\"),",
" ajv = new Ajv({logger: console}),",
" schema = schema = {",
" \"required\": [",
" \"results\"",
" ],",
" \"properties\": {",
" \"results\": {",
" \"items\": {",
" \"required\": [",
" \"code\",",
" \"abbr_desc_text\",",
" \"desc_text\"",
" ],",
" \"properties\": {",
" \"code\": {",
" \"$id\": \"#/properties/results/items/properties/code\",",
" \"type\": \"string\"",
" },",
" \"abbr_desc_text\": {",
" \"$id\": \"#/properties/results/items/properties/abbr_desc_text\",",
" \"type\": \"string\"",
" },",
" \"desc_text\": {",
" \"$id\": \"#/properties/results/items/properties/desc_text\",",
" \"type\": \"string\"",
" }",
" },",
" \"$id\": \"#/properties/results/items\",",
" \"type\": \"object\"",
" },",
" \"$id\": \"#/properties/results\",",
" \"type\": \"array\"",
" }",
" },",
"};",
"",
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"});",
"",
"pm.test(\"Schema is valid\", function() {",
" pm.expect(ajv.validate(schema, pm.response.json())).to.be.true;",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
},
{
"key": "jwt",
"value": "{{jwt}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/fsbid/reference/travelfunctions/",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"fsbid",
"reference",
"travelfunctions",
""
]
}
},
"response": []
}
]
},
{
"name": "GET /fsbid/available_positions/",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"exec": [
"res = pm.response.json()",
"",
"var Ajv = require('ajv'),",
" ajv = new Ajv({logger: console}),",
" schema = {",
" \"required\": [",
" \"count\",",
" \"next\",",
" \"previous\",",
" \"results\"",
" ],",
" \"properties\": {",
" \"count\": {",
" \"$id\": \"#/properties/count\",",
" \"type\": \"integer\"",
" },",
" \"next\": {",
" \"$id\": \"#/properties/next\",",
" \"type\": \"string\"",
" },",
" \"previous\": {",
" \"$id\": \"#/properties/previous\",",
" \"type\": \"null\"",
" },",
" \"results\": {",
" \"items\": {",
" \"required\": [",
" \"id\",",
" \"status\",",
" \"status_code\",",
" \"ted\",",
" \"posted_date\",",
" \"availability\",",
" \"tandem_nbr\",",
" \"position\",",
" \"bidcycle\",",
" \"bid_statistics\",",
" \"unaccompaniedStatus\",",
" \"isConsumable\",",
" \"isServiceNeedDifferential\",",
" \"isDifficultToStaff\",",
" \"isEFMInside\",",
" \"isEFMOutside\",",
" \"isHardToFill\"",
" ],",
" \"properties\": {",
" \"id\": {",
" \"$id\": \"#/properties/results/items/properties/id\",",
" \"type\": \"integer\"",
" },",
" \"status\": {",
" \"$id\": \"#/properties/results/items/properties/status\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"status_code\": {",
" \"$id\": \"#/properties/results/items/properties/status_code\",",
" \"type\": \"string\"",
" },",
" \"ted\": {",
" \"$id\": \"#/properties/results/items/properties/ted\",",
" \"type\": \"string\"",
" },",
" \"posted_date\": {",
" \"$id\": \"#/properties/results/items/properties/posted_date\",",
" \"type\": \"string\"",
" },",
" \"availability\": {",
" \"required\": [",
" \"availability\",",
" \"reason\"",
" ],",
" \"properties\": {",
" \"availability\": {",
" \"$id\": \"#/properties/results/items/properties/availability/properties/availability\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"reason\": {",
" \"$id\": \"#/properties/results/items/properties/availability/properties/reason\",",
" \"type\": [\"null\", \"string\"]",
" }",
" },",
" \"$id\": \"#/properties/results/items/properties/availability\",",
" \"type\": \"object\"",
" },",
" \"tandem_nbr\": {",
" \"$id\": \"#/properties/results/items/properties/tandem_nbr\",",
" \"type\": [\"null\", \"number\"]",
" },",
" \"position\": {",
" \"required\": [",
" \"id\",",
" \"grade\",",
" \"skill\",",
" \"skill_code\",",
" \"skill_secondary\",",
" \"skill_secondary_code\",",
" \"bureau\",",
" \"bureau_code\",",
" \"organization\",",
" \"organization_code\",",
" \"tour_of_duty\",",
" \"classifications\",",
" \"representation\",",
" \"availability\",",
" \"position_number\",",
" \"title\",",
" \"is_overseas\",",
" \"is_highlighted\",",
" \"create_date\",",
" \"update_date\",",
" \"effective_date\",",
" \"posted_date\",",
" \"description\",",
" \"current_assignment\",",
" \"commuterPost\",",
" \"post\",",
" \"latest_bidcycle\",",
" \"languages\"",
" ],",
" \"properties\": {",
" \"id\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/id\",",
" \"type\": [\"null\", \"number\"]",
" },",
" \"grade\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/grade\",",
" \"type\": \"string\"",
" },",
" \"skill\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/skill\",",
" \"type\": \"string\"",
" },",
" \"skill_code\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/skill_code\",",
" \"type\": \"string\"",
" },",
" \"skill_secondary\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/skill_secondary\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"skill_secondary_code\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/skill_secondary_code\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"bureau\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/bureau\",",
" \"type\": \"string\"",
" },",
" \"bureau_code\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/bureau_code\",",
" \"type\": \"string\"",
" },",
" \"organization\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/organization\",",
" \"type\": \"string\"",
" },",
" \"organization_code\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/organization_code\",",
" \"type\": \"string\"",
" },",
" \"tour_of_duty\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/tour_of_duty\",",
" \"type\": \"string\"",
" },",
" \"classifications\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/classifications\",",
" \"type\": [\"null\", \"array\"]",
" },",
" \"representation\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/representation\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"availability\": {",
" \"required\": [",
" \"availability\",",
" \"reason\"",
" ],",
" \"properties\": {",
" \"availability\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/availability/properties/availability\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"reason\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/availability/properties/reason\",",
" \"type\": [\"null\", \"string\"]",
" }",
" },",
" \"$id\": \"#/properties/results/items/properties/position/properties/availability\",",
" \"type\": \"object\"",
" },",
" \"position_number\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/position_number\",",
" \"type\": \"string\"",
" },",
" \"title\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/title\",",
" \"type\": \"string\"",
" },",
" \"is_overseas\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/is_overseas\",",
" \"type\": [\"null\", \"boolean\"]",
" },",
" \"is_highlighted\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/is_highlighted\",",
" \"type\": \"boolean\"",
" },",
" \"create_date\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/create_date\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"update_date\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/update_date\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"effective_date\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/effective_date\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"posted_date\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/posted_date\",",
" \"type\": \"string\"",
" },",
" \"description\": {",
" \"required\": [",
" \"id\",",
" \"last_editing_user\",",
" \"is_editable_by_user\",",
" \"date_created\",",
" \"date_updated\",",
" \"content\",",
" \"point_of_contact\",",
" \"website\"",
" ],",
" \"properties\": {",
" \"id\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/description/properties/id\",",
" \"type\": [\"null\", \"number\"]",
" },",
" \"last_editing_user\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/description/properties/last_editing_user\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"is_editable_by_user\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/description/properties/is_editable_by_user\",",
" \"type\": [\"null\", \"boolean\"]",
" },",
" \"date_created\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/description/properties/date_created\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"date_updated\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/description/properties/date_updated\",",
" \"type\": \"string\"",
" },",
" \"content\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/description/properties/content\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"point_of_contact\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/description/properties/point_of_contact\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"website\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/description/properties/website\",",
" \"type\": [\"null\", \"string\"]",
" }",
" },",
" \"$id\": \"#/properties/results/items/properties/position/properties/description\",",
" \"type\": \"object\"",
" },",
" \"current_assignment\": {",
" \"required\": [",
" \"user\",",
" \"tour_of_duty\",",
" \"status\",",
" \"start_date\",",
" \"estimated_end_date\"",
" ],",
" \"properties\": {",
" \"user\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/current_assignment/properties/user\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"tour_of_duty\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/current_assignment/properties/tour_of_duty\",",
" \"type\": \"string\"",
" },",
" \"status\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/current_assignment/properties/status\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"start_date\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/current_assignment/properties/start_date\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"estimated_end_date\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/current_assignment/properties/estimated_end_date\",",
" \"type\": \"string\"",
" }",
" },",
" \"$id\": \"#/properties/results/items/properties/position/properties/current_assignment\",",
" \"type\": \"object\"",
" },",
" \"commuterPost\": {",
" \"required\": [",
" \"description\",",
" \"frequency\"",
" ],",
" \"properties\": {",
" \"description\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/commuterPost/properties/description\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"frequency\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/commuterPost/properties/frequency\",",
" \"type\": [\"null\", \"string\"]",
" }",
" },",
" \"$id\": \"#/properties/results/items/properties/position/properties/commuterPost\",",
" \"type\": \"object\"",
" },",
" \"post\": {",
" \"required\": [",
" \"id\",",
" \"code\",",
" \"tour_of_duty\",",
" \"post_overview_url\",",
" \"post_bidding_considerations_url\",",
" \"cost_of_living_adjustment\",",
" \"differential_rate\",",
" \"danger_pay\",",
" \"rest_relaxation_point\",",
" \"has_consumable_allowance\",",
" \"has_service_needs_differential\",",
" \"obc_id\",",
" \"location\"",
" ],",
" \"properties\": {",
" \"id\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/post/properties/id\",",
" \"type\": [\"null\", \"number\"]",
" },",
" \"code\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/post/properties/code\",",
" \"type\": \"string\"",
" },",
" \"tour_of_duty\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/post/properties/tour_of_duty\",",
" \"type\": \"string\"",
" },",
" \"post_overview_url\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/post/properties/post_overview_url\",",
" \"type\": [\"null\", \"string\", \"object\"]",
" },",
" \"post_bidding_considerations_url\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/post/properties/post_bidding_considerations_url\",",
" \"type\": [\"null\", \"object\"]",
" },",
" \"cost_of_living_adjustment\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/post/properties/cost_of_living_adjustment\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"differential_rate\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/post/properties/differential_rate\",",
" \"type\": \"integer\"",
" },",
" \"danger_pay\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/post/properties/danger_pay\",",
" \"type\": \"integer\"",
" },",
" \"rest_relaxation_point\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/post/properties/rest_relaxation_point\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"has_consumable_allowance\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/post/properties/has_consumable_allowance\",",
" \"type\": [\"null\", \"boolean\"]",
" },",
" \"has_service_needs_differential\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/post/properties/has_service_needs_differential\",",
" \"type\": [\"null\", \"boolean\"]",
" },",
" \"obc_id\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/post/properties/obc_id\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"location\": {",
" \"required\": [",
" \"country\",",
" \"code\",",
" \"city\",",
" \"state\"",
" ],",
" \"properties\": {",
" \"country\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/post/properties/location/properties/country\",",
" \"type\": \"string\"",
" },",
" \"code\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/post/properties/location/properties/code\",",
" \"type\": \"string\"",
" },",
" \"city\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/post/properties/location/properties/city\",",
" \"type\": \"string\"",
" },",
" \"state\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/post/properties/location/properties/state\",",
" \"type\": \"string\"",
" }",
" },",
" \"$id\": \"#/properties/results/items/properties/position/properties/post/properties/location\",",
" \"type\": \"object\"",
" }",
" },",
" \"$id\": \"#/properties/results/items/properties/position/properties/post\",",
" \"type\": \"object\"",
" },",
" \"latest_bidcycle\": {",
" \"required\": [",
" \"id\",",
" \"name\",",
" \"cycle_start_date\",",
" \"cycle_deadline_date\",",
" \"cycle_end_date\",",
" \"active\"",
" ],",
" \"properties\": {",
" \"id\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/latest_bidcycle/properties/id\",",
" \"type\": \"integer\"",
" },",
" \"name\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/latest_bidcycle/properties/name\",",
" \"type\": \"string\"",
" },",
" \"cycle_start_date\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/latest_bidcycle/properties/cycle_start_date\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"cycle_deadline_date\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/latest_bidcycle/properties/cycle_deadline_date\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"cycle_end_date\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/latest_bidcycle/properties/cycle_end_date\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"active\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/latest_bidcycle/properties/active\",",
" \"type\": [\"null\", \"boolean\"]",
" }",
" },",
" \"$id\": \"#/properties/results/items/properties/position/properties/latest_bidcycle\",",
" \"type\": \"object\"",
" },",
" \"languages\": {",
" \"items\": {",
" \"required\": [",
" \"language\",",
" \"reading_proficiency\",",
" \"spoken_proficiency\",",
" \"representation\"",
" ],",
" \"properties\": {",
" \"language\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/languages/items/properties/language\",",
" \"type\": \"string\"",
" },",
" \"reading_proficiency\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/languages/items/properties/reading_proficiency\",",
" \"type\": \"string\"",
" },",
" \"spoken_proficiency\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/languages/items/properties/spoken_proficiency\",",
" \"type\": \"string\"",
" },",
" \"representation\": {",
" \"$id\": \"#/properties/results/items/properties/position/properties/languages/items/properties/representation\",",
" \"type\": \"string\"",
" }",
" },",
" \"$id\": \"#/properties/results/items/properties/position/properties/languages/items\",",
" \"type\": \"object\"",
" },",
" \"$id\": \"#/properties/results/items/properties/position/properties/languages\",",
" \"type\": \"array\"",
" }",
" },",
" \"$id\": \"#/properties/results/items/properties/position\",",
" \"type\": \"object\"",
" },",
" \"bidcycle\": {",
" \"required\": [",
" \"id\",",
" \"name\",",
" \"cycle_start_date\",",
" \"cycle_deadline_date\",",
" \"cycle_end_date\",",
" \"active\"",
" ],",
" \"properties\": {",
" \"id\": {",
" \"$id\": \"#/properties/results/items/properties/bidcycle/properties/id\",",
" \"type\": \"integer\"",
" },",
" \"name\": {",
" \"$id\": \"#/properties/results/items/properties/bidcycle/properties/name\",",
" \"type\": \"string\"",
" },",
" \"cycle_start_date\": {",
" \"$id\": \"#/properties/results/items/properties/bidcycle/properties/cycle_start_date\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"cycle_deadline_date\": {",
" \"$id\": \"#/properties/results/items/properties/bidcycle/properties/cycle_deadline_date\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"cycle_end_date\": {",
" \"$id\": \"#/properties/results/items/properties/bidcycle/properties/cycle_end_date\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"active\": {",
" \"$id\": \"#/properties/results/items/properties/bidcycle/properties/active\",",
" \"type\": [\"null\", \"boolean\"]",
" }",
" },",
" \"$id\": \"#/properties/results/items/properties/bidcycle\",",
" \"type\": \"object\"",
" },",
" \"bid_statistics\": {",
" \"items\": {",
" \"required\": [",
" \"id\",",
" \"total_bids\",",
" \"in_grade\",",
" \"at_skill\",",
" \"in_grade_at_skill\",",
" \"has_handshake_offered\",",
" \"has_handshake_accepted\"",
" ],",
" \"properties\": {",
" \"id\": {",
" \"$id\": \"#/properties/results/items/properties/bid_statistics/items/properties/id\",",
" \"type\": [\"null\", \"number\"]",
" },",
" \"total_bids\": {",
" \"$id\": \"#/properties/results/items/properties/bid_statistics/items/properties/total_bids\",",
" \"type\": \"integer\"",
" },",
" \"in_grade\": {",
" \"$id\": \"#/properties/results/items/properties/bid_statistics/items/properties/in_grade\",",
" \"type\": \"integer\"",
" },",
" \"at_skill\": {",
" \"$id\": \"#/properties/results/items/properties/bid_statistics/items/properties/at_skill\",",
" \"type\": \"integer\"",
" },",
" \"in_grade_at_skill\": {",
" \"$id\": \"#/properties/results/items/properties/bid_statistics/items/properties/in_grade_at_skill\",",
" \"type\": \"integer\"",
" },",
" \"has_handshake_offered\": {",
" \"$id\": \"#/properties/results/items/properties/bid_statistics/items/properties/has_handshake_offered\",",
" \"type\": \"boolean\"",
" },",
" \"has_handshake_accepted\": {",
" \"$id\": \"#/properties/results/items/properties/bid_statistics/items/properties/has_handshake_accepted\",",
" \"type\": [\"null\", \"boolean\"]",
" }",
" },",
" \"$id\": \"#/properties/results/items/properties/bid_statistics/items\",",
" \"type\": \"object\"",
" },",
" \"$id\": \"#/properties/results/items/properties/bid_statistics\",",
" \"type\": \"array\"",
" },",
" \"unaccompaniedStatus\": {",
" \"$id\": \"#/properties/results/items/properties/unaccompaniedStatus\",",
" \"type\": \"string\"",
" },",
" \"isConsumable\": {",
" \"$id\": \"#/properties/results/items/properties/isConsumable\",",
" \"type\": \"boolean\"",
" },",
" \"isServiceNeedDifferential\": {",
" \"$id\": \"#/properties/results/items/properties/isServiceNeedDifferential\",",
" \"type\": \"boolean\"",
" },",
" \"isDifficultToStaff\": {",
" \"$id\": \"#/properties/results/items/properties/isDifficultToStaff\",",
" \"type\": \"boolean\"",
" },",
" \"isEFMInside\": {",
" \"$id\": \"#/properties/results/items/properties/isEFMInside\",",
" \"type\": \"boolean\"",
" },",
" \"isEFMOutside\": {",
" \"$id\": \"#/properties/results/items/properties/isEFMOutside\",",
" \"type\": \"boolean\"",
" },",
" \"isHardToFill\": {",
" \"$id\": \"#/properties/results/items/properties/isHardToFill\",",
" \"type\": \"boolean\"",
" }",
" },",
" \"$id\": \"#/properties/results/items\",",
" \"type\": \"object\"",
" },",
" \"$id\": \"#/properties/results\",",
" \"type\": \"array\"",
" }",
" },",
" \"$id\": \"http://example.org/root.json#\",",
" \"type\": \"object\",",
" \"definitions\": {},",
" \"$schema\": \"http://json-schema.org/draft-07/schema#\"",
"};",
"",
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"});",
"",
"pm.test(\"Matches schema\", function () {",
" pm.expect(ajv.validate(schema, res), JSON.stringify(ajv.errors)).to.be.true;",
"});"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {}
},
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
},
{
"key": "jwt",
"value": "{{jwt}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/fsbid/available_positions/?page=1&limit=100",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"fsbid",
"available_positions",
""
],
"query": [
{
"key": "page",
"value": "1"
},
{
"key": "limit",
"value": "100"
}
]
}
},
"response": []
},
{
"name": "GET /fsbid/available_positions/export/",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"exec": [
"// Determine why this occasionally fails in CI",
"/* const parse = require('csv-parse/lib/sync'),",
" parsedBody = parse(pm.response.text(), {relax_column_count: true});",
" ",
"pm.test(\"Correct CSV response\", function () {",
" // Check that we have at least 2 two (header + row)",
" pm.expect(parsedBody).to.have.length.above(1);",
"});",
"",
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"}); */"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {}
},
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
},
{
"key": "jwt",
"value": "{{jwt}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/fsbid/available_positions/export/?ordering=-posted_date&position__bureau__code__in=120000&position__grade__code__in=08",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"fsbid",
"available_positions",
"export",
""
],
"query": [
{
"key": "ordering",
"value": "-posted_date"
},
{
"key": "position__bureau__code__in",
"value": "120000"
},
{
"key": "position__grade__code__in",
"value": "08"
}
]
}
},
"response": []
},
{
"name": "GET /fsbid/assignment_history/id/",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var Ajv = require(\"ajv\"),",
" ajv = new Ajv({logger: console}),",
" schema = {",
" \"items\": {",
" \"required\": [",
" \"id\",",
" \"position_id\",",
" \"start_date\",",
" \"end_date\",",
" \"status\",",
" \"asgd_tod_desc_text\",",
" \"position\",",
" ],",
" \"properties\": {",
" \"id\": {",
" \"$id\": \"#/properties/id\",",
" \"type\": \"integer\"",
" },",
" \"position_id\": {",
" \"$id\": \"#/properties/position_id\",",
" \"type\": \"integer\"",
" },",
" \"start_date\": {",
" \"$id\": \"#/properties/start_date\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"end_date\": {",
" \"$id\": \"#/properties/end_date\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"status\": {",
" \"$id\": \"#/properties/status\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"asgd_tod_desc_text\": {",
" \"$id\": \"#/properties/asgd_tod_desc_text\",",
" \"type\": \"string\"",
" },",
" \"position\": {",
" \"$id\": \"#/properties/position\",",
" \"type\": \"object\"",
" },",
" },",
" \"$id\": \"#/items\",",
" \"type\": \"object\"",
" },",
" };",
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"});",
"pm.test(\"Schema is valid\", function() {",
" console.log(pm.response.json())",
" pm.expect(ajv.validate(schema, pm.response.json())).to.be.true;",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
},
{
"key": "jwt",
"value": "{{jwt}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/fsbid/assignment_history/{{tarek_id}}/?page=1&limit=1",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"fsbid",
"assignment_history",
"{{tarek_id}}",
""
],
"query": [
{
"key": "page",
"value": "1"
},
{
"key": "limit",
"value": "1"
}
]
}
},
"response": []
}
]
},
{
"name": "Agenda Employees",
"item": [
{
"name": "GET /fsbid/agenda_employees/reference/handshake-organizations/",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"exec": [
"var Ajv = require(\"ajv\"),",
" ajv = new Ajv({logger: console}),",
" schema = {",
" \"type\": \"array\",",
" \"items\": {",
" \"type\": \"object\",",
" \"properties\": {",
" \"code\": { \"type\": \"string\" },",
" \"name\": { \"type\": \"string\" }",
" } ",
" }",
" };",
"",
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"});",
"",
"pm.test(\"Schema is valid\", function() {",
" console.log(pm.response.json())",
" pm.expect(ajv.validate(schema, pm.response.json())).to.be.true;",
"});"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {}
},
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
},
{
"key": "jwt",
"value": "{{jwt}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/fsbid/agenda_employees/reference/handshake-organizations/",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"fsbid",
"agenda_employees",
"reference",
"handshake-organizations",
""
]
}
},
"response": []
},
{
"name": "GET /fsbid/agenda_employees/reference/current-organizations/",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"exec": [
"var Ajv = require(\"ajv\"),",
" ajv = new Ajv({logger: console}),",
" schema = {",
" \"type\": \"array\",",
" \"items\": {",
" \"type\": \"object\",",
" \"properties\": {",
" \"code\": { \"type\": \"string\" },",
" \"name\": { \"type\": \"string\" }",
" } ",
" }",
" };",
"",
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"});",
"",
"pm.test(\"Schema is valid\", function() {",
" console.log(pm.response.json())",
" pm.expect(ajv.validate(schema, pm.response.json())).to.be.true;",
"});"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {}
},
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
},
{
"key": "jwt",
"value": "{{jwt}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/fsbid/agenda_employees/reference/current-organizations/",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"fsbid",
"agenda_employees",
"reference",
"current-organizations",
""
]
}
},
"response": []
},
{
"name": "GET /fsbid/agenda_employees/reference/current-bureaus/",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"exec": [
"var Ajv = require(\"ajv\"),",
" ajv = new Ajv({logger: console}),",
" schema = {",
" \"type\": \"array\",",
" \"items\": {",
" \"type\": \"object\",",
" \"properties\": {",
" \"code\": { \"type\": \"string\" },",
" \"name\": { \"type\": \"string\" }",
" } ",
" }",
" };",
"",
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"});",
"",
"pm.test(\"Schema is valid\", function() {",
" console.log(pm.response.json())",
" pm.expect(ajv.validate(schema, pm.response.json())).to.be.true;",
"});"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {}
},
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
},
{
"key": "jwt",
"value": "{{jwt}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/fsbid/agenda_employees/reference/current-bureaus/",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"fsbid",
"agenda_employees",
"reference",
"current-bureaus",
""
]
}
},
"response": []
},
{
"name": "GET /fsbid/agenda_employees/reference/handshake-bureaus/",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"exec": [
"var Ajv = require(\"ajv\"),",
" ajv = new Ajv({logger: console}),",
" schema = {",
" \"type\": \"array\",",
" \"items\": {",
" \"type\": \"object\",",
" \"properties\": {",
" \"code\": { \"type\": \"string\" },",
" \"name\": { \"type\": \"string\" }",
" } ",
" }",
" };",
"",
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"});",
"",
"pm.test(\"Schema is valid\", function() {",
" console.log(pm.response.json())",
" pm.expect(ajv.validate(schema, pm.response.json())).to.be.true;",
"});"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {}
},
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
},
{
"key": "jwt",
"value": "{{jwt}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/fsbid/agenda_employees/reference/handshake-bureaus/",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"fsbid",
"agenda_employees",
"reference",
"handshake-bureaus",
""
]
}
},
"response": []
},
{
"name": "GET /fsbid/agenda_employees/",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"});"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {}
},
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
},
{
"key": "jwt",
"value": "{{jwt}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/fsbid/agenda_employees/",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"fsbid",
"agenda_employees",
""
]
}
},
"response": []
}
]
},
{
"name": "Panel",
"item": [
{
"name": "/panel/dates/",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var Ajv = require(\"ajv\"),",
" ajv = new Ajv({logger: console}),",
" schema = schema = {",
" \"required\": [",
" \"results\"",
" ],",
" \"properties\": {",
" \"results\": {",
" \"items\": {",
" \"required\": [",
" \"pm_seq_num\",",
" \"pmd_dttm\",",
" \"pmt_code\"",
" ],",
" \"properties\": {",
" \"pm_seq_num\": {",
" \"$id\": \"#/properties/results/items/properties/pm_seq_num\",",
" \"type\": \"integer\"",
" },",
" \"pmd_dttm\": {",
" \"$id\": \"#/properties/results/items/properties/pmd_dttm\",",
" \"type\": \"string\"",
" },",
" \"pmt_code\": {",
" \"$id\": \"#/properties/results/items/properties/pmt_code\",",
" \"type\": \"string\"",
" }",
" },",
" \"$id\": \"#/properties/results/items\",",
" \"type\": \"object\"",
" },",
" \"$id\": \"#/properties/results\",",
" \"type\": \"array\"",
" }",
" },",
"};",
"",
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"});",
"",
"pm.test(\"Schema is valid\", function() {",
" pm.expect(ajv.validate(schema, pm.response.json())).to.be.true;",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
},
{
"key": "jwt",
"value": "{{jwt}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/panel/dates/?page=1&limit=5",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"panel",
"dates",
""
],
"query": [
{
"key": "page",
"value": "1"
},
{
"key": "limit",
"value": "5"
}
]
}
},
"response": []
},
{
"name": "/panel/categories/",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var Ajv = require(\"ajv\"),",
" ajv = new Ajv({logger: console}),",
" schema = {",
" \"required\": [",
" \"results\"",
" ],",
" \"properties\": {",
" \"results\": {",
" \"items\": {",
" \"required\": [",
" \"mic_code\",",
" \"mic_desc_text\",",
" ],",
" \"properties\": {",
" \"mic_code\": {",
" \"$id\": \"#/properties/results/items/properties/mic_code\",",
" \"type\": \"string\"",
" },",
" \"mic_desc_text\": {",
" \"$id\": \"#/properties/results/items/properties/mic_desc_text\",",
" \"type\": \"string\"",
" }",
" },",
" \"$id\": \"#/properties/results/items\",",
" \"type\": \"object\"",
" },",
" \"$id\": \"#/properties/results\",",
" \"type\": \"array\"",
" }",
" },",
" };",
"",
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"});",
"",
"pm.test(\"Schema is valid\", function() {",
" pm.expect(ajv.validate(schema, pm.response.json())).to.be.true;",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
},
{
"key": "jwt",
"value": "{{jwt}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/panel/categories/?page=1&limit=5",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"panel",
"categories",
""
],
"query": [
{
"key": "page",
"value": "1"
},
{
"key": "limit",
"value": "5"
}
]
}
},
"response": []
}
]
},
{
"name": "Agendas",
"item": [
{
"name": "/fsbid/agenda/statuses/",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var Ajv = require(\"ajv\"),",
" ajv = new Ajv({logger: console}),",
" schema = schema = {",
" \"required\": [",
" \"results\"",
" ],",
" \"properties\": {",
" \"results\": {",
" \"items\": {",
" \"required\": [",
" \"code\",",
" \"abbr_desc_text\",",
" \"desc_text\"",
" ],",
" \"properties\": {",
" \"code\": {",
" \"$id\": \"#/properties/results/items/properties/code\",",
" \"type\": \"string\"",
" },",
" \"abbr_desc_text\": {",
" \"$id\": \"#/properties/results/items/properties/abbr_desc_text\",",
" \"type\": \"string\"",
" },",
" \"desc_text\": {",
" \"$id\": \"#/properties/results/items/properties/desc_text\",",
" \"type\": \"string\"",
" }",
" },",
" \"$id\": \"#/properties/results/items\",",
" \"type\": \"object\"",
" },",
" \"$id\": \"#/properties/results\",",
" \"type\": \"array\"",
" }",
" },",
"};",
"",
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"});",
"",
"pm.test(\"Schema is valid\", function() {",
" pm.expect(ajv.validate(schema, pm.response.json())).to.be.true;",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
},
{
"key": "jwt",
"value": "{{jwt}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/fsbid/agenda/statuses/?page=1&limit=5",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"fsbid",
"agenda",
"statuses",
""
],
"query": [
{
"key": "page",
"value": "1"
},
{
"key": "limit",
"value": "5"
}
]
}
},
"response": []
},
{
"name": "/fsbid/agenda/remarks/",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var Ajv = require(\"ajv\"),",
" ajv = new Ajv({logger: console}),",
" schema = schema = {",
" \"required\": [",
" \"results\"",
" ],",
" \"properties\": {",
" \"results\": {",
" \"items\": {",
" \"required\": [",
" \"seq_num\",",
" \"rc_code\",",
" \"order_num\",",
" \"short_desc_text\",",
" \"mutually_exclusive_ind\",",
" \"text\",",
" \"active_ind\"",
" ],",
" \"properties\": {",
" \"seq_num\": {",
" \"$id\": \"#/properties/results/items/properties/seq_num\",",
" \"type\": \"integer\"",
" },",
" \"rc_code\": {",
" \"$id\": \"#/properties/results/items/properties/rc_code\",",
" \"type\": \"string\"",
" },",
" \"order_num\": {",
" \"$id\": \"#/properties/results/items/properties/order_num\",",
" \"type\": \"integer\"",
" },",
" \"short_desc_text\": {",
" \"$id\": \"#/properties/results/items/properties/short_desc_text\",",
" \"type\": \"string\"",
" },",
" \"mutually_exclusive_ind\": {",
" \"$id\": \"#/properties/results/items/properties/mutually_exclusive_ind\",",
" \"type\": \"string\"",
" },",
" \"text\": {",
" \"$id\": \"#/properties/results/items/properties/text\",",
" \"type\": [\"string\", \"null\"]",
" },",
" \"active_ind\": {",
" \"$id\": \"#/properties/results/items/properties/active_ind\",",
" \"type\": \"string\"",
" }",
" },",
" \"$id\": \"#/properties/results/items\",",
" \"type\": \"object\"",
" },",
" \"$id\": \"#/properties/results\",",
" \"type\": \"array\"",
" }",
" },",
"};",
"",
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"});",
"",
"pm.test(\"Schema is valid\", function() {",
" pm.expect(ajv.validate(schema, pm.response.json())).to.be.true;",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
},
{
"key": "jwt",
"value": "{{jwt}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/fsbid/agenda/remarks/",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"fsbid",
"agenda",
"remarks",
""
]
}
},
"response": []
},
{
"name": "/fsbid/agenda/remark-categories/",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var Ajv = require(\"ajv\"),",
" ajv = new Ajv({logger: console}),",
" schema = schema = {",
" \"required\": [",
" \"results\"",
" ],",
" \"properties\": {",
" \"results\": {",
" \"items\": {",
" \"required\": [",
" \"code\",",
" \"desc_text\"",
" ],",
" \"properties\": {",
" \"code\": {",
" \"$id\": \"#/properties/results/items/properties/code\",",
" \"type\": \"string\"",
" },",
" \"desc_text\": {",
" \"$id\": \"#/properties/results/items/properties/desc_text\",",
" \"type\": \"string\"",
" }",
" },",
" \"$id\": \"#/properties/results/items\",",
" \"type\": \"object\"",
" },",
" \"$id\": \"#/properties/results\",",
" \"type\": \"array\"",
" }",
" },",
"};",
"",
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"});",
"",
"pm.test(\"Schema is valid\", function() {",
" pm.expect(ajv.validate(schema, pm.response.json())).to.be.true;",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
},
{
"key": "jwt",
"value": "{{jwt}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/fsbid/agenda/remark-categories/",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"fsbid",
"agenda",
"remark-categories",
""
]
}
},
"response": []
},
{
"name": "/fsbid/agenda/leg_action_types/",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var Ajv = require(\"ajv\"),",
" ajv = new Ajv({logger: console}),",
" schema = schema = {",
" \"required\": [",
" \"results\"",
" ],",
" \"properties\": {",
" \"results\": {",
" \"items\": {",
" \"required\": [",
" \"code\",",
" \"abbr_desc_text\",",
" \"desc_text\"",
" ],",
" \"properties\": {",
" \"code\": {",
" \"$id\": \"#/properties/results/items/properties/code\",",
" \"type\": \"string\"",
" },",
" \"abbr_desc_text\": {",
" \"$id\": \"#/properties/results/items/properties/abbr_desc_text\",",
" \"type\": \"string\"",
" },",
" \"desc_text\": {",
" \"$id\": \"#/properties/results/items/properties/desc_text\",",
" \"type\": \"string\"",
" }",
" },",
" \"$id\": \"#/properties/results/items\",",
" \"type\": \"object\"",
" },",
" \"$id\": \"#/properties/results\",",
" \"type\": \"array\"",
" }",
" },",
"};",
"",
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"});",
"",
"pm.test(\"Schema is valid\", function() {",
" pm.expect(ajv.validate(schema, pm.response.json())).to.be.true;",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
},
{
"key": "jwt",
"value": "{{jwt}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/fsbid/agenda/leg_action_types/",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"fsbid",
"agenda",
"leg_action_types",
""
]
}
},
"response": []
}
]
},
{
"name": "Employee",
"item": [
{
"name": "/fsbid/employee/assignments_separations_bids",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var Ajv = require(\"ajv\"),",
" ajv = new Ajv({logger: console}),",
" schema = {",
" \"items\": {",
" \"required\": [",
" \"name\",",
" \"status\",",
" \"org\",",
" \"pos_num\",",
" \"pos_title\",",
" ],",
" \"properties\": {",
" \"name\": {",
" \"$id\": \"#/properties/name\",",
" \"type\": \"string\"",
" },",
" \"status\": {",
" \"$id\": \"#/properties/status\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"org\": {",
" \"$id\": \"#/properties/org\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"pos_num\": {",
" \"$id\": \"#/properties/pos_num\",",
" \"type\": [\"null\", \"string\"]",
" },",
" \"pos_title\": {",
" \"$id\": \"#/properties/pos_title\",",
" \"type\": [\"null\", \"string\"]",
" },",
" },",
" \"$id\": \"#/items\",",
" \"type\": \"object\"",
" },",
" };",
"",
"pm.test(\"Status code is 200\", () => {",
" pm.expect(pm.response.code).to.eql(200);",
"});",
"",
"pm.test(\"Schema is valid\", function() {",
" console.log(pm.response.json())",
" pm.expect(ajv.validate(schema, pm.response.json())).to.be.true;",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}",
"type": "text"
},
{
"key": "jwt",
"value": "{{jwt}}",
"type": "text"
}
],
"url": {
"raw": "{{host}}/api/v1/fsbid/employee/assignments_separations_bids/{{jenny_perdet}}/?page=1&limit=1",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"fsbid",
"employee",
"assignments_separations_bids",
"{{jenny_perdet}}",
""
],
"query": [
{
"key": "page",
"value": "1"
},
{
"key": "limit",
"value": "1"
},
{
"key": "",
"value": "",
"disabled": true
}
]
}
},
"response": []
}
]
}
]
}