Skip to content

Latest commit

 

History

History
121 lines (86 loc) · 1.32 KB

Endpoints.MD

File metadata and controls

121 lines (86 loc) · 1.32 KB

Documentation

Traefik-http-api

Server

GET Servers

localhost/api/v1/servers

GET Server By Name

localhost/api/v1/servers/:name

POST Create Servers

localhost/api/v1/servers
Body
{
    "name": "test",
    "host": "<http://192.168.1.32>",
    "port": 2375,
    "enable": true
}

PUT Edit Server

localhost/api/v1/servers/:id
Body
{
    "name": "test4",
    "host": "<http://192.168.1.32>",
    "port": 2375,
    "enable": true
}

DELETE Delete Server

localhost/api/v1/servers/:id
Body
{
    "name": "test4",
    "host": "<http://192.168.1.32>",
    "port": 2375,
    "enable": true
}

Docker Container

GET Containers All

localhost/api/v1/containers

GET Containers By Server

localhost/api/v1/containers/server/:name

GET Container By Id

localhost/api/v1/containers/:id
Body
{
    "name": "Servername"
}

POST Container Command

The following commands are available: start, stop, pause, unpause, and restart.

localhost/api/v1/containers/:id
Body
{
    "name": "ServerName",
    "command": "start"
}

Traefik

GET Traefik Config

localhost/api/v1/traefikconfig