Come recuperare i gruppi di tag senza effettuare l'accesso?

http://localhost:9292/tag_groups.json

Utilizzando l’URL sopra indicato riesco a ottenere tutti i dati dei gruppi di tag, ma quando provo a chiamare lo stesso URL in modalità privata del browser, ottengo l’errore “No route matches [GET] “/tag_groups.json””.

Come posso recuperare le informazioni sui gruppi di tag utilizzando l’URL sopra senza essere loggato?

2 Mi Piace

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 Mi Piace

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.

Questo argomento è stato chiuso automaticamente dopo 12 giorni. Non sono più consentite nuove risposte.