updated the course index part
This commit is contained in:
22
One & All/course/Create Item.bru
Normal file
22
One & All/course/Create Item.bru
Normal file
@@ -0,0 +1,22 @@
|
||||
meta {
|
||||
name: Create Item
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/api/v1/course/
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"title": "",
|
||||
"sort_description": "",
|
||||
"long_description": "",
|
||||
"information": "",
|
||||
"contant": "",
|
||||
"remark": ""
|
||||
}
|
||||
}
|
15
One & All/course/Delete Course.bru
Normal file
15
One & All/course/Delete Course.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Delete Course
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{baseUrl}}/api/v1/course/:id
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
params:path {
|
||||
id:
|
||||
}
|
15
One & All/course/Read Course.bru
Normal file
15
One & All/course/Read Course.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Read Course
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/api/v1/course/:id
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
params:path {
|
||||
id:
|
||||
}
|
16
One & All/course/Read Courses.bru
Normal file
16
One & All/course/Read Courses.bru
Normal file
@@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: Read Courses
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/api/v1/course/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
params:query {
|
||||
~skip:
|
||||
~limit:
|
||||
}
|
26
One & All/course/Update Course.bru
Normal file
26
One & All/course/Update Course.bru
Normal file
@@ -0,0 +1,26 @@
|
||||
meta {
|
||||
name: Update Course
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{baseUrl}}/api/v1/course/:id
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
params:path {
|
||||
id:
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"title": "",
|
||||
"sort_description": "",
|
||||
"long_description": "",
|
||||
"information": "",
|
||||
"contant": "",
|
||||
"remark": ""
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user