81 lines
2.4 KiB
YAML
81 lines
2.4 KiB
YAML
openapi: 3.0.3
|
|
info:
|
|
title: QUIZ service api
|
|
description: Title
|
|
version: 1.0.0
|
|
|
|
paths:
|
|
/quiz/customization:
|
|
put:
|
|
description: method for put customization files to store s3
|
|
requestBody:
|
|
content:
|
|
'multipart/form-data':
|
|
schema:
|
|
type: object
|
|
properties:
|
|
quiz:
|
|
type: integer
|
|
description: id of quiz for uploading
|
|
required: true
|
|
style:
|
|
type: object
|
|
description: css file customized for quiz
|
|
script:
|
|
type: object
|
|
description: js file customized for quiz
|
|
fonts:
|
|
type: object
|
|
description: font files for quiz
|
|
responses:
|
|
'200':
|
|
description: successful uploaded
|
|
'500':
|
|
description: not mentioned error
|
|
content:
|
|
'application/json':
|
|
schema:
|
|
type: string
|
|
default: if you get any content string send it to developer
|
|
'413':
|
|
description: failed to parse multipart message
|
|
'400':
|
|
description: expecting multipart form file
|
|
'424':
|
|
description: no quiz id provided
|
|
'406':
|
|
description: not exists quiz id provided
|
|
/quiz/putImages:
|
|
put:
|
|
description: method for put images for quiz to s3
|
|
requestBody:
|
|
content:
|
|
'multipart/form-data':
|
|
schema:
|
|
type: object
|
|
properties:
|
|
quiz:
|
|
type: integer
|
|
description: id of quiz for uploading
|
|
required: true
|
|
image:
|
|
type: object
|
|
description: imgs for quiz
|
|
responses:
|
|
'200':
|
|
description: successful uploaded
|
|
'500':
|
|
description: not mentioned error
|
|
content:
|
|
'application/json':
|
|
schema:
|
|
type: string
|
|
default: if you get any content string send it to developer
|
|
'413':
|
|
description: failed to parse multipart message
|
|
'400':
|
|
description: expecting multipart form file
|
|
'424':
|
|
description: no quiz id provided
|
|
'406':
|
|
description: not exists quiz id provided |