1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-01 15:55:34 +01:00
docs/developers/aquarius/other-requests.md

113 lines
1.6 KiB
Markdown
Raw Normal View History

2023-05-22 17:12:17 +02:00
# Other Requests
The universal Aquarius Endpoint is [`https://v4.aquarius.oceanprotocol.com`](https://v4.aquarius.oceanprotocol.com).
### **Info**
GET `/`
#### Description
Get version, plugin, and software information.
#### Curl Example
```bash
curl --location --request GET 'https://v4.aquarius.oceanprotocol.com/'
```
#### Javascript Example
```runkit nodeVersion="18.x.x"
const axios = require('axios')
const response = await axios( 'https://v4.aquarius.oceanprotocol.com/')
console.log(response.status)
console.log(response.data)
```
#### Response
`200`
Description: Successful request
Body:
```
{
"plugin": "elasticsearch",
"software": "Aquarius",
"version": "4.2.0"
}
```
### **Health**
GET `/health`
**Description**
Get health status
**Curl Example**
```bash
curl --location --request GET 'https://v4.aquarius.oceanprotocol.com/health'
```
#### Javascript Example
```runkit nodeVersion="18.x.x"
const axios = require('axios')
const response = await axios( 'https://v4.aquarius.oceanprotocol.com/health')
console.log(response.status)
console.log(response.data)
```
**Response**
`200`
Description: Successful request
Body:
```
Elasticsearch connected
```
### **Spec**
GET /spec
#### Description
Get swagger spec
#### Example
```bash
curl --location --request GET 'https://v4.aquarius.oceanprotocol.com/spec'
```
#### Javascript Example
```runkit nodeVersion="18.x.x"
const axios = require('axios')
const response = await axios( 'https://v4.aquarius.oceanprotocol.com/spec')
console.log(response.status)
console.log(response.data.info)
```
#### Response
`200`
Successful request