Skip to content

docs(FI-02): add GET list documents API with filters#14

Open
hoanninh123 wants to merge 1 commit intodevfrom
docs/FI-02-03
Open

docs(FI-02): add GET list documents API with filters#14
hoanninh123 wants to merge 1 commit intodevfrom
docs/FI-02-03

Conversation

@hoanninh123
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds OpenAPI documentation for a new authenticated GET /api/v1/documents endpoint so document lists can be retrieved with filtering and pagination. This fits the existing API spec by extending the document section with a list operation alongside the existing create/get/update document endpoints.

Changes:

  • Added GET /api/v1/documents with query filters for keyword, active status, issued-date range, and pagination.
  • Documented the 200 response payload with document fields and paging metadata.
  • Added 400/401/403/500 response definitions and examples for the new endpoint.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +2771 to +2775
pagination:
total: 42
page: 1
limit: 20
totalPages: 3
Comment on lines +2706 to +2739
type: array
items:
type: object
properties:
documentID:
type: string
example: "12345"
title:
type: string
example: "Luật Đất đai 2024"
documentCode:
type: string
example: "31/2024/QH15"
isActive:
type: boolean
example: true
issuedDate:
type: string
format: date
example: "2024-01-18"
effectiveDate:
type: string
format: date
example: "2024-07-01"
sourceUrl:
type: string
format: uri
example: "https://thuvienphapluat.vn/van-ban/..."
version:
type: string
example: "v1"
meta:
type: object
properties:
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.

2 participants