From 1f87d3fe3d9282cbb3087d115937d9693d8f2c6a Mon Sep 17 00:00:00 2001 From: Behzad Rabiei <53224485+Behzad-rabiei@users.noreply.github.com> Date: Mon, 18 Nov 2024 10:03:20 +0200 Subject: [PATCH] docs: add docs for the reputation-score api --- src/docs/nft.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/docs/nft.yml diff --git a/src/docs/nft.yml b/src/docs/nft.yml new file mode 100644 index 0000000..4cde137 --- /dev/null +++ b/src/docs/nft.yml @@ -0,0 +1,39 @@ +paths: + /api/v1/nft/{tokenId}/{address}/reputation-score: + get: + tags: + - Nft + summary: Retrieve reputation scores for given tokenId and address. + security: + - bearerAuth: [] + parameters: + - name: tokenId + in: path + required: true + description: The token Id which dynamic Nft module is assocated with. + schema: + type: string + - name: address + in: path + required: true + description: The user public address. + schema: + type: string + responses: + '200': + description: Module details retrieved successfully. + content: + application/json: + schema: + type: object + properties: + reputationScore: + type: string + communintyId: + type: string + '400': + description: Bad Request + $ref: '#/components/responses/BadRequest' + '404': + description: NotFound + $ref: '#/components/responses/NotFound'