feature: Implement user deletion.
This commit is contained in:
parent
37886c769d
commit
0db9e69b1b
7 changed files with 95 additions and 23 deletions
|
@ -12,7 +12,7 @@ post {
|
|||
|
||||
body:json {
|
||||
{
|
||||
"token": "134597ea81976ac0799824ea3f345cfd2e31b9febaeef10ba93817fa562862d69e88d8e3acd58ebdd1345a1fd11f38b7153c5d8516edce67aaebce55fc9cde",
|
||||
"token": "5e2cb92a338a832d385790861312eb85d69f46f82317bfa984ac5e3517368ab5a827897b0f9775a9181b02fa3b9cffed7e59e5b3111d5bdc37f729156caf5f",
|
||||
"name": "PortCopier Route",
|
||||
"description": "This is a test route for portcopier.",
|
||||
"backend": "PortCopier",
|
||||
|
|
|
@ -5,7 +5,7 @@ meta {
|
|||
}
|
||||
|
||||
post {
|
||||
url: http://127.0.0.1:3000/api/v1/backends/create
|
||||
url: http://127.0.0.1:3000/api/v1/forward/create
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
@ -13,11 +13,14 @@ post {
|
|||
body:json {
|
||||
{
|
||||
"token": "5e2cb92a338a832d385790861312eb85d69f46f82317bfa984ac5e3517368ab5a827897b0f9775a9181b02fa3b9cffed7e59e5b3111d5bdc37f729156caf5f",
|
||||
"name": "PortCopier Route",
|
||||
"name": "Test Route",
|
||||
"description": "This is a test route for portcopier.",
|
||||
"backend": "PortCopier",
|
||||
"connectionDetails": {
|
||||
"funny": true
|
||||
}
|
||||
|
||||
"sourceIP": "127.0.0.1",
|
||||
"sourcePort": "8000",
|
||||
|
||||
"destinationPort": "9000",
|
||||
|
||||
"providerID": "1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,13 +7,13 @@ meta {
|
|||
post {
|
||||
url: http://127.0.0.1:3000/api/v1/users/create
|
||||
body: json
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"name": "Greyson Hofer",
|
||||
"email": "me@greysoh.dev",
|
||||
"password": "password"
|
||||
"name": "Greysoh Hofuh",
|
||||
"email": "greyson@hofers.cloud",
|
||||
"password": "hunter123"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,22 +5,13 @@ meta {
|
|||
}
|
||||
|
||||
post {
|
||||
url: http://127.0.0.1:3000/api/v1/forward/create
|
||||
url: http://127.0.0.1:3000/api/v1/getPermissions
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"token": "5e2cb92a338a832d385790861312eb85d69f46f82317bfa984ac5e3517368ab5a827897b0f9775a9181b02fa3b9cffed7e59e5b3111d5bdc37f729156caf5f",
|
||||
"name": "Test Route",
|
||||
"description": "This is a test route for portcopier.",
|
||||
|
||||
"sourceIP": "127.0.0.1",
|
||||
"sourcePort": "8000",
|
||||
|
||||
"destinationPort": "9000",
|
||||
|
||||
"providerID": "1"
|
||||
"token": "5e2cb92a338a832d385790861312eb85d69f46f82317bfa984ac5e3517368ab5a827897b0f9775a9181b02fa3b9cffed7e59e5b3111d5bdc37f729156caf5f"
|
||||
}
|
||||
}
|
||||
|
|
18
routes/NextNet API/Remove User.bru
Normal file
18
routes/NextNet API/Remove User.bru
Normal file
|
@ -0,0 +1,18 @@
|
|||
meta {
|
||||
name: Remove User
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
post {
|
||||
url: http://127.0.0.1:3000/api/v1/users/remove
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"token": "5e2cb92a338a832d385790861312eb85d69f46f82317bfa984ac5e3517368ab5a827897b0f9775a9181b02fa3b9cffed7e59e5b3111d5bdc37f729156caf5f",
|
||||
"uid": "2"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue