Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Commit 68935da

Browse files
authored
Merge pull request #63 from HCrane/hash
Updating Headers
2 parents 4fc6e23 + cbd0496 commit 68935da

File tree

2 files changed

+29
-8
lines changed

2 files changed

+29
-8
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,6 @@
6666

6767
# No reason to commit PHP CS Fixer cache files
6868
/.php_cs.cache
69+
70+
#idea files
71+
/.idea

catroweb.yaml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.2
22
info:
33
title: Catroweb API
44
description: API for the Catrobat Share Platform
5-
version: "v1.0.49"
5+
version: "v1.0.51"
66
termsOfService: 'https://share.catrob.at/pocketcode/termsOfUse'
77
contact:
88
name: Catrobat
@@ -119,12 +119,8 @@ paths:
119119
- Authentication
120120
summary: Expires refresh token
121121
description: Sets refresh token to expired
122-
requestBody:
123-
required: true
124-
content:
125-
application/json:
126-
schema:
127-
$ref: '#/components/schemas/RefreshRequest'
122+
parameters:
123+
- $ref: '#/components/parameters/RefreshToken'
128124
responses:
129125
'200':
130126
$ref: '#/components/responses/OK'
@@ -372,6 +368,12 @@ paths:
372368
application/json:
373369
schema:
374370
$ref: '#/components/schemas/ProjectsResponse'
371+
headers:
372+
X-Project-Hash:
373+
schema:
374+
type: string
375+
example: '56asfd5a56sfd564a56dsf65a56sdf'
376+
description: 'IF you send a HEAD request you will only get this hash'
375377
'400':
376378
$ref: '#/components/responses/BadRequest'
377379
'406':
@@ -436,6 +438,12 @@ paths:
436438
responses:
437439
'200':
438440
description: OK
441+
headers:
442+
X-Response-Hash:
443+
schema:
444+
type: string
445+
example:
446+
description: MD5 Hash of the response body.
439447
content:
440448
application/json:
441449
schema:
@@ -875,6 +883,15 @@ components:
875883
schema:
876884
$ref: '#/components/schemas/Offset'
877885

886+
RefreshToken:
887+
name: X-Refresh
888+
in: header
889+
description: Refresh Token
890+
schema:
891+
type: string
892+
example: xxxxx.yyyyy.zzzzz
893+
required: true
894+
878895
##
879896
# Notifications specific
880897
#
@@ -1321,6 +1338,7 @@ components:
13211338
type: string
13221339
example: 'https://share.catrob.at/resources/featured/featured_999.png'
13231340

1341+
13241342
ProjectsResponse:
13251343
type: array
13261344
items:
@@ -1482,4 +1500,4 @@ components:
14821500
description: Notification message
14831501
prize:
14841502
type: string
1485-
description: Prize for anniversary notifications
1503+
description: Prize for anniversary notifications

0 commit comments

Comments
 (0)