Proposal:JSON-API
From MovableType
Contents |
Overview
Plugins looking to add Ajax like behavior in the application need a native javascript API to call. Right now MT does not provide a supported JSON API to call. This project would define that API and document it.
Use Cases
- The internal app could use this framework for creating richer user experiences for file uploads
- Plugin providers, like Zemanta, could use this to interact with MT's backend via javascript as opposed to Perl
Benefits
- Plugin developers would not need to rely on Perl knowledge alone, but could develop plugins in that are very javascript heavy. In other words: open up MT as a platform for javascript developers.
- Opens doors for more compelling and innovative plugins.
Proposal
Implement mt-json.cgi which speak JSON exclusively. The following operations should be supported:
Note: an asterix indicates the standard set of CRUD operations.
- entry.*
- asset.edit
- asset.upload
- asset.delete
- asset.list
- asset.create_from_url - input a url, have MT download it and make an asset out of it (requestor: Zemanta)
- category.*
- <object_type>.*