Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ghedamat/ember-deploy-rest-api
Am ember-cli-deploy index adapter that works with a HTTP API.
https://github.com/ghedamat/ember-deploy-rest-api
Last synced: 15 days ago
JSON representation
Am ember-cli-deploy index adapter that works with a HTTP API.
- Host: GitHub
- URL: https://github.com/ghedamat/ember-deploy-rest-api
- Owner: ghedamat
- License: mit
- Created: 2015-12-03T03:43:59.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-03T03:44:22.000Z (about 9 years ago)
- Last Synced: 2024-10-28T17:17:05.056Z (about 2 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Ember-deploy-rest-api
This is the adapter implementation to use
[ember-deploy](https://github.com/levelbossmike/ember-deploy) with a JSON REST API.# Configuration
In your _deploy.js_ add the following:
store: {
type: 'rest-api',
authHeader: 'Token 123', // optional, will be added to all api calls
baseUrl: 'http://www.example.com/assets/' // url of the api
}# API
The api is expected to work like this:
## Create a revision
PUT /:asset-key/revisions/:revision-key {"value": "html body of the revision"}
Returns 204 code and empty response.
## Activate a revision
PUT :/asset-key {"revision": ""}
Returns 204 code and empty response.
## List revisions
GET /:asset-key/revisions
Returns JSON:
['version1', 'version2']