{ "channels": [ { "id": "1", "name": "RestPack Sample Apps", "href": "/api/v1/channels/1.json" }, { "id": "2", "name": "Irish Developer Jobs", "href": "/api/v1/channels/2.json" }, { "id": "3", "name": "Beer Roulette", "href": "/api/v1/channels/3.json" } ], "meta": { "channels": { "page": 1, "page_size": 50, "count": 3, "includes": [ "applications", "domains", "configurations" ], "page_count": 1, "previous_page": null, "next_page": null, "previous_href": null, "next_href": null }, "applications": { "page": 1, "page_size": 50, "count": 4, "includes": [], "page_count": 1, "previous_page": null, "next_page": null, "previous_href": null, "next_href": null }, "domains": { "page": 1, "page_size": 50, "count": 9, "includes": [], "page_count": 1, "previous_page": null, "next_page": null, "previous_href": null, "next_href": null }, "configurations": { "page": 1, "page_size": 50, "count": 7, "includes": [], "page_count": 1, "previous_page": null, "next_page": null, "previous_href": null, "next_href": null } }, "links": { "channels.applications": { "href": "/api/v1/applications.json?channel_id={channels.id}", "type": "applications" }, "channels.domains": { "href": "/api/v1/domains.json?channel_id={channels.id}", "type": "domains" }, "channels.configurations": { "href": "/api/v1/configurations.json?channel_id={channels.id}", "type": "configurations" }, "applications.channel": { "href": "/api/v1/channels/{applications.channel}.json", "type": "channels" }, "applications.domains": { "href": "/api/v1/domains.json?application_id={applications.id}", "type": "domains" }, "applications.configurations": { "href": "/api/v1/configurations.json?application_id={applications.id}", "type": "configurations" }, "domains.channel": { "href": "/api/v1/channels/{domains.channel}.json", "type": "channels" }, "domains.application": { "href": "/api/v1/applications/{domains.application}.json", "type": "applications" }, "domains.configurations": { "href": "/api/v1/configurations.json?domain_id={domains.id}", "type": "configurations" }, "configurations.channel": { "href": "/api/v1/channels/{configurations.channel}.json", "type": "channels" }, "configurations.application": { "href": "/api/v1/applications/{configurations.application}.json", "type": "applications" }, "configurations.domain": { "href": "/api/v1/domains/{configurations.domain}.json", "type": "domains" } }, "applications": [ { "id": "1", "name": "Simple Sinatra App", "href": "/api/v1/applications/1.json", "links": { "channel": "1" } }, { "id": "2", "name": "Ruby Jobs", "href": "/api/v1/applications/2.json", "links": { "channel": "2" } }, { "id": "3", "name": "Python Jobs", "href": "/api/v1/applications/3.json", "links": { "channel": "2" } }, { "id": "4", "name": "Beer Roulette", "href": "/api/v1/applications/4.json", "links": { "channel": "3" } } ], "domains": [ { "id": "1", "host": "sinatra.restpack-sample.org", "href": "/api/v1/domains/1.json", "links": { "channel": "1", "application": "1" } }, { "id": "2", "host": "rails.restpack-sample.org", "href": "/api/v1/domains/2.json", "links": { "channel": "1", "application": "1" } }, { "id": "3", "host": "auth.restpack-sample.org", "href": "/api/v1/domains/3.json", "links": { "channel": "1", "application": "1" } }, { "id": "4", "host": "www.rubyjobs.io", "href": "/api/v1/domains/4.json", "links": { "channel": "2", "application": "2" } }, { "id": "5", "host": "auth.rubyjobs.io", "href": "/api/v1/domains/5.json", "links": { "channel": "2", "application": "2" } }, { "id": "6", "host": "www.pythonjobs.io", "href": "/api/v1/domains/6.json", "links": { "channel": "2", "application": "3" } }, { "id": "7", "host": "auth.pythonjobs.io", "href": "/api/v1/domains/7.json", "links": { "channel": "2", "application": "3" } }, { "id": "8", "host": "www.beer-roulette.io", "href": "/api/v1/domains/8.json", "links": { "channel": "3", "application": "4" } }, { "id": "9", "host": "auth.beer-roulette.io", "href": "/api/v1/domains/9.json", "links": { "channel": "3", "application": "4" } } ], "configurations": [ { "id": "2", "key": "domains", "value": { "home": "sinatra.restpack-sample.org", "auth": "auth.restpack-sample.org" }, "href": "/api/v1/configurations/2.json", "links": { "channel": "1", "application": "1", "domain": "" } }, { "id": "3", "key": "omniauth", "value": { "twitter": { "consumer_key": "ldgpkTRjhslbNkRQXqldig", "consumer_secret": "bYETiBG4TLpo5kXEXlr7ZgpBnDz0Ajo9hhKq7ypjyM" }, "google_oauth2": { "consumer_key": "597265966348.apps.googleusercontent.com", "consumer_secret": "F6fzVpkzsHf-S3vi-ijdUn9-" } }, "href": "/api/v1/configurations/3.json", "links": { "channel": "1", "application": "1", "domain": "" } }, { "id": "4", "key": "domains", "value": { "home": "www.rubyjobs.io:8080", "auth": "auth.rubyjobs.io:8081" }, "href": "/api/v1/configurations/4.json", "links": { "channel": "2", "application": "2", "domain": "" } }, { "id": "5", "key": "omniauth", "value": { "twitter": { "consumer_key": "aaaaaaaaaaaaaaa", "consumer_secret": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" }, "google_oauth2": { "consumer_key": "ccccccccccccccc", "consumer_secret": "dddddddddddddddddddddddddddddd" } }, "href": "/api/v1/configurations/5.json", "links": { "channel": "2", "application": "2", "domain": "" } }, { "id": "6", "key": "domains", "value": { "home": "www.pythonjobs.io:8080", "auth": "auth.pythonjobs.io:8081" }, "href": "/api/v1/configurations/6.json", "links": { "channel": "2", "application": "3", "domain": "" } }, { "id": "7", "key": "omniauth", "value": { "twitter": { "consumer_key": "eeeeeeeeeeeeeeee", "consumer_secret": "fffffffffffffffffffffffffffffff" }, "google_oauth2": { "consumer_key": "gggggggggggggggggggggggggggggggggg", "consumer_secret": "hhhhhhhhhhhhh" } }, "href": "/api/v1/configurations/7.json", "links": { "channel": "2", "application": "3", "domain": "" } }, { "id": "8", "key": "domains", "value": { "home": "www.beer-roulette.io:8090", "auth": "auth.beer-roulette.io:8081" }, "href": "/api/v1/configurations/8.json", "links": { "channel": "3", "application": "4", "domain": "" } } ] }