Skip to content

Commit

Permalink
Update API definition
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentTreguier committed Aug 7, 2024
1 parent 0d958b5 commit dc45bce
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion Fyreplace/Resources/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
openapi: 3.0.3
info:
title: Fyreplace API
version: v0.1.0
version: v0.2.0
paths:
/emails:
get:
Expand Down Expand Up @@ -42,6 +42,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/EmailCreation"
required: true
responses:
default:
description: Unexpected error
Expand Down Expand Up @@ -69,6 +70,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/EmailActivation"
required: true
responses:
default:
description: Unexpected error
Expand Down Expand Up @@ -385,6 +387,7 @@ paths:
schema:
format: binary
type: string
required: true
responses:
default:
description: Unexpected error
Expand Down Expand Up @@ -426,6 +429,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/ChapterPositionUpdate"
required: true
responses:
default:
description: Unexpected error
Expand Down Expand Up @@ -534,6 +538,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/CommentCreation"
required: true
responses:
default:
description: Unexpected error
Expand Down Expand Up @@ -669,6 +674,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/ReportUpdate"
required: true
responses:
default:
description: Unexpected error
Expand Down Expand Up @@ -698,6 +704,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/PostPublication"
required: true
responses:
default:
description: Unexpected error
Expand Down Expand Up @@ -729,6 +736,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/ReportUpdate"
required: true
responses:
default:
description: Unexpected error
Expand Down Expand Up @@ -758,6 +766,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/SubscriptionUpdate"
required: true
responses:
default:
description: Unexpected error
Expand Down Expand Up @@ -789,6 +798,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/VoteCreation"
required: true
responses:
default:
description: Unexpected error
Expand Down Expand Up @@ -934,6 +944,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/TokenCreation"
required: true
responses:
default:
description: Unexpected error
Expand Down Expand Up @@ -976,6 +987,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/NewTokenCreation"
required: true
responses:
default:
description: Unexpected error
Expand All @@ -995,6 +1007,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/UserCreation"
required: true
responses:
default:
description: Unexpected error
Expand Down Expand Up @@ -1106,6 +1119,7 @@ paths:
schema:
format: binary
type: string
required: true
responses:
default:
description: Unexpected error
Expand Down Expand Up @@ -1230,6 +1244,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/BlockUpdate"
required: true
responses:
default:
description: Unexpected error
Expand Down Expand Up @@ -1261,6 +1276,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/ReportUpdate"
required: true
responses:
default:
description: Unexpected error
Expand Down Expand Up @@ -1518,6 +1534,7 @@ components:
- avatar
- bio
- banned
- blocked
- tint
type: object
properties:
Expand All @@ -1537,6 +1554,8 @@ components:
type: string
banned:
type: boolean
blocked:
type: boolean
tint:
type: string
UserCreation:
Expand Down

0 comments on commit dc45bce

Please sign in to comment.