Files
laplace-swagger/docs/swagger.json
2022-05-10 16:54:11 +09:00

1 line
14 KiB
JSON

{"openapi":"3.0.0","info":{"version":"","title":"Rest Endpoints","description":"This OpenAPI specification is automatically generated by Hasura."},"paths":{"/api/rest/oracle_price/wxusd":{"get":{"summary":"oracle_price/wxusd","description":"oracle_price/wxusd\n***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery get_price {\n\tlaplace_current_token_price(where: {token:{_eq:\"token-wxusd-oracle\"}}) {\n\t\tavg_price_usd\n\t\ttoken\n\t}\n}\n\n```","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-hasura-admin-secret","description":"Your x-hasura-admin-secret will be used for authentication of the API request."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"laplace_current_token_price":{"items":{"type":"object","properties":{"token":{"title":"String","type":"string"},"avg_price_usd":{"title":"float8"}}},"type":"array","nullable":false}}}}},"description":"Responses for GET /api/rest/oracle_price/wxusd"}}}},"/api/rest/oracle_price/banana":{"get":{"summary":"oracle_price/banana","description":"oracle_price/banana\n***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery get_price {\n\tlaplace_current_token_price(where: {token:{_eq:\"token-wban\"}}) {\n\t\tavg_price_usd\n\t\ttoken\n\t}\n}\n\n```","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-hasura-admin-secret","description":"Your x-hasura-admin-secret will be used for authentication of the API request."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"laplace_current_token_price":{"items":{"type":"object","properties":{"token":{"title":"String","type":"string"},"avg_price_usd":{"title":"float8"}}},"type":"array","nullable":false}}}}},"description":"Responses for GET /api/rest/oracle_price/banana"}}}},"/api/rest/oracle_price/autoalex":{"get":{"summary":"oracle_price/autoalex","description":"oracle_price/autoalex\n***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery get_price {\n\tlaplace_current_token_price(where: {token:{_eq:\"auto-alex\"}}) {\n\t\tavg_price_usd\n\t\ttoken\n\t}\n}\n\n```","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-hasura-admin-secret","description":"Your x-hasura-admin-secret will be used for authentication of the API request."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"laplace_current_token_price":{"items":{"type":"object","properties":{"token":{"title":"String","type":"string"},"avg_price_usd":{"title":"float8"}}},"type":"array","nullable":false}}}}},"description":"Responses for GET /api/rest/oracle_price/autoalex"}}}},"/api/rest/oracle_price/wslm":{"get":{"summary":"oracle_price/wslm","description":"oracle_price/wslm\n***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery get_price {\n\tlaplace_current_token_price(where: {token:{_eq:\"token-wslm\"}}) {\n\t\tavg_price_usd\n\t\ttoken\n\t}\n}\n\n```","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-hasura-admin-secret","description":"Your x-hasura-admin-secret will be used for authentication of the API request."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"laplace_current_token_price":{"items":{"type":"object","properties":{"token":{"title":"String","type":"string"},"avg_price_usd":{"title":"float8"}}},"type":"array","nullable":false}}}}},"description":"Responses for GET /api/rest/oracle_price/wslm"}}}},"/api/rest/oracle_price/alex":{"get":{"summary":"oracle_price/alex","description":"oracle_price/alex\n***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery get_price {\n\tlaplace_current_token_price(where: {token:{_eq:\"age000-governance-token\"}}) {\n\t\tavg_price_usd\n\t\ttoken\n\t}\n}\n\n```","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-hasura-admin-secret","description":"Your x-hasura-admin-secret will be used for authentication of the API request."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"laplace_current_token_price":{"items":{"type":"object","properties":{"token":{"title":"String","type":"string"},"avg_price_usd":{"title":"float8"}}},"type":"array","nullable":false}}}}},"description":"Responses for GET /api/rest/oracle_price/alex"}}}},"/api/rest/external_price/nycc":{"get":{"summary":"external_price/nycc","description":"external_price/nycc\n***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery get_price {\n\tlaplace_current_token_price(where: {token:{_eq:\"token-wnycc\"}}) {\n\t\tavg_price_usd\n\t\ttoken\n\t}\n}\n\n```","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-hasura-admin-secret","description":"Your x-hasura-admin-secret will be used for authentication of the API request."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"laplace_current_token_price":{"items":{"type":"object","properties":{"token":{"title":"String","type":"string"},"avg_price_usd":{"title":"float8"}}},"type":"array","nullable":false}}}}},"description":"Responses for GET /api/rest/external_price/nycc"}}}},"/api/rest/external_price/stx":{"get":{"summary":"external_price/stx","description":"external_price/stx\n***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery get_price {\n\tlaplace_current_token_price(where: {token:{_eq:\"token-wstx\"}}) {\n\t\tavg_price_usd\n\t\ttoken\n\t}\n}\n\n```","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-hasura-admin-secret","description":"Your x-hasura-admin-secret will be used for authentication of the API request."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"laplace_current_token_price":{"items":{"type":"object","properties":{"token":{"title":"String","type":"string"},"avg_price_usd":{"title":"float8"}}},"type":"array","nullable":false}}}}},"description":"Responses for GET /api/rest/external_price/stx"}}}},"/api/rest/external_price/wmia":{"get":{"summary":"external_price/wmia","description":"external_price/wmia\n***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery get_price {\n\tlaplace_current_token_price(where: {token:{_eq:\"token-wmia\"}}) {\n\t\tavg_price_usd\n\t\ttoken\n\t}\n}\n\n```","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-hasura-admin-secret","description":"Your x-hasura-admin-secret will be used for authentication of the API request."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"laplace_current_token_price":{"items":{"type":"object","properties":{"token":{"title":"String","type":"string"},"avg_price_usd":{"title":"float8"}}},"type":"array","nullable":false}}}}},"description":"Responses for GET /api/rest/external_price/wmia"}}}},"/api/rest/external_price/btc":{"get":{"summary":"external_price/btc","description":"external_price/btc\n***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery get_price {\n\tlaplace_current_token_price(where: {token:{_eq:\"token-wbtc\"}}) {\n\t\tavg_price_usd\n\t\ttoken\n\t}\n}\n\n```","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-hasura-admin-secret","description":"Your x-hasura-admin-secret will be used for authentication of the API request."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"laplace_current_token_price":{"items":{"type":"object","properties":{"token":{"title":"String","type":"string"},"avg_price_usd":{"title":"float8"}}},"type":"array","nullable":false}}}}},"description":"Responses for GET /api/rest/external_price/btc"}}}},"/api/rest/external_price/wxusd":{"get":{"summary":"external_price/wxusd","description":"external_price/wxusd\n***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery get_price {\n\tlaplace_current_token_price(where: {token:{_eq:\"token-wxusd\"}}) {\n\t\tavg_price_usd\n\t\ttoken\n\t}\n}\n\n```","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-hasura-admin-secret","description":"Your x-hasura-admin-secret will be used for authentication of the API request."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"laplace_current_token_price":{"items":{"type":"object","properties":{"token":{"title":"String","type":"string"},"avg_price_usd":{"title":"float8"}}},"type":"array","nullable":false}}}}},"description":"Responses for GET /api/rest/external_price/wxusd"}}}},"/api/rest/external_price/usdc":{"get":{"summary":"external_price/usdc","description":"external_price/usdc\n***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery get_price {\n\tlaplace_current_token_price(where: {token:{_eq:\"token-usdc\"}}) {\n\t\tavg_price_usd\n\t\ttoken\n\t}\n}\n\n```","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-hasura-admin-secret","description":"Your x-hasura-admin-secret will be used for authentication of the API request."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"laplace_current_token_price":{"items":{"type":"object","properties":{"token":{"title":"String","type":"string"},"avg_price_usd":{"title":"float8"}}},"type":"array","nullable":false}}}}},"description":"Responses for GET /api/rest/external_price/usdc"}}}},"/api/rest/external_price/mia":{"get":{"summary":"external_price/mia","description":"external_price/mia\n***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery get_price {\n\tlaplace_current_token_price(where: {token:{_eq:\"token-wmia\"}}) {\n\t\tavg_price_usd\n\t\ttoken\n\t}\n}\n\n```","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-hasura-admin-secret","description":"Your x-hasura-admin-secret will be used for authentication of the API request."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"laplace_current_token_price":{"items":{"type":"object","properties":{"token":{"title":"String","type":"string"},"avg_price_usd":{"title":"float8"}}},"type":"array","nullable":false}}}}},"description":"Responses for GET /api/rest/external_price/mia"}}}},"/api/rest/external_price/xbtc":{"get":{"summary":"external_price/xbtc","description":"external_price/xbtc\n***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery get_price {\n\tlaplace_current_token_price(where: {token:{_eq:\"token-xbtc\"}}) {\n\t\tavg_price_usd\n\t\ttoken\n\t}\n}\n\n```","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-hasura-admin-secret","description":"Your x-hasura-admin-secret will be used for authentication of the API request."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"laplace_current_token_price":{"items":{"type":"object","properties":{"token":{"title":"String","type":"string"},"avg_price_usd":{"title":"float8"}}},"type":"array","nullable":false}}}}},"description":"Responses for GET /api/rest/external_price/xbtc"}}}},"/api/rest/external_price/usda":{"get":{"summary":"external_price/usda","description":"external_price/usda\n***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery get_price {\n\tlaplace_current_token_price(where: {token:{_eq:\"token-wusda\"}}) {\n\t\tavg_price_usd\n\t\ttoken\n\t}\n}\n\n```","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-hasura-admin-secret","description":"Your x-hasura-admin-secret will be used for authentication of the API request."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"laplace_current_token_price":{"items":{"type":"object","properties":{"token":{"title":"String","type":"string"},"avg_price_usd":{"title":"float8"}}},"type":"array","nullable":false}}}}},"description":"Responses for GET /api/rest/external_price/usda"}}}},"/api/rest/external_price/diko":{"get":{"summary":"external_price/diko","description":"external_price/diko\n***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery get_price {\n\tlaplace_current_token_price(where: {token:{_eq:\"token-wdiko\"}}) {\n\t\tavg_price_usd\n\t\ttoken\n\t}\n}\n\n```","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-hasura-admin-secret","description":"Your x-hasura-admin-secret will be used for authentication of the API request."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"laplace_current_token_price":{"items":{"type":"object","properties":{"token":{"title":"String","type":"string"},"avg_price_usd":{"title":"float8"}}},"type":"array","nullable":false}}}}},"description":"Responses for GET /api/rest/external_price/diko"}}}},"/api/rest/pool_stats/total_supply/fwp-wstx-alex-50-50-v1-01":{"get":{"summary":"pool_stats/total_supply/fwp-wstx-alex-50-50-v1-01","description":"pool_stats/total_supply/fwp-wstx-alex-50-50-v1-01\n***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery get_total_supply {\n\tlaplace_latest_pool_stats(where: {pool_token:{_eq:\"fwp-wstx-alex-50-50-v1-01\"}}) {\n pool_token\n total_supply\n\t}\n}\n\n```","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-hasura-admin-secret","description":"Your x-hasura-admin-secret will be used for authentication of the API request."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"laplace_latest_pool_stats":{"items":{"type":"object","properties":{"pool_token":{"title":"String","type":"string"},"total_supply":{"title":"numeric"}}},"type":"array","nullable":false}}}}},"description":"Responses for GET /api/rest/pool_stats/total_supply/fwp-wstx-alex-50-50-v1-01"}}}},"/api/rest/token_stats/total_supply/{token}":{"get":{"summary":"token_stats/total_supply","description":"token_stats/total_supply\n***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery getTotalSupply($token: String!) {\n token_stats: laplace_token_stats_by_pk(token_name: $token) {\n block_height\n decimals\n token_name\n total_supply\n }\n}\n\n```","parameters":[{"schema":{"type":"string"},"in":"header","name":"x-hasura-admin-secret","description":"Your x-hasura-admin-secret will be used for authentication of the API request."},{"schema":{"type":"string"},"in":"path","name":"token","description":"_\"token\" is required (enter it either in parameters or request body)_"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","nullable":false}}}}},"description":"Query parameters can also be provided in the request body as a JSON object"},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"token_stats":{"type":"object","properties":{"block_height":{"title":"numeric"},"decimals":{"title":"numeric"},"token_name":{"title":"String","type":"string"},"total_supply":{"title":"numeric"}}}}}}},"description":"Responses for GET /api/rest/token_stats/total_supply/{token}"}}}}},"components":{}}