-
Notifications
You must be signed in to change notification settings - Fork 46
EngineY RESTful API
timothyf edited this page Sep 13, 2010
·
16 revisions
EngineY includes a REST based API that lets you programmaticly access most of the content of your site. You can find examples of how to use the API by looking at the API tests that are in the /test/integration/api directory.
Get All Blog Posts
GET /blog_posts.json&api_key=YOUR_API_KEY
Get a Blog Post
GET /blog_posts/1.json&api_key=YOUR_API_KEY
Create a Blog Post
POST /blog_posts.json", :api_key => YOUR_API_KEY,
:blog_post => {:title => ‘API Test Post’,
:body => ‘API Test Body’,
:published => true,
:summary => ‘Blog Post Summary’ }
Update a Blog Post
PUT “/blog_posts/1.json”, :api_key => YOUR_API_KEY,
:blog_post => {:title => ‘API Test Post’,
:body => ‘API Test Body’,
:published => true,
:summary => ‘Blog Post Summary’ }