Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@

# No reason to commit PHP CS Fixer cache files
/.php_cs.cache

#idea files
/.idea
34 changes: 26 additions & 8 deletions catroweb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.2
info:
title: Catroweb API
description: API for the Catrobat Share Platform
version: "v1.0.49"
version: "v1.0.51"
termsOfService: 'https://share.catrob.at/pocketcode/termsOfUse'
contact:
name: Catrobat
Expand Down Expand Up @@ -119,12 +119,8 @@ paths:
- Authentication
summary: Expires refresh token
description: Sets refresh token to expired
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RefreshRequest'
parameters:
- $ref: '#/components/parameters/RefreshToken'
responses:
'200':
$ref: '#/components/responses/OK'
Expand Down Expand Up @@ -372,6 +368,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/ProjectsResponse'
headers:
X-Project-Hash:
schema:
type: string
example: '56asfd5a56sfd564a56dsf65a56sdf'
description: 'IF you send a HEAD request you will only get this hash'
'400':
$ref: '#/components/responses/BadRequest'
'406':
Expand Down Expand Up @@ -436,6 +438,12 @@ paths:
responses:
'200':
description: OK
headers:
X-Response-Hash:
schema:
type: string
example:
description: MD5 Hash of the response body.
content:
application/json:
schema:
Expand Down Expand Up @@ -875,6 +883,15 @@ components:
schema:
$ref: '#/components/schemas/Offset'

RefreshToken:
name: X-Refresh
in: header
description: Refresh Token
schema:
type: string
example: xxxxx.yyyyy.zzzzz
required: true

##
# Notifications specific
#
Expand Down Expand Up @@ -1321,6 +1338,7 @@ components:
type: string
example: 'https://share.catrob.at/resources/featured/featured_999.png'


ProjectsResponse:
type: array
items:
Expand Down Expand Up @@ -1482,4 +1500,4 @@ components:
description: Notification message
prize:
type: string
description: Prize for anniversary notifications
description: Prize for anniversary notifications