UnBora / articlemd

សួស្ដី! ខ្ញុំបូរ៉ា Click Readme👇

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Article management

Articles Management បង្កើតឡើងដើម្បី Practice ក្នុងការចាប់ផ្ដើមរៀននិងស្វែងយល់ពី Spring data jpa។ ក្នង Project មួយនេះយើងក៏អាចដឹងពីការ Upload and Download File ផងដែរ។ http://localhost:8080/1 Capture

Project Features

  • Create Article
  • Get All Articles
  • Get Article By ID
  • Update Article By ID
  • Delete Article By ID
  • Disable Article By ID
  • Enable Article By ID

API Articles Management

Post Article

  Post /api/v1/add
Parameter Type Description
article string Capture
file MultipartFile រូបភាបដែលត្រូវ Upload

Get all Articles

  Get /api/v1/articles
Parameter Type Description
pageNo int Default. 1 (page ទី1)
pageSize int Default 5 (1 page មាន article 5)
status int Default. 2 (0= article ត្រូវបានលុបហើយ, 1 = article ត្រូវបាន disable, 2= article កំពុង active )

Get Article

  GET /api/v1/article/{id}
Parameter Type Description
id int Required. ត្រូវការ id ដើម្បីទៅចាប់យក​ Article យកមក​

Update Article

  Post /api/v1/updateArticle/{id}
Parameter Type Description
id int id របស់ user (ប្រភេទជា PathVariable)
article string Capture
file MultipartFile រូបភាបដែលត្រូវ Upload (RequestParam)

Delete Article

  Delete /api/v1/deleteArticle/{id}
Parameter Type Description
id int Required. ត្រូវការ id ដើម្បីទៅ Delete​ Article (Change statuse to 0)

Disable Article

  Post /api/v1/disable/{id}
Parameter Type Description
id int Required. ត្រូវការ id ដើម្បីទៅ Disable Article (Change statuse to 1)

Enable Article

  Post /api/v1/enable/{id}
Parameter Type Description
id int Required. ត្រូវការ id ដើម្បីទៅ Enable Article (Change statuse to 2)

...

🚀 About Me

សួស្ដី! ខ្ញុំ បូរ៉ា ចូលចិត្តអានសៀវភៅកូនក្មេង Timmy2

About

សួស្ដី! ខ្ញុំបូរ៉ា Click Readme👇


Languages

Language:Java 48.5%Language:HTML 42.2%Language:CSS 8.0%Language:JavaScript 1.3%