diff --git a/openapi/catalyst.yaml b/openapi/catalyst.yaml index 3b4c124..a19e04c 100644 --- a/openapi/catalyst.yaml +++ b/openapi/catalyst.yaml @@ -125,6 +125,8 @@ paths: $ref: 'paths/lambdas/lambdas@profiles.yaml' /lambdas/profiles/{id}: $ref: 'paths/lambdas/lambdas@profiles@{id}.yaml' + /lambdas/outfits/{id}: + $ref: 'paths/lambdas/lambdas@outfits@{id}.yaml' /lambdas/third-party-integrations: $ref: 'paths/lambdas/lambdas@third-party-integrations.yaml' /comms/islands: diff --git a/openapi/components/examples/lambdas/200-outfits-id.json b/openapi/components/examples/lambdas/200-outfits-id.json new file mode 100644 index 0000000..0f53d20 --- /dev/null +++ b/openapi/components/examples/lambdas/200-outfits-id.json @@ -0,0 +1,85 @@ +{ + "value": [ + { + "version": "v3", + "id": "QmQ9UorFsVTpaVpCwJZAzFyCmaGf7Ksi6aQHYTJVKyzVMh", + "type": "outfits", + "timestamp": 1581034082829, + "pointers": [ + "0xa87d168717538e86d71ac48baccaeb84162de602:outfits" + ], + "content": [], + "metadata": { + "outfits": [ + { + "slot": 1, + "outfit": { + "bodyShape": "urn:decentraland:off-chain:base-avatars:BaseMale", + "eyes": { + "color": { + "r": 0.23046875, + "g": 0.625, + "b": 0.3125 + } + }, + "hair": { + "color": { + "r": 0.35546875, + "g": 0.19140625, + "b": 0.05859375 + } + }, + "skin": { + "color": { + "r": 0.94921875, + "g": 0.76171875, + "b": 0.6484375 + } + }, + "wearables": [ + "urn:decentraland:matic:collections-v2: 0xf6f601efee04e74cecac02c8c5bdc8cc0fc1c721:0", + "urn:decentraland:matic:collections-v2: 0x04e7f74e73e951c61edd80910e46c3fece5ebe80:2", + "urn:decentraland:ethereum:collections-v1:rtfkt_x_atari:p_rtfkt_x_atari_feet" + ] + } + }, + { + "slot": 5, + "outfit": { + "bodyShape": "urn:decentraland:off-chain:base-avatars:BaseMale", + "eyes": { + "color": { + "r": 0.23046875, + "g": 0.625, + "b": 0.3125 + } + }, + "hair": { + "color": { + "r": 0.35546875, + "g": 0.19140625, + "b": 0.05859375 + } + }, + "skin": { + "color": { + "r": 0.94921875, + "g": 0.76171875, + "b": 0.6484375 + } + }, + "wearables": [ + "urn:decentraland:matic:collections-v2: 0xf6f601efee04e74cecac02c8c5bdc8cc0fc1c721:0", + "urn:decentraland:matic:collections-v2: 0x04e7f74e73e951c61edd80910e46c3fece5ebe80:2", + "urn:decentraland:ethereum:collections-v1:rtfkt_x_atari:p_rtfkt_x_atari_feet" + ] + } + } + ], + "namesForExtraSlots": [ + "perro" + ] + } + } + ] +} \ No newline at end of file diff --git a/openapi/paths/lambdas/lambdas@outfits@{id}.yaml b/openapi/paths/lambdas/lambdas@outfits@{id}.yaml new file mode 100644 index 0000000..7363e62 --- /dev/null +++ b/openapi/paths/lambdas/lambdas@outfits@{id}.yaml @@ -0,0 +1,24 @@ +get: + operationId: getOutfits + summary: Get Outfits + tags: + - Lambdas + description: Given a Ethereum address of a user, return the Outfits entity. + parameters: + - in: path + name: id + required: true + schema: + type: string + example: '0x22480812a9a0669783c06d359182a583bd1d9fc2' + description: Ethereum address of the user + responses: + '200': + description: Outfits entity + content: + application/json: + schema: + $ref: ../../components/schemas/content/entity.yaml + examples: + default: + $ref: ../../components/examples/lambdas/200-outfits-id.json