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?

  • julian@community.nodebb.org
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    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