Comments (4)
This should be possible technically already in the existing code, I think I have forgotten to wire something up here. Will investigate.
from wiretap.
after few missconfiguration from my side, i got it ... a bit working , but
this is still raising an issue
"
The POST request contains a path of 'aBasePath/ThatcanbeseveralsSegments/ranch' however that path, or the POST method for that path does not exist in the specification
How to fix this violation:
Check the path is correct, and check that the correct HTTP method has been used (e.g. GET, POST, PUT, DELETE)
"
looks still something wrong
what would be nice is
if spec define /ranch ,
if backend handle it in /basepath/ranch
i should be able to do from client something like /basepath/ranch so that it act as a transparent proxy (no custom setting on client if with or without proxy just host)
from wiretap.
checked with spectral 🥺 here i succeed to make it works , so yes would be good to have such
here is another same kind of use case / failure a bit easier i guess to set
even if traces says
INFO API Gateway is now proxying all traffic to 'http://127.0.0.1:8181/mocks/v1/api/'
i do a call on http://host/ranch ... it is proxy to http://127.0.0.1/ranch :( (ie no path added )
so there is something to do with support of
- host/abasePath / WhatIsInSpec going to targethost/abasePath/WhatisinSpec
- host/WhatisSpec going to targethost/abasePath/WhatisinSpec
using -u option
use case 2 beeing more usefull, use case 1 beeing nice to have
from wiretap.
after several round of config make my case running so my fault
from wiretap.
Related Issues (20)
- Requests checking request method type of previous request HOT 2
- Proxying different urls HOT 3
- Panic encountered making request HOT 1
- Request with query param style `deepObject` failing validation HOT 1
- Panic encountered during jsonschema validation HOT 7
- Mock response didn't return the expected example data HOT 3
- Rewriting paths leads to: unsupported protocol scheme \"\"" HOT 6
- Install not working using a Windows environment HOT 2
- wiretap fails to authenticate a operation that uses the same route but unique via a fragment
- feature request: allow configuring returned status code via header or similar
- Expected example data not returned HOT 1
- unexpected validate error when dealing with exploded query params
- panic in libopenapi when encountering json encoded path parameter HOT 1
- handle schemas with different format types when mocking/returning responses HOT 1
- feature request: support speakeasy example expansion directive
- feature request: validate request based on examples HOT 2
- request unexpectedly fails validation HOT 1
- Wiretap shows violations when response object has string as null when the open API specifies nullable: true HOT 5
- Monitor OpenAPI preview does not toggle when navigating from Violations HOT 1
- Monitor Request Body not cleared when switching to request which does not have Body HOT 3
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 wiretap.