This adds the backend API, as well as backend infrastructure, including autostarting and basic communication between the Goroutine + Application.
25 lines
507 B
Text
25 lines
507 B
Text
meta {
|
|
name: Create
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
post {
|
|
url: http://127.0.0.1:8000/api/v1/backends/create
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiMSJdLCJleHAiOjE3MzUwNjY1NjksIm5iZiI6MTczNDk4MDE2OSwiaWF0IjoxNzM0OTgwMTY5fQ.-9IiM8N-azqBLwrAJkKqIzZ6yuumEzErKzSefXWpzaQ",
|
|
"name": "SSH",
|
|
"backend": "ssh",
|
|
"connectionDetails": {
|
|
"ip": "127.0.0.1",
|
|
"port": 22,
|
|
"username": "test",
|
|
"privateKey": ""
|
|
}
|
|
}
|
|
}
|