Skip to content

Feature: New APIs#727

Draft
hoangpn wants to merge 18 commits intoline:masterfrom
hoangpn:feature/new_apis
Draft

Feature: New APIs#727
hoangpn wants to merge 18 commits intoline:masterfrom
hoangpn:feature/new_apis

Conversation

@hoangpn
Copy link
Copy Markdown
Contributor

@hoangpn hoangpn commented Apr 16, 2026

No description provided.

- Add v2 Router for v2 API.
- Create rest_v2.py file with base pagination class PromgenPagination.
- Add Permission Check class for v2 API.
@hoangpn hoangpn force-pushed the feature/new_apis branch 2 times, most recently from cb7aad2 to 5fe5331 Compare April 22, 2026 10:23
We have added several APIs for retrieving and filtering Audit Log data.
@hoangpn hoangpn force-pushed the feature/new_apis branch from 5fe5331 to 31bbecf Compare May 4, 2026 01:10
We have added several APIs for retrieving and updating Notifier, as well as Notifier's filters.
@hoangpn hoangpn force-pushed the feature/new_apis branch from 31bbecf to 87dab1c Compare May 5, 2026 02:56
hoangpn added 5 commits May 5, 2026 10:30
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.
@hoangpn hoangpn force-pushed the feature/new_apis branch 3 times, most recently from 368e386 to bd0c6d3 Compare May 5, 2026 04:22
hoangpn added 8 commits May 5, 2026 11:30
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.
@hoangpn hoangpn force-pushed the feature/new_apis branch from bd0c6d3 to 25d84de Compare May 5, 2026 04:30
@hoangpn hoangpn force-pushed the feature/new_apis branch from 2ee725e to 6a082f8 Compare May 6, 2026 08:40
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 this pull request may close these issues.

1 participant