Skip to content

Instantly share code, notes, and snippets.

@kslr
Last active September 13, 2021 17:06
Show Gist options
  • Select an option

  • Save kslr/2ff9b0222ef645ca47b26fe54084d5bc to your computer and use it in GitHub Desktop.

Select an option

Save kslr/2ff9b0222ef645ca47b26fe54084d5bc to your computer and use it in GitHub Desktop.

Revisions

  1. kslr revised this gist Sep 13, 2021. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion api.md
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,5 @@ GET /ping
    GET /inbounds/{tag}/stats
    GET /outbounds/{tag}/stats
    GET /system/stats
    GET /version
    ```
  2. kslr revised this gist Sep 12, 2021. 1 changed file with 2 additions and 10 deletions.
    12 changes: 2 additions & 10 deletions api.md
    Original file line number Diff line number Diff line change
    @@ -1,16 +1,8 @@
    ```
    GET /ping
    GET, POST /tags
    PUT, DELETE /tags/{tag_name}
    GET, POST /tags/{tag_name}/users
    PUT, DELETE /tags/{tag_name}/users/{uuid or id}
    GET, DELETE /tags/{tag_name}/stats
    GET, DELETE /tags/{tag_name}/users/{uuid or id}/stats
    POST /logger/reboot
    GET /inbounds/{tag}/stats
    GET /outbounds/{tag}/stats
    GET /system/stats
    GET /version
  3. kslr revised this gist Sep 12, 2021. 1 changed file with 4 additions and 36 deletions.
    40 changes: 4 additions & 36 deletions api.md
    Original file line number Diff line number Diff line change
    @@ -1,49 +1,17 @@
    ```
    Header:
    Authorization: Bearer <token>
    GET /ping
    Response:
    {
    "message": "pong"
    }
    GET /stats/[email protected]
    GET /stats/user?uuid=d248b27b-508e-4f25-8cd4-0c53f8b39708
    Response:
    {
    "uplink": 1,
    "downlink": 1,
    }
    GET /stats?tag=a
    Response:
    {
    "inbound: {
    "uplink": 1,
    "downlink": 2,
    },
    "outbound": {
    "uplink": 1,
    "downlink": 2,
    }
    }
    POST /logger/reboot
    GET /ping
    GET, POST /tags
    PUT, DELETE /tags/{tag_name}
    GET, POST /tags/{tag_name}/user
    PUT, DELETE /tags/{tag_name}/user/{uuid or id}
    GET, POST /tags/{tag_name}/users
    PUT, DELETE /tags/{tag_name}/users/{uuid or id}
    GET, DELETE /tags/{tag_name}/stats
    GET, DELETE /tags/{tag_name}/user/{uuid or id}/stats
    GET, DELETE /tags/{tag_name}/users/{uuid or id}/stats
    POST /logger/reboot
    GET /system/stats
    GET /version
    ```
  4. kslr revised this gist Sep 9, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions api.md
    Original file line number Diff line number Diff line change
    @@ -45,4 +45,5 @@ GET, DELETE /tags/{tag_name}/user/{uuid or id}/stats
    POST /logger/reboot
    GET /system/stats
    ```
  5. kslr revised this gist Sep 9, 2021. 1 changed file with 14 additions and 1 deletion.
    15 changes: 14 additions & 1 deletion api.md
    Original file line number Diff line number Diff line change
    @@ -31,5 +31,18 @@ Response:
    POST /logger/reboot
    ```
    GET /ping
    GET, POST /tags
    PUT, DELETE /tags/{tag_name}
    GET, POST /tags/{tag_name}/user
    PUT, DELETE /tags/{tag_name}/user/{uuid or id}
    GET, DELETE /tags/{tag_name}/stats
    GET, DELETE /tags/{tag_name}/user/{uuid or id}/stats
    POST /logger/reboot
    ```
  6. kslr revised this gist Sep 5, 2021. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions api.md
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,12 @@
    Header:
    Authorization: Bearer <token>
    GET /ping
    Response:
    {
    "message": "pong"
    }
    GET /stats/[email protected]
    GET /stats/user?uuid=d248b27b-508e-4f25-8cd4-0c53f8b39708
    Response:
  7. kslr revised this gist Sep 5, 2021. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions api.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,7 @@
    ```
    Header:
    Authorization: Bearer <token>
    GET /stats/[email protected]
    GET /stats/user?uuid=d248b27b-508e-4f25-8cd4-0c53f8b39708
    Response:
  8. kslr revised this gist Sep 5, 2021. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion api.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ Response:
    "downlink": 1,
    }
    GET /status?tag=a
    GET /stats?tag=a
    Response:
    {
    "inbound: {
    @@ -20,3 +20,7 @@ Response:
    }
    }
    POST /logger/reboot
    ```

  9. kslr revised this gist Sep 5, 2021. 1 changed file with 15 additions and 3 deletions.
    18 changes: 15 additions & 3 deletions api.md
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,20 @@ GET /stats/[email protected]
    GET /stats/user?uuid=d248b27b-508e-4f25-8cd4-0c53f8b39708
    Response:
    {
    "uplink": 1,
    "downlink": 1,
    "uplink": 1,
    "downlink": 1,
    }
    GET /status?tag=a
    Response:
    {
    "inbound: {
    "uplink": 1,
    "downlink": 2,
    },
    "outbound": {
    "uplink": 1,
    "downlink": 2,
    }
    }
    GET /status
  10. kslr revised this gist Sep 5, 2021. 1 changed file with 7 additions and 3 deletions.
    10 changes: 7 additions & 3 deletions api.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,10 @@
    ```
    GET /stats/[email protected]
    GET /stats/user?uuid=d248b27b-508e-4f25-8cd4-0c53f8b39708
    GET /stats/user?uuid=d248b27b-508e-4f25-8cd4-0c53f8b39708
    Response:
    {
    "uplink": 1,
    "downlink": 1,
    }
    GET /status
  11. kslr revised this gist Sep 5, 2021. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions api.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    ```xsdsdsd\
    ```
    GET /stats/[email protected]
    GET /stats/user?uuid=d248b27b-508e-4f25-8cd4-0c53f8b39708
    sdsdsds
  12. kslr created this gist Sep 5, 2021.
    5 changes: 5 additions & 0 deletions api.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    ```xsdsdsd\
    sdsdsds