Git Product home page Git Product logo

Comments (4)

daveshanley avatar daveshanley commented on July 18, 2024

This should be possible technically already in the existing code, I think I have forgotten to wire something up here. Will investigate.

from wiretap.

LasneF avatar LasneF commented on July 18, 2024

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.

LasneF avatar LasneF commented on July 18, 2024

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

  1. host/abasePath / WhatIsInSpec going to targethost/abasePath/WhatisinSpec
  2. 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.

LasneF avatar LasneF commented on July 18, 2024

after several round of config make my case running so my fault

from wiretap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.