11openapi : 3.0.0
22paths :
3+ /v0/system/settings :
4+ get :
5+ operationId : getSystemSettings
6+ summary : システムの設定を返却する
7+ parameters : []
8+ responses :
9+ ' 200 ' :
10+ description : システム設定情報
11+ content :
12+ application/json :
13+ schema :
14+ $ref : ' #/components/schemas/SystemSettings'
315 /v0/users/me :
416 get :
517 operationId : getMe
@@ -195,9 +207,9 @@ paths:
195207 description : 既に登録済みのユーザー
196208 tags :
197209 - auth
198- /v0/auth/verify-code :
210+ /v0/auth/pre-sign-up/ verify-code :
199211 post :
200- operationId : postVerifyCode
212+ operationId : postPreSignUpVerifyCode
201213 summary : 認証コードの確認
202214 parameters : []
203215 requestBody :
@@ -301,6 +313,109 @@ paths:
301313 - auth
302314 security :
303315 - cookie : []
316+ /health :
317+ get :
318+ operationId : HealthController_check
319+ parameters : []
320+ responses :
321+ ' 200 ' :
322+ description : The Health Check is successful
323+ content :
324+ application/json :
325+ schema :
326+ type : object
327+ properties :
328+ status :
329+ type : string
330+ example : ok
331+ info :
332+ type : object
333+ example :
334+ database :
335+ status : up
336+ additionalProperties :
337+ type : object
338+ properties :
339+ status :
340+ type : string
341+ additionalProperties :
342+ type : string
343+ nullable : true
344+ error :
345+ type : object
346+ example : {}
347+ additionalProperties :
348+ type : object
349+ properties :
350+ status :
351+ type : string
352+ additionalProperties :
353+ type : string
354+ nullable : true
355+ details :
356+ type : object
357+ example :
358+ database :
359+ status : up
360+ additionalProperties :
361+ type : object
362+ properties :
363+ status :
364+ type : string
365+ additionalProperties :
366+ type : string
367+ ' 503 ' :
368+ description : The Health Check is not successful
369+ content :
370+ application/json :
371+ schema :
372+ type : object
373+ properties :
374+ status :
375+ type : string
376+ example : error
377+ info :
378+ type : object
379+ example :
380+ database :
381+ status : up
382+ additionalProperties :
383+ type : object
384+ properties :
385+ status :
386+ type : string
387+ additionalProperties :
388+ type : string
389+ nullable : true
390+ error :
391+ type : object
392+ example :
393+ redis :
394+ status : down
395+ message : Could not connect
396+ additionalProperties :
397+ type : object
398+ properties :
399+ status :
400+ type : string
401+ additionalProperties :
402+ type : string
403+ nullable : true
404+ details :
405+ type : object
406+ example :
407+ database :
408+ status : up
409+ redis :
410+ status : down
411+ message : Could not connect
412+ additionalProperties :
413+ type : object
414+ properties :
415+ status :
416+ type : string
417+ additionalProperties :
418+ type : string
304419 /v0/posts :
305420 post :
306421 operationId : createPost
@@ -551,10 +666,66 @@ paths:
551666 - timelines
552667 security :
553668 - bearer : []
669+ /v0/invitations/verify-code :
670+ post :
671+ operationId : postInvitationVerifyCode
672+ summary : 招待コードの確認
673+ parameters : []
674+ requestBody :
675+ required : true
676+ content :
677+ application/json :
678+ schema :
679+ $ref : ' #/components/schemas/InvitationCodeRequest'
680+ responses :
681+ ' 200 ' :
682+ description : 招待コードOK
683+ ' 400 ' :
684+ description : 招待コードが無効です。
685+ tags :
686+ - invitations
687+ /v0/invitations/me :
688+ get :
689+ operationId : getInvitationsMe
690+ summary : 自分が発行した招待コード一覧
691+ parameters : []
692+ responses :
693+ ' 200 ' :
694+ description : 招待コード一覧
695+ content :
696+ application/json :
697+ schema :
698+ $ref : ' #/components/schemas/InvitationsInfo'
699+ ' 401 ' :
700+ description : 認証エラー
701+ tags :
702+ - invitations
703+ security :
704+ - bearer : []
705+ /v0/invitations/create :
706+ post :
707+ operationId : postInvitationsCreate
708+ summary : 招待コードの発行
709+ parameters : []
710+ responses :
711+ ' 200 ' :
712+ description : 招待コード発行
713+ content :
714+ application/json :
715+ schema :
716+ $ref : ' #/components/schemas/Invitation'
717+ ' 400 ' :
718+ description : 招待コードの発行に失敗しました。
719+ ' 401 ' :
720+ description : 認証エラー
721+ tags :
722+ - invitations
723+ security :
724+ - bearer : []
554725info :
555726 title : Cuculus API
556727 description : The Cuculus API description
557- version : ' 1.0 '
728+ version : 0.0.1
558729 contact : {}
559730tags : []
560731servers : []
@@ -569,6 +740,18 @@ components:
569740 in : cookie
570741 name : auth_token
571742 schemas :
743+ SystemSettings :
744+ type : object
745+ properties :
746+ invitation_only :
747+ type : boolean
748+ description : 招待制ON/OFF
749+ maintenance :
750+ type : boolean
751+ description : メンテナンス中
752+ required :
753+ - invitation_only
754+ - maintenance
572755 UserResponse :
573756 type : object
574757 properties :
@@ -753,11 +936,16 @@ components:
753936 type : string
754937 description : パスワード
755938 example : password
939+ invitation_code :
940+ type : string
941+ description : 招待コード
942+ example : ABCDE12345
756943 required :
757944 - email
758945 - code
759946 - username
760947 - password
948+ - invitation_code
761949 AuthResponse :
762950 type : object
763951 properties :
@@ -800,3 +988,42 @@ components:
800988 required :
801989 - original_post_id
802990 - text
991+ InvitationCodeRequest :
992+ type : object
993+ properties :
994+ invitation_code :
995+ type : string
996+ description : 招待コード
997+ example : ABCDE12345
998+ required :
999+ - invitation_code
1000+ Invitation :
1001+ type : object
1002+ properties :
1003+ code :
1004+ type : string
1005+ description : 招待コード
1006+ example : ABCDE12345
1007+ issued_at :
1008+ format : date-time
1009+ type : string
1010+ description : 招待コードの発行日時
1011+ example : ' 2021-01-01T00:00:00.000Z'
1012+ required :
1013+ - code
1014+ - issued_at
1015+ InvitationsInfo :
1016+ type : object
1017+ properties :
1018+ remaining_invitations :
1019+ type : number
1020+ description : 発行できる招待コードの残数
1021+ example : 10
1022+ invitations :
1023+ description : 自分が発行した招待コード一覧
1024+ type : array
1025+ items :
1026+ $ref : ' #/components/schemas/Invitation'
1027+ required :
1028+ - remaining_invitations
1029+ - invitations
0 commit comments