From e776846c7a74ca7df4cf37c14ce1f14d04db1ab4 Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Wed, 24 Aug 2022 16:52:33 +0300 Subject: [PATCH] Updating readme example responses --- README.md | 76 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 41 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index 9088864..53b02a7 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,9 @@ GET http://localhost:3000/api/address?name=jellymcjellyfish.eth Example response: ``` -0x99840Df5Cb42faBE0Feb8811Aaa4BC99cA6C84e0 +{ + "address": "0x99840Df5Cb42faBE0Feb8811Aaa4BC99cA6C84e0" +} ``` ### Get Ens Text Records @@ -45,24 +47,26 @@ GET http://localhost:3000/api/text?name=jellymcjellyfish.eth Example response: ``` -[ - { - "key": "url", - "value": "https://oceanprotocol.com" - }, - { - "key": "avatar", - "value": "https://raw.githubusercontent.com/oceanprotocol/art/main/logo/favicon-white.png" - }, - { - "key": "com.github", - "value": "oceanprotocol" - }, - { - "key": "com.twitter", - "value": "oceanprotocol" - } -] +{ + "records": [ + { + "key": "url", + "value": "https://oceanprotocol.com" + }, + { + "key": "avatar", + "value": "https://raw.githubusercontent.com/oceanprotocol/art/main/logo/favicon-white.png" + }, + { + "key": "com.twitter", + "value": "oceanprotocol" + }, + { + "key": "com.github", + "value": "oceanprotocol" + } + ] +} ``` ### Get ENS Profile @@ -75,21 +79,23 @@ Example response: ``` { - "name": "jellymcjellyfish.eth", - "avatar": "https://metadata.ens.domains/mainnet/avatar/jellymcjellyfish.eth", - "links": [ - { - "key": "url", - "value": "https://oceanprotocol.com" - }, - { - "key": "com.github", - "value": "oceanprotocol" - }, - { - "key": "com.twitter", - "value": "oceanprotocol" - } - ] + "profile": { + "name": "jellymcjellyfish.eth", + "avatar": "https://metadata.ens.domains/mainnet/avatar/jellymcjellyfish.eth", + "links": [ + { + "key": "url", + "value": "https://oceanprotocol.com" + }, + { + "key": "com.twitter", + "value": "oceanprotocol" + }, + { + "key": "com.github", + "value": "oceanprotocol" + } + ] + } } ```