Como buscar grupos de tags sem fazer login?

http://localhost:9292/tag_groups.json

Ao usar a URL acima, consigo obter todos os dados dos grupos de tags, mas quando faço a mesma requisição no modo anônimo do navegador, recebo o erro: “No route matches [GET] "/tag_groups.json"”.

Como posso buscar as informações dos grupos de tags usando a URL acima sem estar logado?

2 curtidas

You will need to make an authenticated API request. Have a look at the Authentication section of https://docs.discourse.org/ for details about how to do that.

2 curtidas

If Simon’s answer isn’t the one you’re looking for, it might help for you to back up and describe your problem (why do you need to get the tag groups?) rather than your proposed solution to it.

i have written one plugin which shows tag group name before each tag name. so these changes have to be displayed without log in.

Este tópico foi fechado automaticamente após 12 dias. Novas respostas não são mais permitidas.