Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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']