fifth commit

main
Lyanling 1 month ago
parent 718566efb1
commit 822c8aafc1

@ -1,354 +0,0 @@
openapi: 3.0.3
info:
title: ''
version: 0.0.0
paths:
/api/schema/:
get:
operationId: api_schema_retrieve
description: |-
OpenApi3 schema for this API. Format can be selected via content negotiation.
- YAML: application/vnd.oai.openapi
- JSON: application/vnd.oai.openapi+json
parameters:
- in: query
name: format
schema:
type: string
enum:
- json
- yaml
- in: query
name: lang
schema:
type: string
enum:
- af
- ar
- ar-dz
- ast
- az
- be
- bg
- bn
- br
- bs
- ca
- cs
- cy
- da
- de
- dsb
- el
- en
- en-au
- en-gb
- eo
- es
- es-ar
- es-co
- es-mx
- es-ni
- es-ve
- et
- eu
- fa
- fi
- fr
- fy
- ga
- gd
- gl
- he
- hi
- hr
- hsb
- hu
- hy
- ia
- id
- ig
- io
- is
- it
- ja
- ka
- kab
- kk
- km
- kn
- ko
- ky
- lb
- lt
- lv
- mk
- ml
- mn
- mr
- my
- nb
- ne
- nl
- nn
- os
- pa
- pl
- pt
- pt-br
- ro
- ru
- sk
- sl
- sq
- sr
- sr-latn
- sv
- sw
- ta
- te
- tg
- th
- tk
- tr
- tt
- udm
- uk
- ur
- uz
- vi
- zh-hans
- zh-hant
tags:
- api
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
content:
application/vnd.oai.openapi:
schema:
type: object
additionalProperties: {}
application/yaml:
schema:
type: object
additionalProperties: {}
application/vnd.oai.openapi+json:
schema:
type: object
additionalProperties: {}
application/json:
schema:
type: object
additionalProperties: {}
description: ''
/polls/students/:
get:
operationId: polls_students_list
tags:
- polls
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Student'
description: ''
post:
operationId: polls_students_create
tags:
- polls
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Student'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/Student'
multipart/form-data:
schema:
$ref: '#/components/schemas/Student'
required: true
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/Student'
description: ''
/polls/students/{id}/:
get:
operationId: polls_students_retrieve
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this student.
required: true
tags:
- polls
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Student'
description: ''
put:
operationId: polls_students_update
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this student.
required: true
tags:
- polls
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Student'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/Student'
multipart/form-data:
schema:
$ref: '#/components/schemas/Student'
required: true
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Student'
description: ''
patch:
operationId: polls_students_partial_update
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this student.
required: true
tags:
- polls
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchedStudent'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/PatchedStudent'
multipart/form-data:
schema:
$ref: '#/components/schemas/PatchedStudent'
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Student'
description: ''
delete:
operationId: polls_students_destroy
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this student.
required: true
tags:
- polls
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'204':
description: No response body
components:
schemas:
PatchedStudent:
type: object
properties:
name:
type: string
maxLength: 100
student_id:
type: string
maxLength: 100
score:
type: number
format: double
attendance_count:
type: integer
maximum: 2147483647
minimum: -2147483648
called_count:
type: integer
maximum: 2147483647
minimum: -2147483648
Student:
type: object
properties:
name:
type: string
maxLength: 100
student_id:
type: string
maxLength: 100
score:
type: number
format: double
attendance_count:
type: integer
maximum: 2147483647
minimum: -2147483648
called_count:
type: integer
maximum: 2147483647
minimum: -2147483648
required:
- name
- student_id
securitySchemes:
basicAuth:
type: http
scheme: basic
cookieAuth:
type: apiKey
in: cookie
name: sessionid
Loading…
Cancel
Save