@@ -2,7 +2,7 @@ openapi: 3.0.2
22info :
33 title : Catroweb API
44 description : API for the Catrobat Share Platform
5- version : " v1.0.52 "
5+ version : " v1.0.53 "
66 termsOfService : ' https://share.catrob.at/pocketcode/termsOfUse'
77 contact :
88 name : Catrobat
@@ -175,6 +175,37 @@ paths:
175175 ' 204 ' :
176176 description : System is alive and healthy!
177177
178+ /survey/{lang_code} :
179+ get :
180+ parameters :
181+ - in : path
182+ name : lang_code
183+ schema :
184+ type : string
185+ example : de
186+ required : true
187+ description : 2 letter Language-Code is based on ISO693-1 (e.g. German = de, English = en, Russian = ru)
188+ tags :
189+ - Utility
190+ summary : Get survey link for given language code.
191+ responses :
192+ ' 200 ' :
193+ description : OK
194+ content :
195+ application/json :
196+ schema :
197+ $ref : ' #/components/schemas/SurveyResponse'
198+ headers :
199+ X-Response-Hash :
200+ schema :
201+ type : string
202+ example : ' 56asfd5a56sfd564a56dsf65a56sdf'
203+ description : ' MD5 Hash of response body. Used for caching responses.'
204+ ' 400 ' :
205+ $ref : ' #/components/responses/BadRequest'
206+ ' 404 ' :
207+ $ref : ' #/components/responses/NotFound'
208+
178209 # #############################################
179210 # User
180211 # ##
@@ -196,6 +227,7 @@ paths:
196227 application/json :
197228 schema :
198229 $ref : ' #/components/schemas/ExtendedUserDataResponse'
230+
199231 ' 400 ' :
200232 $ref : ' #/components/responses/BadRequest'
201233 ' 401 ' :
@@ -373,7 +405,7 @@ paths:
373405 schema :
374406 type : string
375407 example : ' 56asfd5a56sfd564a56dsf65a56sdf'
376- description : ' IF you send a HEAD request you will only get this hash '
408+ description : ' MD5 Hash of response body. Used for caching responses. '
377409 ' 400 ' :
378410 $ref : ' #/components/responses/BadRequest'
379411 ' 406 ' :
@@ -443,7 +475,7 @@ paths:
443475 schema :
444476 type : string
445477 example : ' 56asfd5a56sfd564a56dsf65a56sdf'
446- description : ' IF you send a HEAD request you will only get this hash '
478+ description : ' MD5 Hash of response body. Used for caching responses. '
447479 content :
448480 application/json :
449481 schema :
@@ -476,7 +508,7 @@ paths:
476508 schema :
477509 type : string
478510 example : ' 56asfd5a56sfd564a56dsf65a56sdf'
479- description : ' IF you send a HEAD request you will only get this hash '
511+ description : ' MD5 Hash of response body. Used for caching responses. '
480512 content :
481513 application/json :
482514 schema :
@@ -506,7 +538,7 @@ paths:
506538 schema :
507539 type : string
508540 example : ' 56asfd5a56sfd564a56dsf65a56sdf'
509- description : ' IF you send a HEAD request you will only get this hash '
541+ description : ' MD5 Hash of response body. Used for caching responses. '
510542 content :
511543 application/json :
512544 schema :
@@ -537,7 +569,7 @@ paths:
537569 schema :
538570 type : string
539571 example : ' 56asfd5a56sfd564a56dsf65a56sdf'
540- description : ' IF you send a HEAD request you will only get this hash '
572+ description : ' MD5 Hash of response body. Used for caching responses. '
541573 content :
542574 application/json :
543575 schema :
@@ -564,7 +596,7 @@ paths:
564596 schema :
565597 type : string
566598 example : ' 56asfd5a56sfd564a56dsf65a56sdf'
567- description : ' IF you send a HEAD request you will only get this hash '
599+ description : ' MD5 Hash of response body. Used for caching responses. '
568600 content :
569601 application/json :
570602 schema :
@@ -626,7 +658,7 @@ paths:
626658 schema :
627659 type : string
628660 example : ' 56asfd5a56sfd564a56dsf65a56sdf'
629- description : ' IF you send a HEAD request you will only get this hash '
661+ description : ' MD5 Hash of response body. Used for caching responses. '
630662 content :
631663 application/json :
632664 schema :
@@ -736,6 +768,12 @@ paths:
736768 application/json :
737769 schema :
738770 $ref : ' #/components/schemas/MediaFilesResponse'
771+ headers :
772+ X-Response-Hash :
773+ schema :
774+ type : string
775+ example : ' 56asfd5a56sfd564a56dsf65a56sdf'
776+ description : ' MD5 Hash of response body. Used for caching responses.'
739777 ' 400 ' :
740778 $ref : ' #/components/responses/BadRequest'
741779 ' 404 ' :
@@ -759,6 +797,12 @@ paths:
759797 application/json :
760798 schema :
761799 $ref : ' #/components/schemas/MediaFilesResponse'
800+ headers :
801+ X-Response-Hash :
802+ schema :
803+ type : string
804+ example : ' 56asfd5a56sfd564a56dsf65a56sdf'
805+ description : ' MD5 Hash of response body. Used for caching responses.'
762806 ' 400 ' :
763807 $ref : ' #/components/responses/BadRequest'
764808 ' 406 ' :
@@ -784,6 +828,12 @@ paths:
784828 application/json :
785829 schema :
786830 $ref : ' #/components/schemas/MediaFileResponse'
831+ headers :
832+ X-Response-Hash :
833+ schema :
834+ type : string
835+ example : ' 56asfd5a56sfd564a56dsf65a56sdf'
836+ description : ' MD5 Hash of response body. Used for caching responses.'
787837 ' 400 ' :
788838 $ref : ' #/components/responses/BadRequest'
789839 ' 404 ' :
@@ -818,6 +868,12 @@ paths:
818868 application/json :
819869 schema :
820870 $ref : ' #/components/schemas/MediaFilesResponse'
871+ headers :
872+ X-Response-Hash :
873+ schema :
874+ type : string
875+ example : ' 56asfd5a56sfd564a56dsf65a56sdf'
876+ description : ' MD5 Hash of response body. Used for caching responses.'
821877 ' 400 ' :
822878 $ref : ' #/components/responses/BadRequest'
823879 ' 406 ' :
@@ -1535,4 +1591,15 @@ components:
15351591 description : Notification message
15361592 prize :
15371593 type : string
1538- description : Prize for anniversary notifications
1594+ description : Prize for anniversary notifications
1595+
1596+ # #####################################################
1597+ # Utility Schemas
1598+ # ##
1599+ SurveyResponse :
1600+ type : object
1601+ properties :
1602+ url :
1603+ type : string
1604+ example : https://www.surveylegend.com/survey/#/d29yZHByZXNzMTQzODU2~-MRPPYfbYj7-rPUTK3HH
1605+ description : Url to a survey for the given language
0 commit comments