{ "name": "Game of Flows (Alpha)", "description": "", "version": "DRAFT", "channelformat": "v2", "type": "channel", "recurrence": 1, "realtimeavailable": false, "methods": [ { "name": "Get Character", "description": "No description provided.", "kind": "action", "params": [ { "": { "type": "", "displayname": "" } } ], "input": { "extensible": false, "attributes": [ { "name": "Character Info", "attributes": [ { "name": "Character ID", "type": "string" } ] } ] }, "output": { "extensible": false, "attributes": [ { "name": "Character Info", "attributes": [ { "name": "Name", "type": "string" }, { "name": "Culture", "type": "string" }, { "name": "Aliases", "type": "string", "collection": true } ] }, { "name": "TV Series Info", "attributes": [ { "name": "Played By", "type": "string" } ] } ] }, "zebricks": [ { "brick": "http.get", "id": "GET", "inputs": { "url": { "_availableTypes": [ "string" ], "_type": "string", "_array": false, "_value": "http://anapioficeandfire.com/api/characters/{{input.Character Info.Character ID}}" } }, "outputs": { "statusCode": { "_type": "number", "_array": false }, "body": { "_type": "object", "_array": false } } }, { "brick": "object.construct", "id": "H1Pzr", "inputs": { "Character Info": { "Name": "{{GET.body.name}}", "Culture": "{{GET.body.culture}}", "Aliases": "{{GET.body.aliases}}" }, "TV Series Info": { "Played By": "{{GET.body.playedBy.0}}" } }, "outputs": { "output": { "_type": "object", "_array": false } } } ] }, { "name": "Get Characters In House", "description": "No description provided.", "kind": "action", "params": [], "input": { "extensible": false, "attributes": [ { "name": "House Info", "attributes": [ { "name": "House ID", "type": "string" } ] } ] }, "output": { "extensible": false, "attributes": [ { "name": "Characters In House", "attributes": [ { "name": "Characters", "type": "object", "collection": true, "attributes": [ { "name": "Name", "type": "string" }, { "name": "Culture", "type": "string" }, { "name": "Aliases", "type": "string", "collection": true }, { "name": "Played By", "type": "string" } ] } ] } ] }, "zebricks": [ { "brick": "http.get", "id": "GET HOUSE", "inputs": { "url": { "_availableTypes": [ "string" ], "_type": "string", "_array": false, "_value": "http://anapioficeandfire.com/api/houses/{{input.House Info.House ID}}" } }, "outputs": { "statusCode": { "_type": "number", "_array": false }, "body": { "_type": "object", "_array": false } } }, { "brick": "list.map", "id": "PROCESS ITEM", "item": "", "inputs": { "list": { "_availableTypes": [ "*" ], "_type": "object", "_array": true, "_value": "{{GET HOUSE.body.swornMembers}}" }, "flo": { "_type": "flo", "_array": false, "_value": "getCharacterForList" }, "concurrency": { "_type": "number", "_array": false, "_value": 1 } }, "outputs": { "new list": { "_type": "object", "_array": true } } }, { "brick": "object.construct", "id": "FORMAT", "inputs": { "Characters In House": { "Characters": "{{PROCESS ITEM.new list}}" } }, "outputs": { "output": { "_type": "object", "_array": false } } } ] }, { "name": "getCharacterForList", "description": "No description provided.", "kind": "metadata", "variant": { "_type": "string", "_key": "item", "_array": false }, "zebricks": [ { "brick": "http.get", "id": "GET CHARACTER", "inputs": { "url": { "_availableTypes": [ "string" ], "_type": "string", "_array": false, "_value": "{{item}}" } }, "outputs": { "statusCode": { "_type": "number", "_array": false }, "body": { "_type": "object", "_array": false } } }, { "brick": "object.construct", "id": "rkbVC", "inputs": { "Name": "{{GET CHARACTER.body.name}}", "Culture": "{{GET CHARACTER.body.culture}}", "Aliases": "{{GET CHARACTER.body.aliases}}", "Played By": "{{GET CHARACTER.body.playedBy.0}}" }, "outputs": { "output": { "_type": "object", "_array": false } } } ] } ] }