-
Notifications
You must be signed in to change notification settings - Fork 33
Feature/api backend edit #359
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d6149bb
created publication for single apibackend
frenchbread d00f8ea
added route for editing api backend
frenchbread d5720e7
added editApiBackend temp ate
frenchbread ceeedf6
form design fix
frenchbread 7526930
changed headline
frenchbread 286d568
changed route
frenchbread ad2eb10
renamed variable
frenchbread 36cd8dc
Merge branch 'develop' into feature/api-backend-edit
frenchbread File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
client/views/api_backends/edit_api_backend/edit_api_backend.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| <template name="editApiBackend"> | ||
| <div class="api-backends-content"> | ||
| <h1>Edit API</h1> | ||
| {{#autoForm collection="ApiBackends" doc=apiBackend id="apiBackends" type="update"}} | ||
| {{> afQuickField name='name'}} | ||
| <span class="help-block">API's name</span> | ||
| {{> afQuickField name='documentation_link'}} | ||
| <span class="help-block">Link to documentation</span> | ||
| {{> importSwaggerConfiguration}} | ||
| <legend>Backend</legend> | ||
| <span class="help-block">Define the server where the API is hosted. Multiple servers can be defined to perform load balancing.</span> | ||
| {{> afQuickField name='backend_protocol' options="allowed"}} | ||
| {{> afQuickField name='servers'}} | ||
| <legend>Host</legend> | ||
| <div class="row"> | ||
| <div class="col-lg-4"> | ||
| {{> afQuickField name='backend_host'}} | ||
| </div> | ||
| <div class="col-lg-4 arrow"> | ||
| <i class="fa fa-arrow-right fa-2x"></i> | ||
| <div>rewrite to</div> | ||
| </div> | ||
| <div class="col-lg-4"> | ||
| {{> afQuickField name='frontend_host'}} | ||
| </div> | ||
| </div> | ||
| <legend>Matching URL Prefixes</legend> | ||
| <span class="help-block">What URL prefixes should be routed to this backend?</span> | ||
| {{> afQuickField name='url_matches'}} | ||
| <legend data-toggle="collapse" data-target="#global-request-block" aria-expanded="false"><i class="fa fa-chevron-right"></i> Global Request Settings</legend> | ||
| <div id="global-request-block" class="collapse in"> | ||
| {{> afQuickField name='append_query_string'}} | ||
| {{> afQuickField name='set_headers'}} | ||
| {{> afQuickField name='http_basic_auth'}} | ||
| {{> afQuickField name='require_https' options="allowed"}} | ||
| {{> afQuickField name='api_key_verification_level' options="allowed"}} | ||
| {{> afQuickField name='required_roles'}} | ||
| {{> afQuickField name='pass_api_key_header'}} | ||
| {{> afQuickField name='pass_api_key_query_param'}} | ||
| {{> afQuickField name='rate_limit_mode' options="allowed"}} | ||
| {{#if afFieldValueIs name='rate_limit_mode' value="Custom rate limits"}} | ||
| {{> afQuickField name='custom_rate_limits'}} | ||
| {{/if}} | ||
| </div> | ||
| <legend data-toggle="collapse" data-target="#advanced-rewriting-block" aria-expanded="false"><i class="fa fa-chevron-right"></i> Advanced Requests Rewriting</legend> | ||
| <div id="advanced-rewriting-block" class="collapse in"> | ||
| <span class="help-block">Modify the incoming request's URL or headers before passing it to the backend.</span> | ||
| {{> afQuickField name='rewrite'}} | ||
| </div> | ||
| <legend data-toggle="collapse" data-target="#advanced-block" aria-expanded="false"><i class="fa fa-chevron-right"></i> Advanced Settings</legend> | ||
| <div id="advanced-block" class="collapse in"> | ||
| {{> afQuickField name='balance_algorithm' options="allowed"}} | ||
| {{> afQuickField name='error_templates'}} | ||
| </div> | ||
| <div id="form-buttons"> | ||
| <button type="submit" class="btn btn-lg btn-success">Submit</button> | ||
| </div> | ||
| {{/autoForm}} | ||
| </div> | ||
| </template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps rename this variable to apiBackend, so it is consistent with its purpose.