Feature: New APIs#727
Draft
hoangpn wants to merge 18 commits intoline:masterfrom
Draft
Conversation
- Add v2 Router for v2 API. - Create rest_v2.py file with base pagination class PromgenPagination. - Add Permission Check class for v2 API.
cb7aad2 to
5fe5331
Compare
We have added several APIs for retrieving and filtering Audit Log data.
We have added several APIs for retrieving and updating Notifier, as well as Notifier's filters.
We have added several APIs for retrieving, updating and deleting Rule.
We have added several APIs for interacting with Farm, as well as Farm's hosts.
We have added several APIs for retrieving Exporter data.
We have added several APIs for retrieving URL data.
368e386 to
bd0c6d3
Compare
We have added several APIs to help users easily manage Projects and objects related to each project, such as notifiers, rules, exporters, and URLs.
We have added several APIs to help users easily manage Services and objects related to each service, includes notifiers and rules.
We have added several APIs for retrieving Shard data and the list of projects for each shard.
We have added several APIs for retrieving User data. - List User - Get the User data based on the current Token
We plan to add version v2 to Promgen's API. We have chosen drf-spectacular as the OpenAPI 3 Schema Generation for these new APIs. We also use Rapidoc for the OpenAPI Spec Documentation.
Add a custom exception handler to wrap all exceptions that are not handled by the REST framework's default exception handler into a JSON response with a 500 Internal Server Error HTTP status code.
We have added middleware logging for request/response to API calls via v2 APIs. The logging information includes the IP address, user (if authenticated), request details, and response details. Enabling or disabling this logging can be configured through setting.ENABLE_API_LOGGING.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.