קטגוריות API

Is it just me or is all of the documentation either out of date or not accurate? For instance, yet another hurdle with this software is getting a basic API query to work. Here’s the docs I’m referring to and the query that returns a 500 error: http://localhost:4200/categories.json. The GET request in the docs shows this query as an example. Any thoughts on how to stop running into hurdles like every time I turn around? If people are going to use this in a production environment, we’re going to need a better way to get familiar with the software other than duck-duck-goosing through repos and pseudo-docs.

This works: https://meta.discourse.org/categories.json

What error do you see in the logs? Does your site work in a browser? If GETting /categories.json` doesn’t work then something’s wrong with your development environment, I’d guess.

We’ll need more info about what errors you see in the terminal and how you installed.

What are you trying to do?

2 לייקים

אני לא מנסה לעשות שום דבר מיוחד, רק לקרוא ל-API כפי שהוא כתוב בתיעוד דרך Postman.

לייק 1

האם אתה יכול לטעון את הדף בדפדפן שלך?
ההערכה שלי היא שזו בעיה עם Postman

לייק 1