Create endpoint in Submarine¶
Overview¶
Với việc thiết kế một endpoint từ đầu đến cuối sẽ thông qua:
[1] [2] [3] [4] [5] [6]
+++++++++++++++++++++++++ +++++++++++++++++ +++++++++++++++++++++++++++ +++++++++++++++++++ ++++++++++++ +++++++++++++++
+ Design Specification + -----> + Design Fetch + ----> + API endpoint (internal) + ---> + Lake processing + ---> + Transfer + ---> + API Client +
+++++++++++++++++++++++++ +++++++++++++++++ +++++++++++++++++++++++++++ +++++++++++++++++++ ++++++++++++ +++++++++++++++
|
[7]
+++++++++++++++++++++++++++
+ Operation +
+++++++++++++++++++++++++++
For oder of params¶
The current order:
flowchart TB
request --> filterset --> record_attribute --> pagination --> session
The current order:
flowchart LR
request --> filterset --> record_attribute --> pagination --> session
SSC Public Company¶
-
Design schema for database, export schema in the init file.
-
Design schema for app and model response.
-
Create CRUD.
-
Create routers for respective CRUDs.
-
Add router to main.py.
-
Create tests for endpoints.