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

Fallback sql view #15

Open
tleekkul opened this issue Sep 20, 2018 · 0 comments
Open

Fallback sql view #15

tleekkul opened this issue Sep 20, 2018 · 0 comments

Comments

@tleekkul
Copy link
Collaborator

tleekkul commented Sep 20, 2018

fostgres.sql view should be able to set the fallback view when no path is matched.

Example

        {
            "view": "fostgres.sql",
            "configuration": {
                "sql": [{
                    "return": "object",
                    "path": [1],
                    "GET": "SELECT * FROM user WHERE user=$1"
                }],
                "fallback": {
                    "view": "fost.response.302",
                    "configuration": {"location": "some-views"}
                }
            }
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants