Golang API for Octopress. This allows you to control your Octopress instance(s) with a REST-ful API.
Usage of ./octopress-api:
-bind=":8888": Port/IP for binding interface
-git="git": Executable for git command
-mime="application/json": MIME type for JSON responses
-password="password": Password for BASIC auth
-rake="rake": Executable for rake command
-username="admin": Username for BASIC auth
Paths to Octopress sites should be given as additional parameters. If no sites are specified, the service will not run.
Please note that this is a work in progress, until a stable version has been reached. If you're planning on building a client based on this, please contact @jbuchbinder before you start. ;)
Returns information about the version of both the software and the current API version.
Returns a list of all available Octopress sites.
Issues a git "commit" request for the specified site. SITE is the "name" parameter of a site, which is also the map key, returned by the /api/VERSION/sites call.
Issues a generate/deploy request for the specified site. SITE is the "name" parameter of a site, which is also the map key, returned by the /api/VERSION/sites call.
Lists all post categories for the specified Octopress site.
Lists all posts and meta information for the specified Octopress site.
Gets a copy of the specified post.
Issues a new_post request, and returns both the filename and post file text.
Updates a post, based on the post slug, with the post body data.
A basic UI is provided. Accessing the root URL of the server will redirect to the basic UI.
go get -d
go build
See TODO.
BSD