Molpha Data template API
curl --request GET \
--url https://gateway.molpha.io/v1/data/openapi.jsonconst options = {method: 'GET'};
fetch('https://gateway.molpha.io/v1/data/openapi.json', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway.molpha.io/v1/data/openapi.json"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway.molpha.io/v1/data/openapi.json"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}Molpha Data API
Template API document
An OpenAPI 3.1 document with one operation per template this gateway serves: GET /v1/data/<id with dots as slashes> for the signed value, and its /source and /dry-run routes. Each operation’s query parameters are the template’s own (types, enums, defaults, an example). Generated from the catalog and the gateway’s enabled chains, so it lists exactly what this gateway serves.
GET
/
v1
/
data
/
openapi.json
Molpha Data template API
curl --request GET \
--url https://gateway.molpha.io/v1/data/openapi.jsonconst options = {method: 'GET'};
fetch('https://gateway.molpha.io/v1/data/openapi.json', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway.molpha.io/v1/data/openapi.json"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway.molpha.io/v1/data/openapi.json"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}Response
200 - application/json
OK
The response is of type object.