{ "components": { "schemas": { "MonitorState": { "enum": [ "waiting", "stepping", "running" ], "type": "string" }, "Observation": { "properties": { "phases": { "items": { "properties": { "phase": { "description": "The different phases the cluster can be in", "oneOf": [ { "properties": { "tag": { "enum": [ "retrieving-funds" ], "type": "string" } }, "type": "object" }, { "properties": { "tag": { "enum": [ "metadata" ], "type": "string" } }, "type": "object" }, { "properties": { "tag": { "enum": [ "genesis" ], "type": "string" } }, "type": "object" }, { "properties": { "tag": { "enum": [ "pool0" ], "type": "string" } }, "type": "object" }, { "properties": { "tag": { "enum": [ "funding" ], "type": "string" } }, "type": "object" }, { "properties": { "tag": { "enum": [ "pools" ], "type": "string" } }, "type": "object" }, { "properties": { "tag": { "enum": [ "relay" ], "type": "string" } }, "type": "object" }, { "properties": { "content": { "description": "A running node", "properties": { "genesis": { "additionalProperties": true, "type": "object" }, "socket": { "type": "string" }, "version": { "properties": { "magic": { "type": "number" }, "query": { "type": "boolean" } }, "type": "object" } }, "type": "object" }, "tag": { "enum": [ "cluster" ], "type": "string" } }, "type": "object" } ], "type": "string" }, "time": { "type": "string" } }, "type": "object" }, "type": "array" }, "state": { "enum": [ "waiting", "stepping", "running" ], "type": "string" } }, "type": "object" }, "Ready": { "type": "boolean" }, "SendAssets": { "properties": { "assets": { "items": { "properties": { "address": { "type": "string" }, "bundle": { "properties": { "assets": { "items": { "properties": { "asset": { "properties": { "name": { "type": "string" }, "policy": { "type": "string" } }, "type": "object" }, "quantity": { "type": "integer" } }, "type": "object" }, "type": "array" }, "coin": { "type": "integer" } }, "type": "object" }, "metadata": { "items": { "properties": { "key": { "type": "string" }, "value": { "type": "string" } }, "type": "object" }, "type": "array" } }, "type": "object" }, "type": "array" }, "batch-size": { "type": "integer" } }, "type": "object" } } }, "info": { "description": "This is the API for the monitoring server", "license": { "name": "Apache 2", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, "title": "Cardano Wallet Monitoring API", "version": "0.1.0.0" }, "openapi": "3.0.0", "paths": { "/control/observe": { "get": { "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Observation" } } }, "description": "Ok" } }, "summary": "Observe the local-cluster monitor state" } }, "/control/step": { "post": { "responses": { "204": { "content": { "application/json": {} }, "description": "No Content" } }, "summary": "Step the local-cluster monitor" } }, "/control/switch": { "post": { "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MonitorState" } } }, "description": "Ok" } }, "summary": "Switch the local-cluster monitor" } }, "/ready": { "get": { "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ready" } } }, "description": "Ok" } }, "summary": "Check if the local-cluster is ready" } }, "/send/assets": { "parameters": [ { "in": "path", "name": "assets", "schema": { "$ref": "#/components/schemas/SendAssets" } } ], "post": { "responses": { "204": { "content": { "application/json": {} }, "description": "No Content" } }, "summary": "Send assets to the faucet" } } } }