Skip to content

Commit

Permalink
feat: add outfits (#111)
Browse files Browse the repository at this point in the history
* feat: add outfits

* fix

* add

* fix

* fix example
  • Loading branch information
pedrotambo authored May 30, 2023
1 parent e81da14 commit eca06b0
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openapi/catalyst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
85 changes: 85 additions & 0 deletions openapi/components/examples/lambdas/200-outfits-id.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
]
}
24 changes: 24 additions & 0 deletions openapi/paths/lambdas/lambdas@outfits@{id}.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit eca06b0

Please sign in to comment.