feature: Adds removing API.
This commit is contained in:
parent
68b5a9ff77
commit
2ae917acd9
13 changed files with 165 additions and 8 deletions
23
routes/NextNet API/Backend API/Remove Backend.bru
Normal file
23
routes/NextNet API/Backend API/Remove Backend.bru
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
meta {
|
||||
name: Create Forward
|
||||
type: http
|
||||
seq: 4
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
26
routes/NextNet API/Forward API/Remove Forward.bru
Normal file
26
routes/NextNet API/Forward API/Remove Forward.bru
Normal 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"
|
||||
}
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
meta {
|
||||
name: Get Permissions
|
||||
type: http
|
||||
seq: 5
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
meta {
|
||||
name: Log In User
|
||||
type: http
|
||||
seq: 1
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
|
@ -1,7 +1,7 @@
|
|||
meta {
|
||||
name: Lookup User
|
||||
type: http
|
||||
seq: 7
|
||||
seq: 4
|
||||
}
|
||||
|
||||
post {
|
|
@ -1,7 +1,7 @@
|
|||
meta {
|
||||
name: Remove User
|
||||
type: http
|
||||
seq: 6
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
Loading…
Add table
Add a link
Reference in a new issue