Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path parameter #59

Closed
malud opened this issue Oct 26, 2020 · 0 comments · Fixed by #55
Closed

Path parameter #59

malud opened this issue Oct 26, 2020 · 0 comments · Fixed by #55
Assignees
Labels
enhancement New feature or request theme/config

Comments

@malud
Copy link
Collaborator

malud commented Oct 26, 2020

Supporting user defined path parameter in couper is crucial. An example would look like this:

endpoint "/my/{category}/{sub}/list" {
    backend {
        path = "/cms/${req.path_param.category}/order/${req.path_param.sub}/list"
        # or
        request_headers {
            x-cat: req.path_param.category
            x-sub-cat: req.path_param.sub
        }
    }
}

Since some other packages has already solved some related details we would like to use this pathpattern module. This could be handy in combination with our openapi validation poc #21 later on.

So the main task is to replace our current http multiplexer and routing which additionally will simplify some implementation details.

@malud malud added enhancement New feature or request theme/config labels Oct 26, 2020
@malud malud self-assigned this Oct 26, 2020
@malud malud linked a pull request Oct 26, 2020 that will close this issue
malud pushed a commit that referenced this issue Oct 26, 2020
malud pushed a commit that referenced this issue Oct 26, 2020
malud pushed a commit that referenced this issue Oct 26, 2020
malud pushed a commit that referenced this issue Oct 26, 2020
Fix usage of settings.default_port
malud pushed a commit that referenced this issue Oct 26, 2020
malud pushed a commit that referenced this issue Oct 26, 2020
Mux knows about the fileBasePath
malud pushed a commit that referenced this issue Oct 26, 2020
malud pushed a commit that referenced this issue Oct 26, 2020
malud pushed a commit that referenced this issue Oct 26, 2020
malud pushed a commit that referenced this issue Oct 26, 2020
malud pushed a commit that referenced this issue Oct 26, 2020
malud pushed a commit that referenced this issue Oct 26, 2020
malud pushed a commit that referenced this issue Oct 26, 2020
Fix usage of settings.default_port
malud pushed a commit that referenced this issue Oct 26, 2020
malud pushed a commit that referenced this issue Oct 26, 2020
Mux knows about the fileBasePath
malud pushed a commit that referenced this issue Oct 26, 2020
malud pushed a commit that referenced this issue Oct 26, 2020
malud pushed a commit that referenced this issue Oct 26, 2020
e.g. tests
malud pushed a commit that referenced this issue Oct 26, 2020
malud pushed a commit that referenced this issue Oct 26, 2020
malud pushed a commit that referenced this issue Oct 26, 2020
malud pushed a commit that referenced this issue Oct 26, 2020
Fix usage of settings.default_port
malud pushed a commit that referenced this issue Oct 26, 2020
malud pushed a commit that referenced this issue Nov 9, 2020
malud pushed a commit that referenced this issue Nov 9, 2020
e.g. tests
malud pushed a commit that referenced this issue Nov 9, 2020
malud pushed a commit that referenced this issue Nov 9, 2020
malud pushed a commit that referenced this issue Nov 9, 2020
malud pushed a commit that referenced this issue Nov 9, 2020
working with configuration files

Error template handling for integration tests

JSON template handling for integration test

Add integration test handler check for couper access log
malud pushed a commit that referenced this issue Nov 9, 2020
malud pushed a commit that referenced this issue Nov 9, 2020
malud pushed a commit that referenced this issue Nov 9, 2020
malud pushed a commit that referenced this issue Nov 9, 2020
malud pushed a commit that referenced this issue Nov 9, 2020
malud pushed a commit that referenced this issue Nov 9, 2020
malud pushed a commit that referenced this issue Nov 9, 2020
malud pushed a commit that referenced this issue Nov 10, 2020
malud pushed a commit that referenced this issue Nov 24, 2020
With fallback to raw string expression
malud pushed a commit that referenced this issue Nov 24, 2020
With fallback to raw string expression
malud pushed a commit that referenced this issue Nov 24, 2020
With fallback to raw string expression
malud pushed a commit that referenced this issue Nov 24, 2020
With fallback to raw string expression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request theme/config
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant