Skip to content

Commit cb1b024

Browse files
committed
Publish OpenAPI bundles and api-catalog linkset for agent discovery
1 parent 148ede8 commit cb1b024

5 files changed

Lines changed: 15495 additions & 1 deletion

File tree

nginx/nginx.conf

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,21 @@ http {
1818
rewrite ^/(.*)/$ /$1 permanent;
1919
try_files $uri $uri.html $uri/index.html =404;
2020

21-
add_header Link "</stellar-rpc.openrpc.json>; rel=\"service-desc\"; type=\"application/json\"; title=\"Stellar RPC (OpenRPC)\"" always;
21+
add_header Link "</.well-known/api-catalog>; rel=\"api-catalog\"; type=\"application/linkset+json\"" always;
22+
add_header Link "</openapi/horizon.yml>; rel=\"service-desc\"; type=\"application/yaml\"; title=\"Horizon OpenAPI\"" always;
23+
add_header Link "</openapi/anchor-platform.yaml>; rel=\"service-desc\"; type=\"application/yaml\"; title=\"Anchor Platform OpenAPI\"" always;
24+
add_header Link "</openapi/stellar-disbursement-platform.yaml>; rel=\"service-desc\"; type=\"application/yaml\"; title=\"Stellar Disbursement Platform OpenAPI\"" always;
25+
add_header Link "</stellar-rpc.openrpc.json>; rel=\"service-desc\"; type=\"application/json\"; title=\"Stellar RPC OpenRPC\"" always;
2226
add_header Link "</docs/data/apis/horizon/api-reference>; rel=\"service-doc\"; title=\"Horizon API reference\"" always;
2327
add_header Link "</docs/data/apis/rpc/api-reference>; rel=\"service-doc\"; title=\"Stellar RPC API reference\"" always;
2428
add_header Link "</docs/platforms/anchor-platform/api-reference>; rel=\"service-doc\"; title=\"Anchor Platform API reference\"" always;
2529
add_header Link "</docs/platforms/stellar-disbursement-platform/api-reference>; rel=\"service-doc\"; title=\"Stellar Disbursement Platform API reference\"" always;
2630
add_header Link "</llms.txt>; rel=\"describedby\"; type=\"text/plain\"; title=\"LLM-friendly site description\"" always;
2731
}
32+
location = /.well-known/api-catalog {
33+
default_type application/linkset+json;
34+
try_files $uri =404;
35+
}
2836
location /assets/ {
2937
try_files $uri $uri/ =404;
3038
}

static/.well-known/api-catalog

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"linkset": [
3+
{
4+
"anchor": "https://developers.stellar.org/docs/data/apis/horizon",
5+
"service-desc": [
6+
{
7+
"href": "https://developers.stellar.org/openapi/horizon.yml",
8+
"type": "application/yaml",
9+
"title": "Horizon OpenAPI specification"
10+
}
11+
],
12+
"service-doc": [
13+
{
14+
"href": "https://developers.stellar.org/docs/data/apis/horizon/api-reference",
15+
"type": "text/html",
16+
"title": "Horizon API reference"
17+
}
18+
]
19+
},
20+
{
21+
"anchor": "https://developers.stellar.org/docs/data/apis/rpc",
22+
"service-desc": [
23+
{
24+
"href": "https://developers.stellar.org/stellar-rpc.openrpc.json",
25+
"type": "application/json",
26+
"title": "Stellar RPC OpenRPC specification"
27+
}
28+
],
29+
"service-doc": [
30+
{
31+
"href": "https://developers.stellar.org/docs/data/apis/rpc/api-reference",
32+
"type": "text/html",
33+
"title": "Stellar RPC API reference"
34+
}
35+
]
36+
},
37+
{
38+
"anchor": "https://developers.stellar.org/docs/platforms/anchor-platform",
39+
"service-desc": [
40+
{
41+
"href": "https://developers.stellar.org/openapi/anchor-platform.yaml",
42+
"type": "application/yaml",
43+
"title": "Anchor Platform OpenAPI specification"
44+
}
45+
],
46+
"service-doc": [
47+
{
48+
"href": "https://developers.stellar.org/docs/platforms/anchor-platform/api-reference",
49+
"type": "text/html",
50+
"title": "Anchor Platform API reference"
51+
}
52+
]
53+
},
54+
{
55+
"anchor": "https://developers.stellar.org/docs/platforms/stellar-disbursement-platform",
56+
"service-desc": [
57+
{
58+
"href": "https://developers.stellar.org/openapi/stellar-disbursement-platform.yaml",
59+
"type": "application/yaml",
60+
"title": "Stellar Disbursement Platform OpenAPI specification"
61+
}
62+
],
63+
"service-doc": [
64+
{
65+
"href": "https://developers.stellar.org/docs/platforms/stellar-disbursement-platform/api-reference",
66+
"type": "text/html",
67+
"title": "Stellar Disbursement Platform API reference"
68+
}
69+
]
70+
}
71+
]
72+
}

0 commit comments

Comments
 (0)