Last updated 4 months ago
Was this helpful?
Gets all registry sources
10
{"data":{"sources":[{"id":"unique-cuid-v2-auto-generated","type":"Web3CardanoV1","policyId":"policyId","url":"optional_url","note":"optional_note","rpcProviderApiKey":"optional_apikey","network":"Preprod","latestPage":1,"latestIdentifier":"optional_latestIdentifier"}]},"status":"success"}
GET / HTTP/1.1 Host: registry-source token: YOUR_API_KEY Accept: */*
Registry sources
{ "data": { "sources": [ { "id": "unique-cuid-v2-auto-generated", "type": "Web3CardanoV1", "policyId": "policyId", "url": "optional_url", "note": "optional_note", "rpcProviderApiKey": "optional_apikey", "network": "Preprod", "latestPage": 1, "latestIdentifier": "optional_latestIdentifier" } ] }, "status": "success" }
Creates a new registry source
Web3CardanoV1
Preprod
Mainnet
{"data":{"id":"unique-cuid-v2-auto-generated"},"status":"success"}
POST / HTTP/1.1 Host: registry-source token: YOUR_API_KEY Content-Type: application/json Accept: */* Content-Length: 118 { "type": "Web3CardanoV1", "policyId": "policyId", "rpcProviderApiKey": "apikey", "note": "optional_note", "network": "Preprod" }
Registry source
{ "data": { "id": "unique-cuid-v2-auto-generated" }, "status": "success" }
Updates a registry source
PATCH / HTTP/1.1 Host: registry-source token: YOUR_API_KEY Content-Type: application/json Accept: */* Content-Length: 99 { "id": "unique-cuid-v2-auto-generated", "note": "optional_note", "rpcProviderApiKey": "optional_apiKey" }
DELETE / HTTP/1.1 Host: registry-source token: YOUR_API_KEY Content-Type: application/json Accept: */* Content-Length: 38 { "id": "unique-cuid-v2-auto-generated" }