Updating readme example responses

This commit is contained in:
Jamie Hewitt 2022-08-24 16:52:33 +03:00
parent 398e147f23
commit e776846c7a

View File

@ -33,7 +33,9 @@ GET http://localhost:3000/api/address?name=jellymcjellyfish.eth
Example response: Example response:
``` ```
0x99840Df5Cb42faBE0Feb8811Aaa4BC99cA6C84e0 {
"address": "0x99840Df5Cb42faBE0Feb8811Aaa4BC99cA6C84e0"
}
``` ```
### Get Ens Text Records ### Get Ens Text Records
@ -45,7 +47,8 @@ GET http://localhost:3000/api/text?name=jellymcjellyfish.eth
Example response: Example response:
``` ```
[ {
"records": [
{ {
"key": "url", "key": "url",
"value": "https://oceanprotocol.com" "value": "https://oceanprotocol.com"
@ -55,14 +58,15 @@ Example response:
"value": "https://raw.githubusercontent.com/oceanprotocol/art/main/logo/favicon-white.png" "value": "https://raw.githubusercontent.com/oceanprotocol/art/main/logo/favicon-white.png"
}, },
{ {
"key": "com.github", "key": "com.twitter",
"value": "oceanprotocol" "value": "oceanprotocol"
}, },
{ {
"key": "com.twitter", "key": "com.github",
"value": "oceanprotocol" "value": "oceanprotocol"
} }
] ]
}
``` ```
### Get ENS Profile ### Get ENS Profile
@ -75,6 +79,7 @@ Example response:
``` ```
{ {
"profile": {
"name": "jellymcjellyfish.eth", "name": "jellymcjellyfish.eth",
"avatar": "https://metadata.ens.domains/mainnet/avatar/jellymcjellyfish.eth", "avatar": "https://metadata.ens.domains/mainnet/avatar/jellymcjellyfish.eth",
"links": [ "links": [
@ -83,13 +88,14 @@ Example response:
"value": "https://oceanprotocol.com" "value": "https://oceanprotocol.com"
}, },
{ {
"key": "com.github", "key": "com.twitter",
"value": "oceanprotocol" "value": "oceanprotocol"
}, },
{ {
"key": "com.twitter", "key": "com.github",
"value": "oceanprotocol" "value": "oceanprotocol"
} }
] ]
} }
}
``` ```