Hi,
To initiate a project, I've downloaded the Swagger UI and created the following resource files:
localhost/docs/api/api-docs.json
{
"apiVersion": "0.1",
"swaggerVersion": "1.2",
"apis": [
{
"path": "/categories",
"description": "Operations about categories"
}
]
}
localhost/docs/api/categories.json
{
"apiVersion": "0.1",
"swaggerVersion": "1.2",
"resourcePath": "/categories",
"apis": [
{
"path": "/categories",
"description": "Operations about categories",
"operations": [
{
"method": "GET",
"nickname": "categoriesIndex",
"parameters": [],
"summary": "List all categories of store",
"notes": "All categories that you have added in administrative area will be displayed",
"responseMessages": [],
}
]
}
]
}
Apparently, my specs files are right. On Chrome, UI stops in "fetching resource list" message, and this error in developers console: "Uncaught SyntaxError: Unexpected token"

Network tab:

Am I missing something? What i'm doing wrong?