Comments (6)
Hi @sameer-coder, thank you for reporting this.
There is improved handling of regex routes in Lambda in v3.31.1. Please could you let us know if this resolves the issue?
from imposter.
Hello,
Thanks for the update. I no longer get a 500 error but now I am facing the same problem mentioned in this open issue
At the moment, Imposter serves the swagger UI at https://domain.com/_spec
. But this path is unreachable because of the way routing is setup in API Gateway. The API Gateway only forwards requests to imposter which match a pattern (example- https://domain.com/api/v1)
The endpoints in the OpenAPI spec still work fine because I can specify /api/v1
as the basePath
in the imposter config as well as the OpenAPI spec. Imposter handles this perfectly.
Probably we could add an env var to set a basePath
for Swagger UI so that the url becomes https://domain.com/<basePath>/_spec
Thanks for the help!
from imposter.
Hi @sameer-coder, there were some further fixes required to static asset handling in Lambda to get this working.
These are released in v3.31.2.
from imposter.
Thanks @outofcoffee
I will deploy again and report back on the issue
from imposter.
Hi @sameer-coder, from v3.32.0 you can set the environment variable IMPOSTER_OPENAPI_SPEC_PATH_PREFIX
, to override the default /_spec
prefix.
For example:
IMPOSTER_OPENAPI_SPEC_PATH_PREFIX="/api/core-mock/v1/_spec"
...will make the spec UI accessible at http://localhost:8080/api/core-mock/v1/_spec/
from imposter.
Amazing! Thank you 🙏
from imposter.
Related Issues (20)
- Precompiling js script files fails from docker container HOT 6
- SOAP : WSDL with includes fails parsing HOT 1
- Autoreload when using docker and config files change HOT 2
- Support for RPC style SOAP services HOT 2
- Support XML attributes in SOAP request body XPath
- Unable to format data from store as JSON in javascript script handler HOT 10
- SQS plugin
- Scheduled steps
- SOAP: WSDL with targetNamespace and messages without namespace prefix parsing issue
- Plugin index file
- imposter-3.22.0.jar - REST request with content-type=multipart/form-data - how to access the parts ? Groovy script returns null body HOT 1
- Unable to match multiple values in request body using XPath in SOAP plugin HOT 2
- "Docker Official Image" on docker hub
- [QUESTION] Configuration example for providing security config for individual plugins and swagger UI
- Trivy reports lots of vulnerabilities
- Possibility to configure list params
- Nashorn Load no longer working with Graal HOT 2
- Enforce client version through User-Agent header
- [Bug] Path parameters with colon throws Vertx error
- OpenAPI path prefix isn't prefixed onto resources
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imposter.