mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
1.6 KiB
1.6 KiB
Other Requests
The universal Aquarius Endpoint is https://v4.aquarius.oceanprotocol.com
.
Others
GET /
Description
Get version, plugin, and software information.
Curl Example
curl --location --request GET 'https://v4.aquarius.oceanprotocol.com/'
Javascript Example
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"
}
GET /health
Description
Get health status
Curl Example
curl --location --request GET 'https://v4.aquarius.oceanprotocol.com/health'
Javascript Example
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
GET /spec
Description
Get swagger spec
Example
curl --location --request GET 'https://v4.aquarius.oceanprotocol.com/spec'
Javascript Example
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