-
-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] extendable_fastapi: Add generics schemas
Add base schemas to be used to define pagination and paginated results when defining a search method.
- Loading branch information
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
Empty file.
This file contains 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,6 @@ | ||
Introduce two new base schemas: `PagedCollection` and `Paging`. These | ||
schemas are used to describe the structure of a paged collection of | ||
resources and the paging information parameters that you can use when you | ||
define a fastapi method that returns a paged collection of resources. | ||
These schemas are similar to the ones defined in the Odoo's **fastapi** addon | ||
but works as/with extendable models. |
This file contains 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