You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,27 @@
2
2
3
3
# ember-cli-deploy-rest
4
4
5
-
An ember-cli-deploy plugin to upload index.html files to a REST API. This is useful if you wrap your Ember app in a traditional web app, such as Rails.
5
+
A modified ember-cli-deploy plugin to upload index.html files to a REST API. This is useful if you wrap your Ember app in a traditional web app, such as Rails.
6
6
7
7
## API requirements
8
8
9
-
Your REST API should follow the spec below. Note that the base URL is configurable; for these examples we assume it's `https://yourapp.com/ember-revisions`.
9
+
Your REST API should follow the spec below. Note that the base URL is configurable.
10
+
11
+
The original implementation assumes an example base URL of `https://yourapp.com/ember-revisions`.
10
12
11
13
- Authenticate with basic auth (please use HTTPS!)
12
14
-`GET /ember-revisions`: returns a JSON array of objects for the stored revisions. Fields are `id` (revision key), `created_at` (upload timestamp), `revision_data` (usually contains revision metadata) and `current` (boolean)
13
15
-`POST /ember-revisions`: expects a JSON body with fields `id` (revision key) and `body` (the index.html contents)
14
16
-`PUT /ember-revisions/<id>`: activates the revision with key `id`
15
17
18
+
Our Customer.io implementation has slightly different endpoints and parameters.
19
+
20
+
- Authenticate with basic auth (please use HTTPS!), utilizing the prefix `Bearer`
21
+
-`GET /`: returns a JSON array of objects for all apps (ONLY ON HYDRA, NOT SERVICES)
22
+
-`GET /<app_name>`: returns a JSON array of objects for the specified app
23
+
-`POST /<app_name>`: expects a JSON body with the fields `version` (revision key) and `body` (the index.html contents)
24
+
-`PUT /<app_name>/<version>/activate`: activates the specified app with the specified version
0 commit comments