Skip to content

Commit

Permalink
Deploying to gh-pages from @ a5b6a39 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
freigeistig committed Jan 24, 2024
1 parent 5280add commit e21ec8a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 10 deletions.
29 changes: 24 additions & 5 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"/v1/links": {
"post": {
"tags": [
"Proofs"
"Links"
],
"summary": "Create Link Proofs",
"description": "Add link to the specified proofs\n",
Expand Down Expand Up @@ -49,9 +49,15 @@
"550e8400-e29b-41d4-a716-446655440002",
"550e8400-e29b-41d4-a716-446655440003"
]
},
"link_name": {
"type": "string",
"description": "Link name, must be unique",
"example": "RarimoAppTeamEmailAndPosition"
}
},
"required": [
"user_did",
"proofs_ids"
]
}
Expand Down Expand Up @@ -83,6 +89,9 @@
"401": {
"$ref": "#/components/responses/invalidAuth"
},
"409": {
"$ref": "#/components/responses/conflict"
},
"500": {
"$ref": "#/components/responses/internalError"
}
Expand All @@ -98,7 +107,7 @@
}
],
"tags": [
"Proofs"
"Links"
],
"parameters": [
{
Expand Down Expand Up @@ -152,14 +161,14 @@
"description": "Returns information about the all proofs of the link.\n",
"operationId": "proofsByLinkID",
"tags": [
"Proofs"
"Links"
],
"parameters": [
{
"in": "path",
"name": "link_id",
"required": true,
"description": "The Link ID",
"description": "The Link ID (UUID or ASCII string)",
"schema": {
"type": "string",
"example": "550e8400-e29b-41d4-a716-446655440000"
Expand Down Expand Up @@ -458,7 +467,7 @@
"properties": {
"link": {
"type": "string",
"description": "UUID Link to proofs",
"description": "Link to proofs ID (UUID or custom ASCII string)",
"example": "05260b49-2c35-48b9-8300-d39ae48ca312"
},
"created_at": {
Expand Down Expand Up @@ -601,6 +610,16 @@
}
},
"responses": {
"conflict": {
"description": "Conflict",
"content": {
"application/vnd.api+json": {
"schema": {
"$ref": "#/components/schemas/Errors"
}
}
}
},
"internalError": {
"description": "Internal server error",
"content": {
Expand Down
23 changes: 18 additions & 5 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ paths:
/v1/links:
post:
tags:
- Proofs
- Links
summary: Create Link Proofs
description: |
Add link to the specified proofs
Expand Down Expand Up @@ -38,7 +38,12 @@ paths:
- 550e8400-e29b-41d4-a716-446655440001
- 550e8400-e29b-41d4-a716-446655440002
- 550e8400-e29b-41d4-a716-446655440003
link_name:
type: string
description: 'Link name, must be unique'
example: RarimoAppTeamEmailAndPosition
required:
- user_did
- proofs_ids
responses:
'200':
Expand All @@ -55,6 +60,8 @@ paths:
$ref: '#/components/responses/invalidParameter'
'401':
$ref: '#/components/responses/invalidAuth'
'409':
$ref: '#/components/responses/conflict'
'500':
$ref: '#/components/responses/internalError'
get:
Expand All @@ -65,7 +72,7 @@ paths:
security:
- Bearer: []
tags:
- Proofs
- Links
parameters:
- in: path
name: did
Expand Down Expand Up @@ -101,12 +108,12 @@ paths:
Returns information about the all proofs of the link.
operationId: proofsByLinkID
tags:
- Proofs
- Links
parameters:
- in: path
name: link_id
required: true
description: The Link ID
description: The Link ID (UUID or ASCII string)
schema:
type: string
example: 550e8400-e29b-41d4-a716-446655440000
Expand Down Expand Up @@ -304,7 +311,7 @@ components:
properties:
link:
type: string
description: UUID Link to proofs
description: Link to proofs ID (UUID or custom ASCII string)
example: 05260b49-2c35-48b9-8300-d39ae48ca312
created_at:
type: string
Expand Down Expand Up @@ -401,6 +408,12 @@ components:
enum:
- proofs
responses:
conflict:
description: Conflict
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/Errors'
internalError:
description: Internal server error
content:
Expand Down

0 comments on commit e21ec8a

Please sign in to comment.