- Notifications
You must be signed in to change notification settings - Fork10
Refinery CMS Rest API extension
License
NotificationsYou must be signed in to change notification settings
refinerycms-contrib/refinerycms-api
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This extension allows you to use a Rest API with Refinery CMS 3.0 and later.
- Check Abilities
- Fix specs
Simply put this in the Gemfile of your Refinery application:
gem'refinerycms-api',github:'refinerycms-contrib/refinerycms-api',branch:'master'
Then runbundle install to install it.
$ rails g refinery:api# Generate initializer$ rake db:migrateThen restart your server.
$rakerefinery_api:user:api_token:generateEMAIL=refinery@example.org
$curl --header"X-Refinery-Token: YOUR_API_TOKEN"http://localhost:3000/api/v1/pages$curl --header"X-Refinery-Token: YOUR_API_TOKEN"http://localhost:3000/api/v1/pages/1$curl --header"X-Refinery-Token: YOUR_API_TOKEN"http://localhost:3000/api/v1/pages/new$curl -XPOST --header"X-Refinery-Token: YOUR_API_TOKEN""http://localhost:3000/api/v1/pages" -d'page[title]=test'$curl -XPUT --header"X-Refinery-Token: YOUR_API_TOKEN""http://localhost:3000/api/v1/pages/1" -d'page[title]=test2'$curl -XDELETE -H"X-Refinery-Token: YOUR_API_TOKEN"http://localhost:3000/api/v1/pages/1
$curl --header"X-Refinery-Token: YOUR_API_TOKEN"http://localhost:3000/api/v1/images$curl --header"X-Refinery-Token: YOUR_API_TOKEN"http://localhost:3000/api/v1/images/1$curl --header"X-Refinery-Token: YOUR_API_TOKEN"http://localhost:3000/api/v1/images/new
$curl --header"X-Refinery-Token: YOUR_API_TOKEN"http://localhost:3000/api/v1/resources$curl --header"X-Refinery-Token: YOUR_API_TOKEN"http://localhost:3000/api/v1/resources/1$curl --header"X-Refinery-Token: YOUR_API_TOKEN"http://localhost:3000/api/v1/resources/new
Please see thecontributing.md file for instructions.
About
Refinery CMS Rest API extension
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Contributors3
Uh oh!
There was an error while loading.Please reload this page.