Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add POST /lambdas/profiles #65

Merged
merged 3 commits into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions openapi/components/examples/lambdas/post-profiles.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"value" : {
"ids": [
"0x5e5d9d1dfd87e9b8b069b8e5d708db92be5ade99",
"0x22480812a9a0669783c06d359182a583bd1d9fc2"
]
}
}
6 changes: 6 additions & 0 deletions openapi/components/schemas/lambdas/post-profiles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: object
properties:
ids:
type: array
items:
type: string
28 changes: 28 additions & 0 deletions openapi/paths/lambdas/lambdas@profiles.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
post:
operationId: getAvatarsDetails
summary: Get Avatars details
tags:
- Lambdas
description: Returns all the Avatars details associated with the Ethereum addresses in the body
requestBody:
description: >-
The body only has the `ids` property representing a list of Ethereum addresses
content:
application/json; charset=utf-8:
schema:
$ref: ../../components/schemas/lambdas/post-profiles.yaml
examples:
default:
$ref: ../../components/examples/lambdas/post-profiles.json
responses:
'200':
description: Array of Avatars
content:
application/json:
schema:
$ref: ../../components/schemas/lambdas/200-profiles-ids.yaml
examples:
default:
$ref: ../../components/examples/lambdas/200-profiles-ids.json

get:
deprecated: true
operationId: getAvatarsDetails
summary: Get Avatars details
tags:
Expand Down
53 changes: 53 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.