From 277a96a33e30307b89234c97645ac75fe838d502 Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 22 May 2015 15:05:20 -0700 Subject: modified bonafide.text to reflect reality --- pages/docs/design/bonafide.text | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'pages/docs/design') diff --git a/pages/docs/design/bonafide.text b/pages/docs/design/bonafide.text index 1db2311..27f5588 100644 --- a/pages/docs/design/bonafide.text +++ b/pages/docs/design/bonafide.text @@ -53,23 +53,15 @@ TODO: define a schema for this file. h3. GET API_BASE/configs.json -For each supported service code, `configs.json` lists the available configuration file (there might be more than one for a particular service if there are different formats available). The service codes are listed in "services" in `provider.json`. A provider can use whatever service codes they want, but the user agent will only respond to the ones that it understands. +For each supported service code, `configs.json` lists the available configuration file. The service codes are listed in "services" in `provider.json`. A provider can use whatever service codes they want, but the user agent will only respond to the ones that it understands. For example: bc.. { - "openvpn": { - "formats": ["1", "2"], - "1": "eip-service.json", - "2": "eip-service-2.json" - }, - "soledad": { - "formats": ["1"], - "1": "soledad-service.json" - }, - "mx": { - "formats": ["1"], - "1": "smtp-service.json" + "services":{ + "soledad":"/1/configs/soledad-service.json", + "eip":"/1/configs/eip-service.json", + "smtp":"/1/configs/smtp-service.json" } } @@ -77,7 +69,7 @@ h3. GET API_BASE/config/eip-service.json e.g. https://api.bitmask.net:4430/1/config/eip-service.json -This file defines the "encrypted internet proxy" capabilities and gateways. +This file defines the "encrypted internet proxy" capabilities and gateways. The actual URL that should be used to fetch this is specified in the response from @/1/configs.json@. h2. Keys -- cgit v1.2.3