Sử dụng spring ecosytem
.
Để đảm bảo code hoạt động tốt, tôi sử dụng junit
để test unit các modun của chương trình.
- port: 8080.
- base-path:
/api/v1
. - default-page-size: 5.
- limit-param-name: 10.
-
[GET] Return account by gmail and password (account not exist return null):
/account/login?gmail={gmail}&password={password}
-
[GET] Return config account by id account (config account not exist return null):
/config-account?id_account={id_account}
-
[POST | body-json] Update config account:
/config-account/add
-
[GET] Return page latest article by category:
/article-page/article-category?category={name}
/article-page/article-category?category={name}&page={page}
/article-page/article-category?category={name}&page={page}&size={size}
-
[GET] Return page latest article:
/article-page/article-new
/article-page/article-new?page={page}
/article-page/article-new?page={page}&size={size}
-
[GET] Return page latest matching:
/article-page/search?keySearch={keySearch}
/article-page/search?keySearch={keySearch}&page={page}
/article-page/search?keySearch={keySearch}&page={page}&size={size}
-
[GET] Return article by id:
/article-page/article-detail?id={id}