feature: Implement user deletion.

This commit is contained in:
greysoh 2024-04-21 18:14:16 -04:00
parent 37886c769d
commit 0db9e69b1b
No known key found for this signature in database
GPG key ID: FE0F173B8FC01571
7 changed files with 95 additions and 23 deletions

View file

@ -12,7 +12,7 @@ post {
body:json {
{
"token": "134597ea81976ac0799824ea3f345cfd2e31b9febaeef10ba93817fa562862d69e88d8e3acd58ebdd1345a1fd11f38b7153c5d8516edce67aaebce55fc9cde",
"token": "5e2cb92a338a832d385790861312eb85d69f46f82317bfa984ac5e3517368ab5a827897b0f9775a9181b02fa3b9cffed7e59e5b3111d5bdc37f729156caf5f",
"name": "PortCopier Route",
"description": "This is a test route for portcopier.",
"backend": "PortCopier",

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View 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"
}
}