@pitaj Yes

Latest posts made by venkAT
-
Any api to get list of categories based on group
@baris
In nodebb privileges section we can add the group for a particular categoryso, Is there any api to get those category list which is having a particular group.
Example:
I created a group calledcategory_owner
and under privileges section, I added this group for some categories and gave some privileges.Now I want that category list which is having that group
category_owner
.How can I get that list?
is there any api to get those list?Thanks.
-
Any api to get all categories based on group
In nodebb privileges section we can add the group for a particular category
so, Is there any api to get those category list which is having a particular group.
-
Topic viewcount always increasing for every read call
Here
I am calling this api (topic details api)http://localhost:4567/api/topic/{topic_id}/{topic_slug}
from my proxy and it will always increases the viewcount.Example:
app.get('/check', (req,res)=> { const options = { url: 'http://localhost:4567/api/topic/11/testCount', method: 'GET', json: true }; request(options, (error, response, body) => { res.send(body) }) })
this is my CUrl
curl --location --request GET 'http://localhost:3002/check' \ --header 'Authorization: Bearer 5e8db636-89ec-41ea-9cf9-8309297f8ac4'
How can I get the correct viewcount.?
can anyone help on this? -
RE: Couldn't set default admin username and password in config.json
@PitaJ @vinu
I am using the above command what you mention in the post for nodebb setupnode app --setup="{\"url\":\"http://0.0.0.0:4567\",\"secret\":\"123456-eb70-4605-kkerg-720752bc4aca\",\"admin:username\":\"venkat\",\"admin:password\":\"Test@123\",\"admin:password:confirm\":\"Test@123\",\"admin:email\":\"venkat@test.com\",\"database\":\"mongo\",\"mongo\":{\"host\":\"127.0.0.1\",\"port\":\"27017\",\"username\":\"\",\"password\":\"\",\"database\":\"nodebb\"}}"
but I am unable perform login what ever the login details adding in the json string. It is always giving invalid credentials.
can you help me on that -
How to setup admin user in config.json in nodebb
For build promotions we have to auto create the admin account from Jenkins or some environment variable
can we use config.json to setup admin accountplease guide us, How can we use the below command.
./nodebb setup [options] [config]We refer the below link but not successed:
https://community.nodebb.org/topic/14068/setting-up-nodebb-for-ci-cd-pipeline