Permalink
Browse files

API definition fixes

  • Loading branch information...
hypatia2 committed Aug 18, 2015
1 parent ad27420 commit 29d429202b60de0e3f5871424ea9c300f27835de
Showing with 12 additions and 8 deletions.
  1. +11 −7 API.md
  2. +1 −1 fruho/main.tcl
18 API.md
@@ -1,10 +1,14 @@
## FBAPI - Fruho Backend API
/check-for-updates
/ip
/dns-resolve
...
GET /check-for-updates
GET /ip
GET /dnscache
GET /loc
POST /loc
GET /now
GET /welcome
## VPAPI - VPN Provider API
@@ -13,12 +17,12 @@ This is the API defined and used by the Fruho program to import VPN configuratio
All calls must be HTTPS with username and password passed via Basic Authentication
GET /api/config
GET /vpapi/config
Result: config.ovpn with inline CA and optionally KEY and CERT
GET /api/plans
GET /vpapi/plans
Result: JSON plan description with server list
POST /api/cert
POST /vpapi/cert
Input: CSR or PUBKEY posted in body request
Result: signed CRT
@@ -783,7 +783,7 @@ proc vpapi-cert-direct {profilename host port urlpath username password} {
}
<- $cherr {
set err [<- $cherr]
puts stderr [log vpapi-config-direct failed with error: $err]
puts stderr [log vpapi-cert-direct failed with error: $err]
# will return http response code
set httpcode $err
# Never call return from select condition

0 comments on commit 29d4292

Please sign in to comment.