{ "uuid": "f45c4e01-2a22-4445-9cc4-970b3ddb801c", "lastMigration": 29, "name": "Commons Votes API", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "ded788c5-5348-4a4c-92fd-de6890c40191", "documentation": "Return a Division", "method": "get", "endpoint": "data/division/:divisionId.:format", "responses": [ { "uuid": "1cc11abc-0eb7-4b6b-ba5d-3e65e307b4c4", "body": "{\n \"AyeCount\": {{faker 'number.int' max=99999}},\n \"AyeTellers\": [\n {\n \"ListAs\": \"\",\n \"MemberFrom\": \"\",\n \"MemberId\": {{faker 'number.int' max=99999}},\n \"Name\": \"\",\n \"Party\": \"\",\n \"PartyAbbreviation\": \"\",\n \"PartyColour\": \"\",\n \"ProxyName\": \"\",\n \"SubParty\": \"\"\n }\n ],\n \"Ayes\": [\n {\n \"ListAs\": \"\",\n \"MemberFrom\": \"\",\n \"MemberId\": {{faker 'number.int' max=99999}},\n \"Name\": \"\",\n \"Party\": \"\",\n \"PartyAbbreviation\": \"\",\n \"PartyColour\": \"\",\n \"ProxyName\": \"\",\n \"SubParty\": \"\"\n }\n ],\n \"Date\": \"{{faker 'date.recent' 365}}\",\n \"DivisionId\": {{faker 'number.int' max=99999}},\n \"DoubleMajorityAyeCount\": {{faker 'number.int' max=99999}},\n \"DoubleMajorityNoCount\": {{faker 'number.int' max=99999}},\n \"EVELCountry\": \"\",\n \"EVELType\": \"\",\n \"FriendlyDescription\": \"\",\n \"FriendlyTitle\": \"\",\n \"IsDeferred\": {{faker 'datatype.boolean'}},\n \"NoCount\": {{faker 'number.int' max=99999}},\n \"NoTellers\": [\n {\n \"ListAs\": \"\",\n \"MemberFrom\": \"\",\n \"MemberId\": {{faker 'number.int' max=99999}},\n \"Name\": \"\",\n \"Party\": \"\",\n \"PartyAbbreviation\": \"\",\n \"PartyColour\": \"\",\n \"ProxyName\": \"\",\n \"SubParty\": \"\"\n }\n ],\n \"NoVoteRecorded\": [\n {\n \"ListAs\": \"\",\n \"MemberFrom\": \"\",\n \"MemberId\": {{faker 'number.int' max=99999}},\n \"Name\": \"\",\n \"Party\": \"\",\n \"PartyAbbreviation\": \"\",\n \"PartyColour\": \"\",\n \"ProxyName\": \"\",\n \"SubParty\": \"\"\n }\n ],\n \"Noes\": [\n {\n \"ListAs\": \"\",\n \"MemberFrom\": \"\",\n \"MemberId\": {{faker 'number.int' max=99999}},\n \"Name\": \"\",\n \"Party\": \"\",\n \"PartyAbbreviation\": \"\",\n \"PartyColour\": \"\",\n \"ProxyName\": \"\",\n \"SubParty\": \"\"\n }\n ],\n \"Number\": {{faker 'number.int' max=99999}},\n \"PublicationUpdated\": \"{{faker 'date.recent' 365}}\",\n \"RemoteVotingEnd\": \"{{faker 'date.recent' 365}}\",\n \"RemoteVotingStart\": \"{{faker 'date.recent' 365}}\",\n \"Title\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "OK", "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": "01022ab1-f2db-44e0-bfa2-bea0eab4d2ef", "body": "", "latency": 0, "statusCode": 400, "label": "BadRequest", "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": "71948beb-2c18-4f34-abfd-ece94870ea3b", "body": "", "latency": 0, "statusCode": 404, "label": "NotFound", "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": "00c109ca-8b46-4e2a-9e92-873a34ef0d04", "documentation": "Return Divisions results grouped by party", "method": "get", "endpoint": "data/divisions.:format/groupedbyparty", "responses": [ { "uuid": "3c6df26b-160b-4df7-b89e-2a8454796894", "body": "[\n {\n \"AyeCount\": {{faker 'number.int' max=99999}},\n \"Ayes\": [\n {\n \"PartyName\": \"\",\n \"VoteCount\": {{faker 'number.int' max=99999}}\n }\n ],\n \"Date\": \"{{faker 'date.recent' 365}}\",\n \"DivisionId\": {{faker 'number.int' max=99999}},\n \"NoCount\": {{faker 'number.int' max=99999}},\n \"Noes\": [\n {\n \"PartyName\": \"\",\n \"VoteCount\": {{faker 'number.int' max=99999}}\n }\n ],\n \"Number\": {{faker 'number.int' max=99999}},\n \"Title\": \"\"\n }\n]", "latency": 0, "statusCode": 200, "label": "OK", "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": "941ca966-1a28-48c4-8042-0b066a22f68d", "body": "", "latency": 0, "statusCode": 400, "label": "BadRequest", "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": "846787a9-0688-49c8-8170-c57ef9b7786a", "documentation": "Return voting records for a Member", "method": "get", "endpoint": "data/divisions.:format/membervoting", "responses": [ { "uuid": "39f1f17e-2fa9-4c24-9192-52a7b4528247", "body": "[\n {\n \"MemberId\": {{faker 'number.int' max=99999}},\n \"MemberVotedAye\": {{faker 'datatype.boolean'}},\n \"MemberWasTeller\": {{faker 'datatype.boolean'}},\n \"PublishedDivision\": {\n \"AyeCount\": {{faker 'number.int' max=99999}},\n \"AyeTellers\": [\n {\n \"ListAs\": \"\",\n \"MemberFrom\": \"\",\n \"MemberId\": {{faker 'number.int' max=99999}},\n \"Name\": \"\",\n \"Party\": \"\",\n \"PartyAbbreviation\": \"\",\n \"PartyColour\": \"\",\n \"ProxyName\": \"\",\n \"SubParty\": \"\"\n }\n ],\n \"Ayes\": [\n {\n \"ListAs\": \"\",\n \"MemberFrom\": \"\",\n \"MemberId\": {{faker 'number.int' max=99999}},\n \"Name\": \"\",\n \"Party\": \"\",\n \"PartyAbbreviation\": \"\",\n \"PartyColour\": \"\",\n \"ProxyName\": \"\",\n \"SubParty\": \"\"\n }\n ],\n \"Date\": \"{{faker 'date.recent' 365}}\",\n \"DivisionId\": {{faker 'number.int' max=99999}},\n \"DoubleMajorityAyeCount\": {{faker 'number.int' max=99999}},\n \"DoubleMajorityNoCount\": {{faker 'number.int' max=99999}},\n \"EVELCountry\": \"\",\n \"EVELType\": \"\",\n \"FriendlyDescription\": \"\",\n \"FriendlyTitle\": \"\",\n \"IsDeferred\": {{faker 'datatype.boolean'}},\n \"NoCount\": {{faker 'number.int' max=99999}},\n \"NoTellers\": [\n {\n \"ListAs\": \"\",\n \"MemberFrom\": \"\",\n \"MemberId\": {{faker 'number.int' max=99999}},\n \"Name\": \"\",\n \"Party\": \"\",\n \"PartyAbbreviation\": \"\",\n \"PartyColour\": \"\",\n \"ProxyName\": \"\",\n \"SubParty\": \"\"\n }\n ],\n \"NoVoteRecorded\": [\n {\n \"ListAs\": \"\",\n \"MemberFrom\": \"\",\n \"MemberId\": {{faker 'number.int' max=99999}},\n \"Name\": \"\",\n \"Party\": \"\",\n \"PartyAbbreviation\": \"\",\n \"PartyColour\": \"\",\n \"ProxyName\": \"\",\n \"SubParty\": \"\"\n }\n ],\n \"Noes\": [\n {\n \"ListAs\": \"\",\n \"MemberFrom\": \"\",\n \"MemberId\": {{faker 'number.int' max=99999}},\n \"Name\": \"\",\n \"Party\": \"\",\n \"PartyAbbreviation\": \"\",\n \"PartyColour\": \"\",\n \"ProxyName\": \"\",\n \"SubParty\": \"\"\n }\n ],\n \"Number\": {{faker 'number.int' max=99999}},\n \"PublicationUpdated\": \"{{faker 'date.recent' 365}}\",\n \"RemoteVotingEnd\": \"{{faker 'date.recent' 365}}\",\n \"RemoteVotingStart\": \"{{faker 'date.recent' 365}}\",\n \"Title\": \"\"\n }\n }\n]", "latency": 0, "statusCode": 200, "label": "OK", "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": "b0dc97df-de13-4737-8caf-a0d7eaa9dc6f", "body": "", "latency": 0, "statusCode": 400, "label": "BadRequest", "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": "5470e38c-da8d-4b4d-8e66-b10debb22f0a", "documentation": "Return a list of Divisions", "method": "get", "endpoint": "data/divisions.:format/search", "responses": [ { "uuid": "80d0f087-4152-437f-a355-99a44a5be5e3", "body": "[\n {\n \"AyeCount\": {{faker 'number.int' max=99999}},\n \"AyeTellers\": [\n {\n \"ListAs\": \"\",\n \"MemberFrom\": \"\",\n \"MemberId\": {{faker 'number.int' max=99999}},\n \"Name\": \"\",\n \"Party\": \"\",\n \"PartyAbbreviation\": \"\",\n \"PartyColour\": \"\",\n \"ProxyName\": \"\",\n \"SubParty\": \"\"\n }\n ],\n \"Ayes\": [\n {\n \"ListAs\": \"\",\n \"MemberFrom\": \"\",\n \"MemberId\": {{faker 'number.int' max=99999}},\n \"Name\": \"\",\n \"Party\": \"\",\n \"PartyAbbreviation\": \"\",\n \"PartyColour\": \"\",\n \"ProxyName\": \"\",\n \"SubParty\": \"\"\n }\n ],\n \"Date\": \"{{faker 'date.recent' 365}}\",\n \"DivisionId\": {{faker 'number.int' max=99999}},\n \"DoubleMajorityAyeCount\": {{faker 'number.int' max=99999}},\n \"DoubleMajorityNoCount\": {{faker 'number.int' max=99999}},\n \"EVELCountry\": \"\",\n \"EVELType\": \"\",\n \"FriendlyDescription\": \"\",\n \"FriendlyTitle\": \"\",\n \"IsDeferred\": {{faker 'datatype.boolean'}},\n \"NoCount\": {{faker 'number.int' max=99999}},\n \"NoTellers\": [\n {\n \"ListAs\": \"\",\n \"MemberFrom\": \"\",\n \"MemberId\": {{faker 'number.int' max=99999}},\n \"Name\": \"\",\n \"Party\": \"\",\n \"PartyAbbreviation\": \"\",\n \"PartyColour\": \"\",\n \"ProxyName\": \"\",\n \"SubParty\": \"\"\n }\n ],\n \"NoVoteRecorded\": [\n {\n \"ListAs\": \"\",\n \"MemberFrom\": \"\",\n \"MemberId\": {{faker 'number.int' max=99999}},\n \"Name\": \"\",\n \"Party\": \"\",\n \"PartyAbbreviation\": \"\",\n \"PartyColour\": \"\",\n \"ProxyName\": \"\",\n \"SubParty\": \"\"\n }\n ],\n \"Noes\": [\n {\n \"ListAs\": \"\",\n \"MemberFrom\": \"\",\n \"MemberId\": {{faker 'number.int' max=99999}},\n \"Name\": \"\",\n \"Party\": \"\",\n \"PartyAbbreviation\": \"\",\n \"PartyColour\": \"\",\n \"ProxyName\": \"\",\n \"SubParty\": \"\"\n }\n ],\n \"Number\": {{faker 'number.int' max=99999}},\n \"PublicationUpdated\": \"{{faker 'date.recent' 365}}\",\n \"RemoteVotingEnd\": \"{{faker 'date.recent' 365}}\",\n \"RemoteVotingStart\": \"{{faker 'date.recent' 365}}\",\n \"Title\": \"\"\n }\n]", "latency": 0, "statusCode": 200, "label": "OK", "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": "ca2480db-d175-4d8c-9bb6-02c0fe1c95d2", "body": "", "latency": 0, "statusCode": 400, "label": "BadRequest", "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": "dd9a7898-4f47-46ed-ac0d-cc4883ff43f3", "documentation": "Return total results count", "method": "get", "endpoint": "data/divisions.:format/searchTotalResults", "responses": [ { "uuid": "00ed579d-9e7a-4ee0-af93-54ec44502464", "body": "{{faker 'number.int' max=99999}}", "latency": 0, "statusCode": 200, "label": "OK", "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": "ddfa501b-def9-4a3c-8681-de0abe0e13d4", "body": "", "latency": 0, "statusCode": 400, "label": "BadRequest", "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": "ded788c5-5348-4a4c-92fd-de6890c40191" }, { "type": "route", "uuid": "00c109ca-8b46-4e2a-9e92-873a34ef0d04" }, { "type": "route", "uuid": "846787a9-0688-49c8-8170-c57ef9b7786a" }, { "type": "route", "uuid": "5470e38c-da8d-4b4d-8e66-b10debb22f0a" }, { "type": "route", "uuid": "dd9a7898-4f47-46ed-ac0d-cc4883ff43f3" } ] }