Skip to content

Api Explorer not working after setting up loopback as a route via express  #2548

@zkrami

Description

@zkrami

Description / Steps to reproduce / Feature proposal

I followed the instruction to create Express application with loopback as follows as in this tutorial
Creating an Express Application with LoopBack
If I opened the explorer under /api/explorer , the page is rendering just fine , but no request would work.
The reason behind this is the routes in openapi.json are missing /api
E.g:
the route in openapi.json is Get /books but it should be /api/books
how can I setup openapi to prefix every route with /api ?
Thank you.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions