I have the write api plugin installed as well as the question and answer plugin. We are successfully creating topics and posts. Is it possible to create a topic as a question? I tried adding isQuestion (equals 1) to the POST body when creating the topic but it was ignored. Would the write-api have to be forked and updated to support the optional value of isQuestion? It seems clear in the question and answer plugin that it doesn't create/expose any write api of its own.
Posts made by daniel.nalbach
use write api with q&a plugin to create a topic as a question?
RE: API to retrieve array of Topic IDs?
I already have the array of topic IDs. I want to retrieve all of those topics by their IDs.
My current solution is to just loop through the array and do a fetch on the api for each ID individually, and then use a Promise.all to return the finished batch to my client middleware. Making separate http requests for each one is less desirable though, and I would prefer to get them all in a single fetch if possible.
API to retrieve array of Topic IDs?
We are integrating parts of NodeBB into an internal application and will be managing a metadata recordset that ties topics in NodeBB to a type of record in our application. Our record could have multiple topics associated with it. We are successfully pulling back a single topic by id via the API using:
I would like to retrieve an array of topic ids from the NodeBB API in a single call, but am not seeing how to do that. Is there an API to get multiple topics?