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

Phase 1: Implement response transformer, ability to add simple config and validate config expression #6

Open
mildronize opened this issue Feb 5, 2024 · 0 comments · Fixed by #7

Comments

@mildronize
Copy link
Contributor

mildronize commented Feb 5, 2024

Due to the design spec:

Store config rule in a data store

Admin Route

Data Schema for Spy config rules

  • ruleName
  • upstreamUrl
  • path
  • condition
    • true / false
  • plugin
    • response_transformer
  • data
    • Expression syntax for **response_transformer**
      1. <action> = <value>, the value is JSON-compatibility data
      2. <action> = <key> : <value>, the value is JSON-compatibility data
      3. Multiple expression⇒
        1. Ex: <action> = <value> , <action> = <value>
        2. Ex: <action> = <value> , <action> = <key> : <value>
    • Allow Actions
      • replace.status_code
        • replace.status_code=400
@mildronize mildronize linked a pull request Feb 7, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant