1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

GITBOOK-206: Adding addition runkit examples

This commit is contained in:
Jamie Hewitt 2023-05-22 07:46:02 +00:00 committed by gitbook-bot
parent 75c0cc45f1
commit 2b3c6f7323
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF

View File

@ -66,12 +66,24 @@ Get metadata of a particular asset.
| ----- | ---------------- | ------ | ---- | -------- |
| `did` | DID of the asset | string | path | true |
#### Example
#### Curl Example
```bash
curl --location --request GET 'https://v4.aquarius.oceanprotocol.com/api/aquarius/assets/metadata/did:op:cd086344c275bc7c560e91d472be069a24921e73a2c3798fb2b8caadf8d245d6'
```
#### Javascript Example
```runkit nodeVersion="18.x.x"
const axios = require('axios')
const did = 'did:op:ce3f161fb98c64a2ded37fd34e25f28343f2c88d0c8205242df9c621770d4b3b'
const response = await axios(`https://v4.aquarius.oceanprotocol.com/api/aquarius/assets/metadata/${did}`)
console.log(response.status)
console.log(response.data.name)
console.log(response.data.description)
```
#### Responses
`200`