Nodebb API development history

I am experimenting with a 'mini nodebb' javascript (only) frontend, with the idea to use an existing forum back-end database, and access it via API. I have hit a read-only wall for some things- there are many GET API calls, but not some corresponding POST actions.

So before returning to my challenge I have 2 questions:

  1. were the many APIs, in existance at the birth of Nodebb, or were they added later?

  2. Does the NodeBB code use some of these API calls itself?

0 points · 1 comments · view on lemmy.world

1 Comments

julian@community.nodebb.org · 1 pts · 3y

eeeee The Write API plugin is "v2", the built-in write API is "v3". The latter supercedes the former, so just use the built-in v3 API.

pitaj linked to the correct docs. The nomenclature is confusing, because it's less "read" and "write", and more "page" and "REST".

  • The "read api" is used by the NodeBB frontend when loading pages
  • The "write api" is preferred for server-to-server interactions