Skip to content

Commit

Permalink
changed category fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemHolikov committed Dec 19, 2024
1 parent 6002152 commit b6e8803
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 7 deletions.
33 changes: 33 additions & 0 deletions docs/category/category-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,36 @@ definitions:
updatedAt:
type: string
format: date-time
coursesCategory:
type: object
properties:
_id:
type: string
appearance:
type: object
properties:
icon:
type: string
color:
type: string
coursesCategoryPost:
type: object
properties:
name:
type: string
appearance:
type: object
properties:
icon:
type: string
color:
type: string
totalOffers:
type: object
properties:
student:
type: number
default: 0
tutor:
type: number
default: 0
6 changes: 3 additions & 3 deletions docs/course/course-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ definitions:
ref: '#components/user'
category:
type: string
ref: '#components/category'
ref: '#components/coursesCategory'
subject:
type: string
ref: '#components/subject'
Expand Down Expand Up @@ -71,7 +71,7 @@ definitions:
ref: '#components/user'
category:
type: string
ref: '#components/category'
ref: '#components/coursesCategory'
subject:
type: string
ref: '#components/subject'
Expand Down Expand Up @@ -125,7 +125,7 @@ definitions:
ref: '#components/user'
category:
type: string
ref: '#components/category'
ref: '#components/coursesCategoryPost'
subject:
type: string
ref: '#components/subject'
Expand Down
8 changes: 4 additions & 4 deletions docs/course/course.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ paths:
content: <h1>Title</h1>,
author: 63da8767c9ad4c9a0b0eacd3,
attachments: [63ed1cd25e9d781cdb6a6b15],
category: { _id: 6477007a6fa4d05e1a800ce1, name: Languages },
category: 6477007a6fa4d05e1a800ce1,
_id: 63ed1cd25e9d781cdb6a6b17
},
resourceType: lesson
Expand Down Expand Up @@ -82,7 +82,7 @@ paths:
fileName: EnglishB2Level,
link: 'https://english-b2-test.com',
size: 230,
category: { _id: 6477007a6fa4d05e1a800ce1, name: Science }
category: 6477007a6fa4d05e1a800ce1
},
resourceType: attachment
}
Expand All @@ -93,7 +93,7 @@ paths:
title: Advanced Ukrainian
description: Advanced Ukrainian course with 5 modules and separated lessons for improving speaking, listening and reading.
author: 63da8767c9ad4c9a0b0eacd3
category: 64884f33fdc2d1a130c24ac2
category: { id_: 64884f33fdc2d1a130c24ac2, appearance: { icon: LanguageIcon, color: '#66C42C' }}
subject: 6488509cfdc2d1a130c24ae4
proficiencyLevel: [Advanced]
sections:
Expand Down Expand Up @@ -324,7 +324,7 @@ paths:
content: <h1>Title</h1>,
author: 63da8767c9ad4c9a0b0eacd3,
attachments: [63ed1cd25e9d781cdb6a6b15],
category: { _id: 6477007a6fa4d05e1a800ce1, name: Languages },
category: 6477007a6fa4d05e1a800ce1,
_id: 63ed1cd25e9d781cdb6a6b17
},
resourceType: lesson
Expand Down

0 comments on commit b6e8803

Please sign in to comment.