{ "uuid": "b07ca600-82eb-41cf-a009-51fe124bbe37", "lastMigration": 29, "name": "Spinitron v2 API", "endpointPrefix": "api", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "c5ada821-2a54-4728-93c5-359f68a619cc", "documentation": "Get Personas", "method": "get", "endpoint": "personas", "responses": [ { "uuid": "687cfb79-b635-4d3b-8754-568568fa1b15", "body": "{\n \"_links\": {\n \"self\": {\n \"href\": \"\"\n }\n },\n \"_meta\": {\n \"currentPage\": {{faker 'number.int' max=99999}},\n \"pageCount\": {{faker 'number.int' max=99999}},\n \"perPage\": {{faker 'number.int' max=99999}},\n \"totalCount\": {{faker 'number.int' max=99999}}\n }\n}", "latency": 0, "statusCode": 200, "label": "The personas", "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": "29947dbf-fed0-4b0c-b7c2-effea8d33bae", "documentation": "Get Persona by id", "method": "get", "endpoint": "personas/:id", "responses": [ { "uuid": "077c78c1-cf55-46ee-bc85-ee059d42d4d6", "body": "{\n \"_links\": {\n \"self\": {\n \"href\": \"\"\n },\n \"shows\": [\n {\n \"href\": \"\"\n }\n ]\n },\n \"bio\": \"

Besides DJ'ing industrial and experimental music since 1991, Deftly has performed in industrial ...\",\n \"email\": \"example@spinitron.com\",\n \"id\": 2832,\n \"image\": \"https://spinitron.com/images/Persona/28/2832-img_profile-original.jpg\",\n \"name\": \"Deftly-D\",\n \"since\": 1991,\n \"website\": \"https://spinitron.com/example/doesnt/exist\"\n}", "latency": 0, "statusCode": 200, "label": "The Persona", "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": "358059bc-58f0-475a-966f-a7c10b102720", "body": "{\n \"code\": {{faker 'number.int' max=99999}},\n \"message\": \"\",\n \"name\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"type\": \"\"\n}", "latency": 0, "statusCode": 404, "label": "Persona 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": "f21d5f7d-b49c-4ec9-85e0-6f88a6e4179b", "documentation": "Returns playlists optionally filtered by {start} and/or {end} datetimes", "method": "get", "endpoint": "playlists", "responses": [ { "uuid": "7ab4b8cc-726c-4f5e-a0c2-4190c9068822", "body": "{\n \"_links\": {\n \"self\": {\n \"href\": \"\"\n }\n },\n \"_meta\": {\n \"currentPage\": {{faker 'number.int' max=99999}},\n \"pageCount\": {{faker 'number.int' max=99999}},\n \"perPage\": {{faker 'number.int' max=99999}},\n \"totalCount\": {{faker 'number.int' max=99999}}\n }\n}", "latency": 0, "statusCode": 200, "label": "The playlists", "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": "f5585e3c-fa8e-4a00-98d6-b80adbc49391", "documentation": "Get a Playlist by id", "method": "get", "endpoint": "playlists/:id", "responses": [ { "uuid": "4355711b-da91-4f46-ac45-019396ef79d3", "body": "{\n \"_links\": {\n \"persona\": {\n \"href\": \"\"\n },\n \"self\": {\n \"href\": \"\"\n },\n \"show\": {\n \"href\": \"\"\n },\n \"spins\": {\n \"href\": \"\"\n }\n },\n \"automation\": {{faker 'datatype.boolean'}},\n \"category\": \"Music\",\n \"description\": \"It is a cross-­cultural musical journey united in voices and rhythms.\",\n \"duration\": 3600,\n \"end\": \"2018-03-30T14:00:00+0000\",\n \"episode_description\": \"

Episode description

\",\n \"episode_name\": \"\",\n \"hide_dj\": {{faker 'datatype.boolean'}},\n \"id\": 219992,\n \"image\": \"https://spinitron.com/images/Show/44/4498/img_show-original.jpg\",\n \"persona_id\": 2832,\n \"show_id\": 4498,\n \"since\": 1999,\n \"start\": \"2018-03-30T13:00:00+0000\",\n \"timezone\": \"America/Chicago\",\n \"title\": \"Transworld Airwaves\",\n \"url\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The playlist", "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": "17ba8587-8de5-4bb7-8bb1-570f1d25792b", "body": "{\n \"code\": {{faker 'number.int' max=99999}},\n \"message\": \"\",\n \"name\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"type\": \"\"\n}", "latency": 0, "statusCode": 404, "label": "Playlist not found or is in the future", "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": "064ba40a-166a-4c76-8bdb-a1ff56a4c439", "documentation": "Returns scheduled shows optionally filtered by {start} and/or {end} datetimes", "method": "get", "endpoint": "shows", "responses": [ { "uuid": "b08d6a93-ed30-4c2d-99a3-e1f1225f1a8c", "body": "{\n \"_links\": {\n \"self\": {\n \"href\": \"\"\n }\n },\n \"_meta\": {\n \"currentPage\": {{faker 'number.int' max=99999}},\n \"pageCount\": {{faker 'number.int' max=99999}},\n \"perPage\": {{faker 'number.int' max=99999}},\n \"totalCount\": {{faker 'number.int' max=99999}}\n }\n}", "latency": 0, "statusCode": 200, "label": "The shows", "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": "63411c5c-aef1-4f78-90d4-ff206c5922d6", "body": "{\n \"code\": {{faker 'number.int' max=99999}},\n \"message\": \"\",\n \"name\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"type\": \"\"\n}", "latency": 0, "statusCode": 422, "label": "Invalid datetimes in filter: either too old or {end} is less than {start}.\n", "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": "438db83b-937e-41ad-964d-f5cbce69bf76", "documentation": "Get a Show by id", "method": "get", "endpoint": "shows/:id", "responses": [ { "uuid": "3e952b65-2dc5-4cd1-b2b1-6a11545f700d", "body": "{\n \"_links\": {\n \"personas\": [\n {\n \"href\": \"\"\n }\n ],\n \"playlists\": {\n \"href\": \"\"\n },\n \"self\": {\n \"href\": \"\"\n }\n },\n \"category\": \"Music\",\n \"description\": \"

Since 2001, The High Voltage Circumcision show has delivered a full spectrum barrage of dark hard and experimental music from industrial to noise to idm to ebm to bizarre to audio collage often with a side of live guests, social consciousness, interviews, twisted humor, studio experiments and left turns.

\",\n \"duration\": 10800,\n \"end\": \"2018-04-03T02:00:00+0000\",\n \"hide_dj\": {{faker 'datatype.boolean'}},\n \"id\": 4498,\n \"image\": \"https://spinitron.com/images/Show/44/4498/img_show-original.jpg\",\n \"one_off\": {{faker 'datatype.boolean'}},\n \"since\": 2001,\n \"start\": \"2018-04-02T23:00:00+0000\",\n \"timezone\": \"America/Chicago\",\n \"title\": \"Voidstar Productions’ High Voltage Circumcision Show\",\n \"url\": \"https://spinitron.com/example/doesnt/exist\"\n}", "latency": 0, "statusCode": 200, "label": "The Show", "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": "c9d601eb-53ea-41ae-8db5-6a585d77e9f2", "body": "{\n \"code\": {{faker 'number.int' max=99999}},\n \"message\": \"\",\n \"name\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"type\": \"\"\n}", "latency": 0, "statusCode": 404, "label": "Show not found or too old", "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": "9cf72cde-7312-47e2-ad65-e6653d3da653", "documentation": "Returns spins optionally filtered by {start} and/or {end} datetimes", "method": "get", "endpoint": "spins", "responses": [ { "uuid": "88eb70ca-e5ff-41c8-b667-0a71c7d8efcd", "body": "{\n \"_links\": {\n \"self\": {\n \"href\": \"\"\n }\n },\n \"_meta\": {\n \"currentPage\": {{faker 'number.int' max=99999}},\n \"pageCount\": {{faker 'number.int' max=99999}},\n \"perPage\": {{faker 'number.int' max=99999}},\n \"totalCount\": {{faker 'number.int' max=99999}}\n }\n}", "latency": 0, "statusCode": 200, "label": "The spins", "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": "844ec040-0668-42ed-9ea2-0e439072d348", "documentation": "Log a Spin", "method": "post", "endpoint": "spins", "responses": [ { "uuid": "e0e560c3-bc89-4201-855c-b8892ed9350c", "body": "{\n \"_links\": {\n \"playlist\": {\n \"href\": \"\"\n },\n \"self\": {\n \"href\": \"\"\n }\n },\n \"artist\": \"The Beatles\",\n \"artist-custom\": \"\",\n \"catalog-number\": \"5C 006-04982\",\n \"classical\": {{faker 'datatype.boolean'}},\n \"composer\": \"Lennon - McCartney\",\n \"conductor\": \"Herbert von Karajan\",\n \"duration\": 199,\n \"end\": \"2018-03-30T13:10:25+0000\",\n \"ensemble\": \"Vienna Philharmonic Orchestra\",\n \"genre\": \"Pop\",\n \"id\": 8017277,\n \"image\": \"https://is5-ssl.mzstatic.com/image/thumb/Music3/v4/ef/e8/67/efe8674e-467a-adfe-9f67-8d50860b4f1e/dj.sokyjuyt.jpg/170x170bb.jpg\",\n \"isrc\": \"GBAYE9901218\",\n \"iswc\": \"T-010.434.166-3\",\n \"label\": \"Apple Records\",\n \"label-custom\": \"\",\n \"local\": {{faker 'datatype.boolean'}},\n \"medium\": \"7\\\"\",\n \"new\": {{faker 'datatype.boolean'}},\n \"note\": \"B-side of the original 7\\\" vinyl in the station's collection.\",\n \"performers\": \"Rohan DeSaram (cello), Marianne Schroeder (piano)\",\n \"playlist_id\": 336722,\n \"release\": \"All Together Now / Hey Bulldog\",\n \"release-custom\": \"\",\n \"released\": 1972,\n \"request\": {{faker 'datatype.boolean'}},\n \"song\": \"Hey Bulldog\",\n \"start\": \"2018-03-30T13:07:08+0000\",\n \"timezone\": \"America/Chicago\",\n \"upc\": \"4006408126775\",\n \"va\": {{faker 'datatype.boolean'}},\n \"work\": \"The Marriage of Figaro\"\n}", "latency": 0, "statusCode": 201, "label": "The new created Spin.", "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": "6aaa4904-2dec-4af9-b579-fd8469776d7f", "body": "[\n {\n \"field\": \"\",\n \"message\": \"\"\n }\n]", "latency": 0, "statusCode": 422, "label": "Validation failed.", "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": "99bf7914-a658-4080-9b3d-01862da51053", "body": "{\n \"code\": {{faker 'number.int' max=99999}},\n \"message\": \"\",\n \"name\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"type\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Failed to create the object for unknown reason.", "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": "428f9e07-4284-4b56-90d1-b8af5a9987e7", "documentation": "Get a Spin by id", "method": "get", "endpoint": "spins/:id", "responses": [ { "uuid": "522ee943-4268-450f-8340-288cf17451b5", "body": "{\n \"_links\": {\n \"playlist\": {\n \"href\": \"\"\n },\n \"self\": {\n \"href\": \"\"\n }\n },\n \"artist\": \"The Beatles\",\n \"artist-custom\": \"\",\n \"catalog-number\": \"5C 006-04982\",\n \"classical\": {{faker 'datatype.boolean'}},\n \"composer\": \"Lennon - McCartney\",\n \"conductor\": \"Herbert von Karajan\",\n \"duration\": 199,\n \"end\": \"2018-03-30T13:10:25+0000\",\n \"ensemble\": \"Vienna Philharmonic Orchestra\",\n \"genre\": \"Pop\",\n \"id\": 8017277,\n \"image\": \"https://is5-ssl.mzstatic.com/image/thumb/Music3/v4/ef/e8/67/efe8674e-467a-adfe-9f67-8d50860b4f1e/dj.sokyjuyt.jpg/170x170bb.jpg\",\n \"isrc\": \"GBAYE9901218\",\n \"iswc\": \"T-010.434.166-3\",\n \"label\": \"Apple Records\",\n \"label-custom\": \"\",\n \"local\": {{faker 'datatype.boolean'}},\n \"medium\": \"7\\\"\",\n \"new\": {{faker 'datatype.boolean'}},\n \"note\": \"B-side of the original 7\\\" vinyl in the station's collection.\",\n \"performers\": \"Rohan DeSaram (cello), Marianne Schroeder (piano)\",\n \"playlist_id\": 336722,\n \"release\": \"All Together Now / Hey Bulldog\",\n \"release-custom\": \"\",\n \"released\": 1972,\n \"request\": {{faker 'datatype.boolean'}},\n \"song\": \"Hey Bulldog\",\n \"start\": \"2018-03-30T13:07:08+0000\",\n \"timezone\": \"America/Chicago\",\n \"upc\": \"4006408126775\",\n \"va\": {{faker 'datatype.boolean'}},\n \"work\": \"The Marriage of Figaro\"\n}", "latency": 0, "statusCode": 200, "label": "The spin", "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": "72734e41-153f-4730-87c2-ca9387080a35", "body": "{\n \"code\": {{faker 'number.int' max=99999}},\n \"message\": \"\",\n \"name\": \"\",\n \"status\": {{faker 'number.int' max=99999}},\n \"type\": \"\"\n}", "latency": 0, "statusCode": 404, "label": "Spin 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" } ], "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": "c5ada821-2a54-4728-93c5-359f68a619cc" }, { "type": "route", "uuid": "29947dbf-fed0-4b0c-b7c2-effea8d33bae" }, { "type": "route", "uuid": "f21d5f7d-b49c-4ec9-85e0-6f88a6e4179b" }, { "type": "route", "uuid": "f5585e3c-fa8e-4a00-98d6-b80adbc49391" }, { "type": "route", "uuid": "064ba40a-166a-4c76-8bdb-a1ff56a4c439" }, { "type": "route", "uuid": "438db83b-937e-41ad-964d-f5cbce69bf76" }, { "type": "route", "uuid": "9cf72cde-7312-47e2-ad65-e6653d3da653" }, { "type": "route", "uuid": "844ec040-0668-42ed-9ea2-0e439072d348" }, { "type": "route", "uuid": "428f9e07-4284-4b56-90d1-b8af5a9987e7" } ] }