{ "uuid": "c7d07ee2-17d8-4c09-8564-68fe1fce4d39", "lastMigration": 29, "name": "Bills API", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "16be3674-7e18-4d19-be56-5653d17b3a92", "documentation": "Returns a list of Bill types.", "method": "get", "endpoint": "api/v1/BillTypes", "responses": [ { "uuid": "810b3b00-a25d-4db4-87a9-8c156de4745f", "body": "{\n \"items\": [\n {\n \"category\": \"{{oneOf (array 'Public' 'Private' 'Hybrid')}}\",\n \"description\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"name\": \"\"\n }\n ],\n \"itemsPerPage\": {{faker 'number.int' max=99999}},\n \"totalResults\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "1499d8b4-0a22-47c5-94fc-8fde8fc7d932", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "263b0314-9fbe-499f-a8c3-a2dd511a4f02", "documentation": "Returns a list of Bills.", "method": "get", "endpoint": "api/v1/Bills", "responses": [ { "uuid": "1d060036-c146-4fd7-b984-309ef28765c7", "body": "{\n \"items\": [\n {\n \"billId\": {{faker 'number.int' max=99999}},\n \"billTypeId\": {{faker 'number.int' max=99999}},\n \"billWithdrawn\": \"{{faker 'date.recent' 365}}\",\n \"currentHouse\": \"{{oneOf (array 'All' 'Commons' 'Lords' 'Unassigned')}}\",\n \"currentStage\": {\n \"abbreviation\": \"\",\n \"description\": \"\",\n \"house\": \"{{oneOf (array 'All' 'Commons' 'Lords' 'Unassigned')}}\",\n \"id\": {{faker 'number.int' max=99999}},\n \"sessionId\": {{faker 'number.int' max=99999}},\n \"sortOrder\": {{faker 'number.int' max=99999}},\n \"stageId\": {{faker 'number.int' max=99999}},\n \"stageSittings\": [\n {\n \"billId\": {{faker 'number.int' max=99999}},\n \"billStageId\": {{faker 'number.int' max=99999}},\n \"date\": \"{{faker 'date.recent' 365}}\",\n \"id\": {{faker 'number.int' max=99999}},\n \"stageId\": {{faker 'number.int' max=99999}}\n }\n ]\n },\n \"includedSessionIds\": [\n {{faker 'number.int' max=99999}}\n ],\n \"introducedSessionId\": {{faker 'number.int' max=99999}},\n \"isAct\": {{faker 'datatype.boolean'}},\n \"isDefeated\": {{faker 'datatype.boolean'}},\n \"lastUpdate\": \"{{faker 'date.recent' 365}}\",\n \"originatingHouse\": \"{{oneOf (array 'All' 'Commons' 'Lords' 'Unassigned')}}\",\n \"shortTitle\": \"\"\n }\n ],\n \"itemsPerPage\": {{faker 'number.int' max=99999}},\n \"totalResults\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "6d8777b3-cf82-4ec9-a1ab-006c1ea32c25", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "9aab2feb-9cb0-4b3e-b13b-312ae049aee7", "documentation": "Return a Bill.", "method": "get", "endpoint": "api/v1/Bills/:billId", "responses": [ { "uuid": "dcdba631-c8ba-499c-bfe5-b33fb77ce43e", "body": "{\n \"agent\": {\n \"address\": \"\",\n \"email\": \"\",\n \"name\": \"\",\n \"phoneNo\": \"\",\n \"website\": \"\"\n },\n \"billId\": {{faker 'number.int' max=99999}},\n \"billTypeId\": {{faker 'number.int' max=99999}},\n \"billWithdrawn\": \"{{faker 'date.recent' 365}}\",\n \"currentHouse\": \"{{oneOf (array 'All' 'Commons' 'Lords' 'Unassigned')}}\",\n \"currentStage\": {\n \"abbreviation\": \"\",\n \"description\": \"\",\n \"house\": \"{{oneOf (array 'All' 'Commons' 'Lords' 'Unassigned')}}\",\n \"id\": {{faker 'number.int' max=99999}},\n \"sessionId\": {{faker 'number.int' max=99999}},\n \"sortOrder\": {{faker 'number.int' max=99999}},\n \"stageId\": {{faker 'number.int' max=99999}},\n \"stageSittings\": [\n {\n \"billId\": {{faker 'number.int' max=99999}},\n \"billStageId\": {{faker 'number.int' max=99999}},\n \"date\": \"{{faker 'date.recent' 365}}\",\n \"id\": {{faker 'number.int' max=99999}},\n \"stageId\": {{faker 'number.int' max=99999}}\n }\n ]\n },\n \"includedSessionIds\": [\n {{faker 'number.int' max=99999}}\n ],\n \"introducedSessionId\": {{faker 'number.int' max=99999}},\n \"isAct\": {{faker 'datatype.boolean'}},\n \"isDefeated\": {{faker 'datatype.boolean'}},\n \"lastUpdate\": \"{{faker 'date.recent' 365}}\",\n \"longTitle\": \"\",\n \"originatingHouse\": \"{{oneOf (array 'All' 'Commons' 'Lords' 'Unassigned')}}\",\n \"petitionInformation\": \"\",\n \"petitioningPeriod\": \"\",\n \"promoters\": [\n {\n \"organisationName\": \"\",\n \"organisationUrl\": \"\"\n }\n ],\n \"shortTitle\": \"\",\n \"sponsors\": [\n {\n \"member\": {\n \"house\": \"{{oneOf (array 'All' 'Commons' 'Lords' 'Unassigned')}}\",\n \"memberFrom\": \"\",\n \"memberId\": {{faker 'number.int' max=99999}},\n \"memberPage\": \"\",\n \"memberPhoto\": \"\",\n \"name\": \"\",\n \"party\": \"\",\n \"partyColour\": \"\"\n },\n \"organisation\": {\n \"name\": \"\",\n \"url\": \"\"\n },\n \"sortOrder\": {{faker 'number.int' max=99999}}\n }\n ],\n \"summary\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "81f41679-f296-4bca-8a43-3f17cee55769", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "80bcdd67-e66b-491b-bd6f-40403830163f", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "474d25dc-30f4-49f0-83db-26c7c1b6906f", "documentation": "Returns a list of news articles for a Bill.", "method": "get", "endpoint": "api/v1/Bills/:billId/NewsArticles", "responses": [ { "uuid": "6a548530-79dc-4126-8eef-e8e248ebf32a", "body": "{\n \"items\": [\n {\n \"content\": \"\",\n \"displayDate\": \"{{faker 'date.recent' 365}}\",\n \"id\": {{faker 'number.int' max=99999}},\n \"title\": \"\"\n }\n ],\n \"itemsPerPage\": {{faker 'number.int' max=99999}},\n \"totalResults\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "9be45a30-815c-459a-9983-9ee9f47ee1f1", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "debcd36e-afeb-4d5d-93ba-f297e47cafbc", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "442d9815-372b-4584-90b0-7aab4a2cc1a3", "documentation": "Return a list of Bill publications.", "method": "get", "endpoint": "api/v1/Bills/:billId/Publications", "responses": [ { "uuid": "aebad67b-77ed-477c-96a1-069ef649ac90", "body": "{\n \"billId\": {{faker 'number.int' max=99999}},\n \"publications\": [\n {\n \"displayDate\": \"{{faker 'date.recent' 365}}\",\n \"files\": [\n {\n \"contentLength\": {{faker 'number.int' max=99999}},\n \"contentType\": \"\",\n \"filename\": \"\",\n \"id\": {{faker 'number.int' max=99999}}\n }\n ],\n \"house\": \"{{oneOf (array 'All' 'Commons' 'Lords' 'Unassigned')}}\",\n \"id\": {{faker 'number.int' max=99999}},\n \"links\": [\n {\n \"contentType\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"url\": \"\"\n }\n ],\n \"publicationType\": {\n \"description\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"name\": \"\"\n },\n \"title\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "7ea26266-b845-42e0-959b-bdcbd2551547", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "0b97a71e-02b0-47c6-b58e-a2c4c98ffc98", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "bd1e698f-393c-4a33-a6b2-c5299f0b3474", "documentation": "Returns all Bill stages.", "method": "get", "endpoint": "api/v1/Bills/:billId/Stages", "responses": [ { "uuid": "9e6767d9-272e-48e3-b1ea-0eca7f4a905c", "body": "{\n \"items\": [\n {\n \"abbreviation\": \"\",\n \"description\": \"\",\n \"house\": \"{{oneOf (array 'All' 'Commons' 'Lords' 'Unassigned')}}\",\n \"id\": {{faker 'number.int' max=99999}},\n \"sessionId\": {{faker 'number.int' max=99999}},\n \"sortOrder\": {{faker 'number.int' max=99999}},\n \"stageId\": {{faker 'number.int' max=99999}},\n \"stageSittings\": [\n {\n \"billId\": {{faker 'number.int' max=99999}},\n \"billStageId\": {{faker 'number.int' max=99999}},\n \"date\": \"{{faker 'date.recent' 365}}\",\n \"id\": {{faker 'number.int' max=99999}},\n \"stageId\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n ],\n \"itemsPerPage\": {{faker 'number.int' max=99999}},\n \"totalResults\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "7bf3e253-28ab-4225-a054-4c9ac169b828", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "ed0963f6-fa07-4823-ab74-7be6c90c6330", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "6a4aa07e-5b52-4b7c-a1b6-052ddf117748", "documentation": "Returns a Bill stage.", "method": "get", "endpoint": "api/v1/Bills/:billId/Stages/:billStageId", "responses": [ { "uuid": "24025015-c0d0-47fa-b51d-3b57e7547d0f", "body": "{\n \"abbreviation\": \"\",\n \"committee\": {\n \"category\": \"\",\n \"house\": \"{{oneOf (array 'Commons' 'Lords' 'Joint')}}\",\n \"id\": {{faker 'number.int' max=99999}},\n \"name\": \"\",\n \"url\": \"\"\n },\n \"description\": \"\",\n \"house\": \"{{oneOf (array 'All' 'Commons' 'Lords' 'Unassigned')}}\",\n \"id\": {{faker 'number.int' max=99999}},\n \"lastUpdate\": \"{{faker 'date.recent' 365}}\",\n \"nextStageBillStageId\": {{faker 'number.int' max=99999}},\n \"previousStageBillStageId\": {{faker 'number.int' max=99999}},\n \"sessionId\": {{faker 'number.int' max=99999}},\n \"sortOrder\": {{faker 'number.int' max=99999}},\n \"stageId\": {{faker 'number.int' max=99999}},\n \"stageSittings\": [\n {\n \"billId\": {{faker 'number.int' max=99999}},\n \"billStageId\": {{faker 'number.int' max=99999}},\n \"date\": \"{{faker 'date.recent' 365}}\",\n \"id\": {{faker 'number.int' max=99999}},\n \"stageId\": {{faker 'number.int' max=99999}}\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "e133bbc1-c9b3-44ea-9721-5565f8bb6d3f", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "44921be8-2dab-4547-afe9-5d478fac9145", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "fa1096e8-a5f9-4c87-a1a3-5a9772dd3efd", "documentation": "Returns a list of amendments.", "method": "get", "endpoint": "api/v1/Bills/:billId/Stages/:billStageId/Amendments", "responses": [ { "uuid": "5081f9a5-a8c7-4e44-bf1e-4fa17ad805b0", "body": "{\n \"items\": [\n {\n \"amendmentId\": {{faker 'number.int' max=99999}},\n \"amendmentPosition\": \"\",\n \"amendmentType\": \"{{oneOf (array 'EditLongTitle' 'EditBillBody' 'AddClauseOrSchedule' 'DeleteClauseOrSchedule')}}\",\n \"billId\": {{faker 'number.int' max=99999}},\n \"billStageId\": {{faker 'number.int' max=99999}},\n \"clause\": {{faker 'number.int' max=99999}},\n \"decision\": \"{{oneOf (array 'NoDecision' 'Withdrawn' 'Disagreed' 'NotMoved' 'Agreed')}}\",\n \"lineNumber\": {{faker 'number.int' max=99999}},\n \"marshalledListText\": \"\",\n \"pageNumber\": {{faker 'number.int' max=99999}},\n \"schedule\": {{faker 'number.int' max=99999}},\n \"sponsors\": [\n {\n \"house\": \"{{oneOf (array 'All' 'Commons' 'Lords' 'Unassigned')}}\",\n \"isLead\": {{faker 'datatype.boolean'}},\n \"memberFrom\": \"\",\n \"memberId\": {{faker 'number.int' max=99999}},\n \"memberPage\": \"\",\n \"memberPhoto\": \"\",\n \"name\": \"\",\n \"party\": \"\",\n \"partyColour\": \"\",\n \"sortOrder\": {{faker 'number.int' max=99999}}\n }\n ],\n \"summaryText\": [\n \"\"\n ]\n }\n ],\n \"itemsPerPage\": {{faker 'number.int' max=99999}},\n \"totalResults\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "5402d810-9324-4763-a143-0fde03843603", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "50bdacca-38cc-42c7-af1d-9f90ee9da9bc", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "c05af603-9faf-4f2b-986a-57cef496f22b", "documentation": "Returns an amendment.", "method": "get", "endpoint": "api/v1/Bills/:billId/Stages/:billStageId/Amendments/:amendmentId", "responses": [ { "uuid": "c06fca01-b6d6-4d16-a452-81c8105c2a37", "body": "{\n \"amendmentId\": {{faker 'number.int' max=99999}},\n \"amendmentLines\": [\n {\n \"hangingIndentation\": \"\",\n \"imageType\": \"\",\n \"indentation\": {{faker 'number.int' max=99999}},\n \"isImage\": {{faker 'datatype.boolean'}},\n \"text\": \"\"\n }\n ],\n \"amendmentNote\": \"\",\n \"amendmentPosition\": \"\",\n \"amendmentType\": \"{{oneOf (array 'EditLongTitle' 'EditBillBody' 'AddClauseOrSchedule' 'DeleteClauseOrSchedule')}}\",\n \"billId\": {{faker 'number.int' max=99999}},\n \"billStageId\": {{faker 'number.int' max=99999}},\n \"clause\": {{faker 'number.int' max=99999}},\n \"decision\": \"{{oneOf (array 'NoDecision' 'Withdrawn' 'Disagreed' 'NotMoved' 'Agreed')}}\",\n \"explanatoryText\": \"\",\n \"explanatoryTextPrefix\": \"\",\n \"lineNumber\": {{faker 'number.int' max=99999}},\n \"marshalledListText\": \"\",\n \"pageNumber\": {{faker 'number.int' max=99999}},\n \"schedule\": {{faker 'number.int' max=99999}},\n \"sponsors\": [\n {\n \"house\": \"{{oneOf (array 'All' 'Commons' 'Lords' 'Unassigned')}}\",\n \"isLead\": {{faker 'datatype.boolean'}},\n \"memberFrom\": \"\",\n \"memberId\": {{faker 'number.int' max=99999}},\n \"memberPage\": \"\",\n \"memberPhoto\": \"\",\n \"name\": \"\",\n \"party\": \"\",\n \"partyColour\": \"\",\n \"sortOrder\": {{faker 'number.int' max=99999}}\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "28b56657-4208-4f6b-bc65-6f99952d7c74", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "9e8bd92a-3551-49fd-9b31-00f1e2a84996", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "466a7afd-58db-473e-9133-30d9cd67eb75", "documentation": "Return a list of Bill stage publications.", "method": "get", "endpoint": "api/v1/Bills/:billId/Stages/:stageId/Publications", "responses": [ { "uuid": "157f658c-740f-4082-9ac1-b292e53febe5", "body": "{\n \"billStageId\": {{faker 'number.int' max=99999}},\n \"publications\": [\n {\n \"displayDate\": \"{{faker 'date.recent' 365}}\",\n \"files\": [\n {\n \"contentLength\": {{faker 'number.int' max=99999}},\n \"contentType\": \"\",\n \"filename\": \"\",\n \"id\": {{faker 'number.int' max=99999}}\n }\n ],\n \"id\": {{faker 'number.int' max=99999}},\n \"links\": [\n {\n \"contentType\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"url\": \"\"\n }\n ],\n \"publicationType\": {\n \"description\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"name\": \"\"\n },\n \"title\": \"\"\n }\n ],\n \"sittings\": [\n {\n \"publications\": [\n {\n \"displayDate\": \"{{faker 'date.recent' 365}}\",\n \"files\": [\n {\n \"contentLength\": {{faker 'number.int' max=99999}},\n \"contentType\": \"\",\n \"filename\": \"\",\n \"id\": {{faker 'number.int' max=99999}}\n }\n ],\n \"id\": {{faker 'number.int' max=99999}},\n \"links\": [\n {\n \"contentType\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"url\": \"\"\n }\n ],\n \"publicationType\": {\n \"description\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"name\": \"\"\n },\n \"title\": \"\"\n }\n ],\n \"sittingId\": {{faker 'number.int' max=99999}}\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "9ab44392-4ad6-47de-bf29-cad89fdc40a0", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "91432904-c4cf-4325-bcf7-d2252a77ec66", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "3224af32-08b4-4c5f-a23e-069ebcd97a4d", "documentation": "Returns a list of publication types.", "method": "get", "endpoint": "api/v1/PublicationTypes", "responses": [ { "uuid": "0991849a-27aa-48c1-84a4-92f8f66f63bc", "body": "{\n \"items\": [\n {\n \"description\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"name\": \"\"\n }\n ],\n \"itemsPerPage\": {{faker 'number.int' max=99999}},\n \"totalResults\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "08401760-9e9d-4e8e-805f-196e44e92b49", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "469bc5d8-bdd0-41b5-8bb8-ae5382534d0f", "documentation": "Return information on a document.", "method": "get", "endpoint": "api/v1/Publications/:publicationId/Documents/:documentId", "responses": [ { "uuid": "71c845bb-490e-4e12-9ad7-72bcfde1fd41", "body": "{\n \"contentLength\": {{faker 'number.int' max=99999}},\n \"contentType\": \"\",\n \"filename\": \"\",\n \"id\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "c2e358cb-2129-4ba4-9539-82fdaa170918", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "ee7c8c4f-3c1e-48fe-8202-d6e63a4b34e6", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "037fe90d-7f0c-4a37-bfed-a5e88dbf6563", "documentation": "Return a document.", "method": "get", "endpoint": "api/v1/Publications/:publicationId/Documents/:documentId/Download", "responses": [ { "uuid": "db6a8756-b0e5-4fd9-bdd6-696c38940a10", "body": "", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "22f14851-b0f9-4523-a503-3afb36f6c7a5", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "51f89bb1-1266-4a98-ba43-75f48c86a05b", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0982a450-56e0-426d-b586-d82f70cf22c8", "documentation": "Returns an Rss feed of a certain Bill.", "method": "get", "endpoint": "api/v1/Rss/Bills/:id.rss", "responses": [ { "uuid": "22a61819-f1f0-41b5-a891-b01fc617d16c", "body": "", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "37fe2e3b-c658-483f-a86e-df1c3a552ad0", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d311c86f-484e-4bc2-af78-2dd3a454b42e", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "af544806-dd67-4323-b503-c00d026a6b18", "documentation": "Returns an Rss feed of all Bills.", "method": "get", "endpoint": "api/v1/Rss/allbills.rss", "responses": [ { "uuid": "f49aca40-a893-4edd-bd32-8058b79a4462", "body": "", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "da7ddf87-f369-41a7-9116-ffdc2b2e1e7f", "documentation": "Returns an Rss feed of private Bills.", "method": "get", "endpoint": "api/v1/Rss/privatebills.rss", "responses": [ { "uuid": "dc620e52-2931-4d3b-b311-9036ccd960ae", "body": "", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "70588eb2-9108-4e26-9908-e43caaa4619f", "documentation": "Returns an Rss feed of public Bills.", "method": "get", "endpoint": "api/v1/Rss/publicbills.rss", "responses": [ { "uuid": "470c1d94-29a2-4349-8fd6-66046ebb0e05", "body": "", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "8756a556-536c-40db-b4dd-b9d82420685e", "documentation": "Returns a list of Sittings.", "method": "get", "endpoint": "api/v1/Sittings", "responses": [ { "uuid": "2a377a91-b7d6-4de9-b660-7cce514f0253", "body": "{\n \"items\": [\n {\n \"billId\": {{faker 'number.int' max=99999}},\n \"billStageId\": {{faker 'number.int' max=99999}},\n \"date\": \"{{faker 'date.recent' 365}}\",\n \"id\": {{faker 'number.int' max=99999}},\n \"stageId\": {{faker 'number.int' max=99999}}\n }\n ],\n \"itemsPerPage\": {{faker 'number.int' max=99999}},\n \"totalResults\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "3df1d99b-7237-4565-83b1-4f9ea74c0c41", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "cd2bb82b-fbcd-4f06-9390-240b833b0ddb", "documentation": "Returns a list of Bill stages.", "method": "get", "endpoint": "api/v1/Stages", "responses": [ { "uuid": "3d382349-ab02-48da-8872-693a01e81a94", "body": "{\n \"items\": [\n {\n \"house\": \"{{oneOf (array 'All' 'Commons' 'Lords' 'Unassigned')}}\",\n \"id\": {{faker 'number.int' max=99999}},\n \"name\": \"\"\n }\n ],\n \"itemsPerPage\": {{faker 'number.int' max=99999}},\n \"totalResults\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "ad4533c4-16ab-4f58-b6e5-d7adc50f0c45", "body": "{\n \"detail\": \"\",\n \"instance\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\",\n \"type\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "16be3674-7e18-4d19-be56-5653d17b3a92" }, { "type": "route", "uuid": "263b0314-9fbe-499f-a8c3-a2dd511a4f02" }, { "type": "route", "uuid": "9aab2feb-9cb0-4b3e-b13b-312ae049aee7" }, { "type": "route", "uuid": "474d25dc-30f4-49f0-83db-26c7c1b6906f" }, { "type": "route", "uuid": "442d9815-372b-4584-90b0-7aab4a2cc1a3" }, { "type": "route", "uuid": "bd1e698f-393c-4a33-a6b2-c5299f0b3474" }, { "type": "route", "uuid": "6a4aa07e-5b52-4b7c-a1b6-052ddf117748" }, { "type": "route", "uuid": "fa1096e8-a5f9-4c87-a1a3-5a9772dd3efd" }, { "type": "route", "uuid": "c05af603-9faf-4f2b-986a-57cef496f22b" }, { "type": "route", "uuid": "466a7afd-58db-473e-9133-30d9cd67eb75" }, { "type": "route", "uuid": "3224af32-08b4-4c5f-a23e-069ebcd97a4d" }, { "type": "route", "uuid": "469bc5d8-bdd0-41b5-8bb8-ae5382534d0f" }, { "type": "route", "uuid": "037fe90d-7f0c-4a37-bfed-a5e88dbf6563" }, { "type": "route", "uuid": "0982a450-56e0-426d-b586-d82f70cf22c8" }, { "type": "route", "uuid": "af544806-dd67-4323-b503-c00d026a6b18" }, { "type": "route", "uuid": "da7ddf87-f369-41a7-9116-ffdc2b2e1e7f" }, { "type": "route", "uuid": "70588eb2-9108-4e26-9908-e43caaa4619f" }, { "type": "route", "uuid": "8756a556-536c-40db-b4dd-b9d82420685e" }, { "type": "route", "uuid": "cd2bb82b-fbcd-4f06-9390-240b833b0ddb" } ] }