[go: nahoru, domu]

Skip to content

sonnees/baomoi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FRONT-END
BACK-END

ERD


FRONT-END

run-in-android Run in android

BACK-END

Tổng Quan

Gradle Postgres Spring Boot Badge

ERD

Mô tả

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.

REST API

Config

  • port: 8080.
  • base-path: /api/v1.
  • default-page-size: 5.
  • limit-param-name: 10.

API Endpoint

  • [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}