Skip to content

Commit 8043ca7

Browse files
committed
docs: add /subgraph/health route to readme
1 parent a932ff4 commit 8043ca7

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,24 @@ curl -X POST \
112112
"message":"No valid receipt or free query auth token provided"
113113
}
114114
```
115-
<!-- # Subgraph health check
116-
✗ curl http://localhost:7300/subgraphs/health/QmVhiE4nax9i86UBnBmQCYDzvjWuwHShYh7aspGPQhU5Sj
117-
"Subgraph deployment is up to date"%
115+
## Subgraph health check
116+
```bash
117+
curl http://localhost:7600/subgraphs/health/QmVhiE4nax9i86UBnBmQCYDzvjWuwHShYh7aspGPQhU5Sj
118+
```
119+
```json
120+
{
121+
"health": "healthy"
122+
}
123+
```
118124
## Unfound subgraph
119-
✗ curl http://localhost:7300/subgraphs/health/QmacQnSgia4iDPWHpeY6aWxesRFdb8o5DKZUx96zZqEWrB
120-
"Invalid indexing status"% -->
125+
```bash
126+
curl http://localhost:7600/subgraphs/health/QmacQnSgia4iDPWHpeY6aWxesRFdb8o5DKZUx96zZqEWrB
127+
```
128+
```json
129+
{
130+
"error": "Deployment not found"
131+
}
132+
```
121133

122134
# Network queries
123135
## Checks for auth and configuration to serve-network-subgraph

0 commit comments

Comments
 (0)