Skip to content

Initialize v2 API #730

Closed
hoangpn wants to merge 2 commits into
line:masterfrom
hoangpn:feature/v2_api
Closed

Initialize v2 API #730
hoangpn wants to merge 2 commits into
line:masterfrom
hoangpn:feature/v2_api

Conversation

@hoangpn
Copy link
Copy Markdown
Contributor

@hoangpn hoangpn commented May 20, 2026

This PR is to initialize the development of Promgen's v2 API.
Summary:

  • A new router has been created. New APIs will have the prefix /rest/v2 in the endpoint and
    belong to the api-v2 namespace.
  • A dedicated View for documenting the new APIs is implemented using drf-spectacular and RapiDoc.
  • The API Schema is generated according to the OpenAPI 3.0 standard.
  • PromgenPagination class is created to support paginated responses.
  • PromgenGuardianRestPermission class is added to serve per-object permission checks with logic
    similar to Promgen Web.
  • A new API for retrieving and filtering Audit Log data has been added to verify the new codebase.

hoangpn added 2 commits May 20, 2026 15:21
We have added basic settings aimed at supporting the development of Promgen's v2 API.
Summary:
- A new router has been created. New APIs will have the prefix /rest/v2 in the endpoint and
belong to the api-v2 namespace.
- A dedicated View for documenting the new APIs is implemented using drf-spectacular and RapiDoc.
- The API Schema is generated according to the OpenAPI 3.0 standard.
- PromgenPagination class is created to support paginated responses.
- PromgenGuardianRestPermission class is added to serve per-object permission checks with logic
similar to Promgen Web.
We have added a new API for retrieving and filtering Audit Log data.
@hoangpn hoangpn changed the title Feature/v2 api Initialize v2 API May 20, 2026
@hoangpn hoangpn closed this May 20, 2026
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