Skip to content

Commit

Permalink
lesson swagger fixed (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
TSlashDreamy authored Dec 8, 2023
1 parent 0a8693d commit f5cda47
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/lesson/lesson-schema.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
definitions:
updateLessonRequest:
type: object
properties:
title:
type: string
minLength: 1
maxLength: 100
lessonBody:
type: object
properties:
Expand Down
10 changes: 9 additions & 1 deletion docs/lesson/lesson.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,19 @@ paths:
description: Update a lesson by ID and restricted only for tutor
produces:
- application/json
parameters:
- name: id
in: path
required: true
description: ID of category
type: string
requestBody:
required: false
required: true
description: Data for update a lesson.
content:
application/json:
schema:
$ref: '#definitions/updateLessonRequest'
example:
title: Nature in english
responses:
Expand Down

0 comments on commit f5cda47

Please sign in to comment.