2 fplanque Nov 24, 2015 04:42

| CARVIEW |
Due to demand from several users and clients, we are starting to implement a RESTful API.
Manual page: https://b2evolution.net/man/rest-api
Naturally the first calls we are implementing are:
GET <baseurl>/api/v1/collections/<collname>/posts
GET <baseurl>/api/v1/collections/<collname>/posts/<id>
There will be 100+ different calls available in the end.
But if you have specific needs or specific use cases in mind, please let us know early so we can prioritize the calls you need in our implementation.


Definitely curious, though I'm quite sure my skillset will require an update too

We made a lot of progress. (https://b2evolution.net/man/rest-api)
This will likely be released in v6.7 along with a lot of other long overdue feature requests.

We also have a custom sort of API for all the AJAX calls in b2evolution (autocomplete, etc.)
This will also all be standardized to REST.
Is this just for AJAX or will it be a sort of alternative to XML-RPC?

It is a cleanup of Ajax and an alternative to XML-RPC.
Progressively, anything b2evolution can do will be controllable through the REST API.

It's great!
Very useful.

@fplanque how to add posts by restful api ,i can't find the api ,only the method blogger.newPost, i want add a post to B2 from other system .
how to use the restful api ?

@zxchen oh I think we need to add an API endpoint for adding posts.
How much do you need? Just add a post with text or also custom fields and file attachments?
Coming next: