updated the course index part
This commit is contained in:
21
One & All/users/Create User.bru
Normal file
21
One & All/users/Create User.bru
Normal file
@@ -0,0 +1,21 @@
|
||||
meta {
|
||||
name: Create User
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/api/v1/users/
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"email": "",
|
||||
"is_active": "",
|
||||
"is_superuser": "",
|
||||
"full_name": "",
|
||||
"password": ""
|
||||
}
|
||||
}
|
11
One & All/users/Delete User Me.bru
Normal file
11
One & All/users/Delete User Me.bru
Normal file
@@ -0,0 +1,11 @@
|
||||
meta {
|
||||
name: Delete User Me
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{baseUrl}}/api/v1/users/me
|
||||
body: none
|
||||
auth: none
|
||||
}
|
15
One & All/users/Delete User.bru
Normal file
15
One & All/users/Delete User.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Delete User
|
||||
type: http
|
||||
seq: 10
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{baseUrl}}/api/v1/users/:user_id
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
params:path {
|
||||
user_id:
|
||||
}
|
15
One & All/users/Read User By Id.bru
Normal file
15
One & All/users/Read User By Id.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Read User By Id
|
||||
type: http
|
||||
seq: 8
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/api/v1/users/:user_id
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
params:path {
|
||||
user_id:
|
||||
}
|
11
One & All/users/Read User Me.bru
Normal file
11
One & All/users/Read User Me.bru
Normal file
@@ -0,0 +1,11 @@
|
||||
meta {
|
||||
name: Read User Me
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/api/v1/users/me
|
||||
body: none
|
||||
auth: none
|
||||
}
|
16
One & All/users/Read Users.bru
Normal file
16
One & All/users/Read Users.bru
Normal file
@@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: Read Users
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/api/v1/users/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
params:query {
|
||||
~skip:
|
||||
~limit:
|
||||
}
|
19
One & All/users/Register User.bru
Normal file
19
One & All/users/Register User.bru
Normal file
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: Register User
|
||||
type: http
|
||||
seq: 7
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/api/v1/users/signup
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"email": "",
|
||||
"password": "",
|
||||
"full_name": ""
|
||||
}
|
||||
}
|
18
One & All/users/Update Password Me.bru
Normal file
18
One & All/users/Update Password Me.bru
Normal file
@@ -0,0 +1,18 @@
|
||||
meta {
|
||||
name: Update Password Me
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
patch {
|
||||
url: {{baseUrl}}/api/v1/users/me/password
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"current_password": "",
|
||||
"new_password": ""
|
||||
}
|
||||
}
|
18
One & All/users/Update User Me.bru
Normal file
18
One & All/users/Update User Me.bru
Normal file
@@ -0,0 +1,18 @@
|
||||
meta {
|
||||
name: Update User Me
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
patch {
|
||||
url: {{baseUrl}}/api/v1/users/me
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"full_name": "",
|
||||
"email": ""
|
||||
}
|
||||
}
|
25
One & All/users/Update User.bru
Normal file
25
One & All/users/Update User.bru
Normal file
@@ -0,0 +1,25 @@
|
||||
meta {
|
||||
name: Update User
|
||||
type: http
|
||||
seq: 9
|
||||
}
|
||||
|
||||
patch {
|
||||
url: {{baseUrl}}/api/v1/users/:user_id
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
params:path {
|
||||
user_id:
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"email": "",
|
||||
"is_active": "",
|
||||
"is_superuser": "",
|
||||
"full_name": "",
|
||||
"password": ""
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user