Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sangtrandev00/backend-course-prj
https://github.com/sangtrandev00/backend-course-prj
expressjs mongoose mvc nodejs
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sangtrandev00/backend-course-prj
- Owner: sangtrandev00
- Created: 2023-07-16T08:43:18.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-09T10:09:59.000Z (over 1 year ago)
- Last Synced: 2023-08-09T11:53:57.445Z (over 1 year ago)
- Topics: expressjs, mongoose, mvc, nodejs
- Language: JavaScript
- Homepage: https://backend-course-project-7bc2.onrender.com
- Size: 8.82 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Project: E-LEARNING-PLATFORM
+ Description: I have build a RESTFUL API for learning and managing courses online using Nodejs for this project. Take a look at my api documentation
+ Follow me: https://trannhatsang.com
+ Online api domain: [https://backend-course-project-7bc2.onrender.com/](https://backend-course-project-7bc2.onrender.com/)
# π Collection: Categories## End-point: GET CATES
### Method: GET
>```
>{{host}}/admin/categories
>```
### π Authentication bearer|Param|value|Type|
|---|---|---|
|token|{{token}}|string|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET ALL CATES
### Method: GET
>```
>{{host}}/admin/all-categories
>```
### π Authentication bearer|Param|value|Type|
|---|---|---|
|token|{{token}}|string|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET CATE BY ID
### Method: GET
>```
>{{host}}/admin/categories/64b363573bbbb6317297378d/single
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: POST CATE
### Method: GET
>```
>undefined
>```
### Body formdata|Param|value|Type|
|---|---|---|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: PUT CATE
### Method: PUT
>```
>{{host}}/admin/category/64bb4e1582a5abc6b1c13305
>```
### Body formdata|Param|value|Type|
|---|---|---|
|name|Blockchain|text|
|cateImage|https://images.unsplash.com/photo-1639322537228-f710d846310a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1332&q=80|text|
|description|Blockchain for chain|text|
|cateSlug|blockchain-techonology|text|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: DELETE CATE (NOT TEST )
### Method: DELETE
>```
>{{host}}/admin/category/64bb4e1582a5abc6b1c13305
>```
### Body formdata|Param|value|Type|
|---|---|---|
|name|Blockchain|text|
|cateImage|https://images.unsplash.com/photo-1639322537228-f710d846310a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1332&q=80|text|
|description|Blockchain for chain|text|
|cateSlug|blockchain-techonology|text|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
# π Collection: Courses## End-point: GET COURES
### Method: GET
>```
>{{host}}/admin/courses
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET COURES HAVE BOUGHT
### Method: GET
>```
>{{host}}/admin/orders
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET COURE BY ID
### Method: GET
>```
>{{host}}/admin/courses/646891c65ff2f5b8930b5329
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: POST COURSE
### Method: GET
>```
>undefined
>```
### Body formdata|Param|value|Type|
|---|---|---|
|HTML CSS basic for newbite||text|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
# π Collection: Sections## End-point: GET SECTIONS
### Method: GET
>```
>{{host}}/admin/sections
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET SECTION BY ID
### Method: GET
>```
>{{host}}/admin/sections/64b38fca581c74da27d58f0e
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET SECTIONS BY COURSE ID
### Method: GET
>```
>{{host}}/admin/sections/646891c65ff2f5b8930b5329/course
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: POST SECTION
### Method: POST
>```
>{{host}}/admin/section
>```
### Body (**raw**)```json
```
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
# π Collection: Lessons## End-point: GET LESSONS
### Method: GET
>```
>{{host}}/admin/lessons
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET LESSONS BY SECTION ID
### Method: GET
>```
>{{host}}/admin/lessons/64b38fca581c74da27d58f0e/section
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET LESSON BY ID
### Method: GET
>```
>{{host}}/admin/lessons/64b391c4581c74da27d58f21
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: POST LESSON
### Method: POST
>```
>{{host}}/admin/lesson
>```
### Body (**raw**)```json
{
"name": "TrαΊ§n NhαΊt Sang",
"content": "https://www.youtube.com/watch?v=_u3xST8mzs4&ab_channel=F8Official",
"access": "SOON",
"sectionId": "64b38fca581c74da27d58f0e",
"type": "video",
"description": "fsdfsfdsfds"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
# π Collection: Client## End-point: GET CATEGORIES
### Method: GET
>```
>{{host}}/categories
>```
### π Authentication bearer|Param|value|Type|
|---|---|---|
|token||string|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET COURSES
### Method: GET
>```
>{{host}}/courses?userId=6468a145401d3810494f4797
>```
### Query Params|Param|value|
|---|---|
|userId|6468a145401d3810494f4797|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET COURSES AFTER LOGIN
### Method: GET
>```
>{{host}}/courses/logined?userId=6468a145401d3810494f4797
>```
### Query Params|Param|value|
|---|---|
|userId|6468a145401d3810494f4797|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET COURSES POPULAR
### Method: GET
>```
>{{host}}/courses/popular
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET CART RETRIEVE FROM DB
### Method: GET
>```
>{{host}}/cart/retrieve?_courseIds=64bb390719f0935f065b9892%2C64c5d873c573c1ec5d4a18f5%2C64c5d873c573c1ec5d4a18f7%2C64c5d873c573c1ec5d4a18fd
>```
### Body (**raw**)```json
{
"courseIds": [
"64bb390719f0935f065b9892",
"64c5d873c573c1ec5d4a18f5"
]
}
```### Query Params
|Param|value|
|---|---|
|_courseIds|64bb390719f0935f065b9892%2C64c5d873c573c1ec5d4a18f5%2C64c5d873c573c1ec5d4a18f7%2C64c5d873c573c1ec5d4a18fd|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET AUTHORS
### Method: GET
>```
>{{host}}/authors
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: SEARCH COURSE
### Method: GET
>```
>{{host}}/courses?_page=1&_limit=14
>```
### Query Params|Param|value|
|---|---|
|_page|1|
|_limit|14|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET COURSE BY ID
### Method: GET
>```
>{{host}}/courses/646891c65ff2f5b8930b5329
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET COURSE BY ID ENROLLED BY USER ID
### Method: GET
>```
>{{host}}/courses/646891c65ff2f5b8930b5329/enrolled
>```
### Headers|Content-Type|Value|
|---|---|
|userId|6468a145401d3810494f4797|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET COURSE DETAIL
### Method: GET
>```
>{{host}}/courses/646891c65ff2f5b8930b5329/detail
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET SECTIONS BY COURSE ID
### Method: GET
>```
>{{host}}/sections/646891c65ff2f5b8930b5329/course
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET SECTIONS BY COURSE ID AT ENROLLED COURSE
### Method: GET
>```
>{{host}}/sections/646891c65ff2f5b8930b5329/course
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET LESSONS BY SECTION ID
### Method: GET
>```
>{{host}}/lessons/64b38fca581c74da27d58f0e/section
>```
### Headers|Content-Type|Value|
|---|---|
|userId|6468a145401d3810494f4797|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET LESSONS BY SECTION ID AT ENROLLED COURSE
### Method: GET
>```
>{{host}}/lessons/64b38fca581c74da27d58f0e/section/course-enrolled
>```
### Headers|Content-Type|Value|
|---|---|
|userId|6468a145401d3810494f4797|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET ORDER BY ID
### Method: GET
>```
>{{host}}/orders/6469cff42c2428dc06675825
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: POST COURSE REVIEW BY USER ID
### Method: POST
>```
>{{host}}/courses/6469cff42c2428dc06675825/reviews
>```
### Body (**raw**)```json
{
"courseId": "646891c65ff2f5b8930b5329",
"title": "Wonderful course i ever got in my life",
"content": "Wonderful course i ever got in my life, I learnt it from the instructor, he's so great and have a lot of energy",
"ratingStar": 4.5,
"orderId": "64bf737d427e81c39898840f"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET COURSE REVIEWS
### Method: GET
>```
>{{host}}/courses/646891c65ff2f5b8930b5329/reviews
>```
### Body (**raw**)```json
{
"courseId": "646891c65ff2f5b8930b5329",
"title": "Wonderful course i ever got in my life",
"content": "Wonderful course i ever got in my life, I learnt it from the instructor, he's so great and have a lot of energy",
"ratingStar": 4.5,
"orderId": "64bf737d427e81c39898840f"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET USER BY ID
### Method: GET
>```
>{{host}}/users/6468a145401d3810494f4797
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET USER BY ID DETAIL
### Method: GET
>```
>{{host}}/users/6468a145401d3810494f4797/detail
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET COURES HAVE BOUGHT BY USER ID
### Method: GET
>```
>{{host}}/courses/6468a145401d3810494f4797/ordered
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: CHECK LESSON DONE
### Method: GET
>```
>{{host}}/lesson/64b391c4581c74da27d58f21/is-done
>```
### Body (**raw**)```json
{
"userId": "6468a145401d3810494f4797"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: POST ORDER - CREATE ORDER
### Method: POST
>```
>{{host}}/order
>```
### Body (**raw**)```json
{
"items": [
{
"_id": "64bc902ff90fd644ace09dfb",
"courseName": "Course 3 ",
"finalPrice": 12,
"thumbnail": "https://cdn.mycourse.app/images/site-templates/79ae2363c5798f1d6e79d14f2c7c3730.png"
},
{
"_id": "64bb390719f0935f065b9892",
"courseName": "Course 4",
"finalPrice": 13,
"thumbnail": "https://cdn.mycourse.app/images/site-templates/79ae2363c5798f1d6e79d14f2c7c3730.png"
}
],
"user": {
"_id": "6468a145401d3810494f4797",
"email": "[email protected]",
"name": "Tran Nhat Sang",
"phone": "0909129345"
},
"transaction": {
"method": "VNPay"
},
"totalPrice": 300,
"note": "No caption",
"vatFee": 20
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: POST ORDER - CREATE ORDER Copy
### Method: POST
>```
>{{host}}/order
>```
### Body (**raw**)```json
{
"items": [
{
"courseId": "64bc902ff90fd644ace09dfb",
"courseName": "Course 3 ",
"finalPrice": 12,
"thumbnail": "https://cdn.mycourse.app/images/site-templates/79ae2363c5798f1d6e79d14f2c7c3730.png"
},
{
"courseId": "64bb390719f0935f065b9892",
"courseName": "Course 4",
"finalPrice": 13,
"thumbnail": "https://cdn.mycourse.app/images/site-templates/79ae2363c5798f1d6e79d14f2c7c3730.png"
}
],
"user": {
"_id": "6468a145401d3810494f4797",
"email": "[email protected]",
"name": "Tran Nhat Sang",
"phone": "0909129345"
},
"transaction": {
"method": "VNPay"
},
"totalPrice": 300,
"note": "No caption",
"vatFee": 20
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: UPDATE LESSON DONE BY USER ID
### Method: POST
>```
>{{host}}/lesson-done/64b391c4581c74da27d58f21
>```
### Body (**raw**)```json
{
"userId": "6468a145401d3810494f4797"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: POST CERTIFICATION
### Method: POST
>```
>{{host}}/generate-certificate
>```
### Body (**raw**)```json
{
"userId": "6468a145401d3810494f4797",
"userName": "TrαΊ§n NhαΊt Sang",
"courseId": "646891c65ff2f5b8930b5329",
"courseName": "HTML CSS basic for newbite",
"completionDate": "11/8/2023"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: DELETE CERTIFICATION
### Method: DELETE
>```
>{{host}}/delete-certificates?userId=6468a145401d3810494f4797&courseId=64b39fdbc3fb440d0c628768
>```
### Body (**raw**)```json
{
"userId": "6468a145401d3810494f4797",
"userName": "TrαΊ§n NhαΊt Sang",
"courseId": "646891c65ff2f5b8930b5329",
"courseName": "HTML CSS basic for newbite",
"completionDate": "11/8/2023"
}
```### Query Params
|Param|value|
|---|---|
|userId|6468a145401d3810494f4797|
|courseId|64b39fdbc3fb440d0c628768|### π Authentication jwt
|Param|value|Type|
|---|---|---|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET CERTIFICATES BY COUSRE ID AND USER ID
### Method: GET
>```
>{{host}}/get-certificate?courseId=646891c65ff2f5b8930b5329&userId=6468a145401d3810494f4797
>```
### Body (**raw**)```json
{
"userId": "6468a145401d3810494f4797",
"userName": "TrαΊ§n NhαΊt Sang",
"courseId": "646891c65ff2f5b8930b5329",
"courseName": "HTML CSS basic for newbite",
"completionDate": "11/8/2023"
}
```### Query Params
|Param|value|
|---|---|
|courseId|646891c65ff2f5b8930b5329|
|userId|6468a145401d3810494f4797|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GENERATE RANDOM COURSES
### Method: GET
>```
>{{host}}/genrate-random-courses
>```
### Body (**raw**)```json
{
"userName": "Tran Nhat Sang",
"courseName": "Reactjs",
"completionDate": "01/08/2023"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GENERATE AI IMAGES
### Method: GET
>```
>{{host}}/genrate-ai-images
>```
### Body (**raw**)```json
{
"userName": "Tran Nhat Sang",
"courseName": "Reactjs",
"completionDate": "01/08/2023"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GENERATE RANDOMS COURSES
### Method: GET
>```
>{{host}}/genrate-random-courses
>```
### Body (**raw**)```json
{
"userName": "Tran Nhat Sang",
"courseName": "Reactjs",
"completionDate": "01/08/2023"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: CALL API FROM UNSPLASH
### Method: GET
>```
>{{host}}/get-unsplash-images
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GENERATE OUTLINE FROM COURSE NAME
### Method: GET
>```
>{{host}}/generate-outline-course
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: CREATE OUTLINE COURSE
### Method: POST
>```
>{{host}}/create-outline-course
>```
### Body (**raw**)```json
{
"courseId": "64c5d873c573c1ec5d4a1907"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GENERATE LESSONS OF OUTLINE
### Method: GET
>```
>{{host}}/generate-lesson-of-outline
>```
### Body (**raw**)```json
{
"courseId": "64c5d873c573c1ec5d4a1907"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: CREATE LESSON BASE ON OUTLINE COURSE
### Method: POST
>```
>{{host}}/create-lessons-of-outline-course
>```
### Body (**raw**)```json
{
"courseId": "64c5d873c573c1ec5d4a1907"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GENERATE WHOLE COURSE BY COURSE ID
### Method: GET
>```
>{{host}}/generate-whole-course
>```
### Body (**raw**)```json
{
"courseId": "64c5d873c573c1ec5d4a1907"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: CREATE WHOLE COURSE BY COURSE ID
### Method: POST
>```
>{{host}}/create-whole-course
>```
### Body (**raw**)```json
{
"courseId": "64c5d873c573c1ec5d4a1901"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET YOUTUBE VIDEOS FROM YOUTUBE API
### Method: GET
>```
>https://www.googleapis.com/youtube/v3/search?part=snippet&q="elon musk"&key="AIzaSyDCh4pDvYFVJe5Lu_DbHT_kBgrJma83FxI"&maxResults=2
>```
### Body (**raw**)```json
{
"courseId": "64c5d873c573c1ec5d4a18f5"
}
```### Query Params
|Param|value|
|---|---|
|part|snippet|
|q|"elon musk"|
|key|"AIzaSyDCh4pDvYFVJe5Lu_DbHT_kBgrJma83FxI"|
|maxResults|2|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
# π Collection: Orders## End-point: GET ORDERS
### Method: GET
>```
>{{host}}/admin/orders
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET ORDER BY ID
### Method: GET
>```
>{{host}}/admin/orders/6469cff42c2428dc06675825
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
# π Collection: Users## End-point: GET USERS
### Method: GET
>```
>{{host}}/admin/users
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: POST USER
### Method: POST
>```
>{{host}}/admin/user
>```
### Body (**raw**)```json
{
"name": "Leo Messi",
"email": "[email protected]",
"phone": "0931223521",
"role": "ADMIN"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: PUT USER - UPDATE USER
### Method: PUT
>```
>{{host}}/admin/user/6468a173401d3810494f479a
>```
### Body formdata|Param|value|Type|
|---|---|---|
|name|Sang Dev 2 updated|text|
|avatar|https://plus.unsplash.com/premium_photo-1670002383626-10c63bbe67d9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1169&q=80|text|
|phone|090919236|text|
|role|ADMIN|text|
|email|[email protected]|text|β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: GET USER BY ID
### Method: GET
>```
>{{host}}/admin/users/6468a173401d3810494f479a
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: DELETE USER (NOT TEST )
### Method: DELETE
>```
>{{host}}/admin/users/6468a173401d3810494f479a
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
# π Collection: Auth## End-point: Sign Up
### Method: PUT
>```
>{{host}}/auth/signup
>```
### Body (**raw**)```json
{
"email": "[email protected]",
"name": "Tran Nhat Sang 2",
"password": "12345678",
"role": "STUDENT",
"avatar": "https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=580&q=80",
"providerId": "local",
"fbUserId": ""
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: Login
### Method: POST
>```
>{{host}}/auth/login
>```
### Body (**raw**)```json
{
"email": "[email protected]",
"password": "123456"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: Reset Password
### Method: GET
>```
>undefined
>```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: UPDATE LAST LOGIN FOR USER
### Method: PATCH
>```
>{{host}}/auth/6468a145401d3810494f4797/last-login
>```
### Body (**raw**)```json
{
"lastLogin": "Thu Aug 10 2023 09:08:08 GMT+0700 (Giα» ΔΓ΄ng DΖ°Ζ‘ng)"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
# π Collection: Reports Center## End-point: Report Summary
### Method: GET
>```
>{{host}}/admin/reports/summary
>```
### Body (**raw**)```json
{
"email": "[email protected]",
"name": "Tran Nhat Sang 2",
"password": "12345678",
"role": "STUDENT",
"avatar": "https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=580&q=80",
"providerId": "local",
"fbUserId": ""
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: Report overview
### Method: GET
>```
>{{host}}/reports/
>```
### Body (**raw**)```json
{
"email": "[email protected]",
"password": "123456"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: Report Course Sales (30 days, 60 days, ... )
### Method: GET
>```
>{{host}}/admin/reports/course-sales
>```
### Body (**raw**)```json
{
"email": "[email protected]",
"password": "123456"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: Report revenues (30 days .... )
### Method: GET
>```
>{{host}}/admin/reports/revenues
>```
### Body (**raw**)```json
{
"email": "[email protected]",
"password": "123456"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: Report new signups
### Method: GET
>```
>{{host}}/admin/reports/new-signups
>```
### Body (**raw**)```json
{
"email": "[email protected]",
"password": "123456"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: Report for users progress
### Method: GET
>```
>{{host}}/admin/reports/users-progress
>```
### Body (**raw**)```json
{
"email": "[email protected]",
"password": "123456"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
## End-point: Report for course insights
### Method: GET
>```
>{{host}}/admin/reports/course-insights
>```
### Body (**raw**)```json
{
"email": "[email protected]",
"password": "123456"
}
```β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
_________________________________________________
Powered By: [postman-to-markdown](https://github.com/bautistaj/postman-to-markdown/)