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

1.6 KiB

Other Requests

The universal Aquarius Endpoint is https://v4.aquarius.oceanprotocol.com.

Info

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"
}

Health

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

Spec

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