feature: Adds removing API.

This commit is contained in:
greysoh 2024-04-22 11:03:51 -04:00
parent 68b5a9ff77
commit 2ae917acd9
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
13 changed files with 165 additions and 8 deletions

View file

@ -0,0 +1,23 @@
meta {
name: Remove Backend
type: http
seq: 2
}
post {
url: http://127.0.0.1:3000/api/v1/backends/create
body: json
auth: none
}
body:json {
{
"token": "f1b89cc337073476289ade17ffbe7a6419b4bd52aa7ede26114bffd76fa263b5cb1bcaf389462e1d9e7acb7f4b6a7c28152a9cc9af83e3ec862f1892b1",
"name": "PortCopier Route",
"description": "This is a test route for portcopier.",
"backend": "PortCopier",
"connectionDetails": {
"funny": true
}
}
}

View file

@ -1,7 +1,7 @@
meta {
name: Create Forward
type: http
seq: 4
seq: 1
}
post {

View file

@ -0,0 +1,26 @@
meta {
name: Remove Forward
type: http
seq: 2
}
post {
url: http://127.0.0.1:3000/api/v1/forward/create
body: json
auth: none
}
body:json {
{
"token": "f1b89cc337073476289ade17ffbe7a6419b4bd52aa7ede26114bffd76fa263b5cb1bcaf389462e1d9e7acb7f4b6a7c28152a9cc9af83e3ec862f1892b1",
"name": "Test Route",
"description": "This is a test route for portcopier.",
"sourceIP": "127.0.0.1",
"sourcePort": "8000",
"destinationPort": "9000",
"providerID": "1"
}
}

View file

@ -1,7 +1,7 @@
meta {
name: Get Permissions
type: http
seq: 5
seq: 1
}
post {

View file

@ -1,7 +1,7 @@
meta {
name: Log In User
type: http
seq: 1
seq: 2
}
post {

View file

@ -1,7 +1,7 @@
meta {
name: Lookup User
type: http
seq: 7
seq: 4
}
post {

View file

@ -1,7 +1,7 @@
meta {
name: Remove User
type: http
seq: 6
seq: 3
}
post {