yoesoff

Tugas Beancamp 1 Sesi 2 (Database dan Persistance Object)

Apr 18th, 2020
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.13 KB | None | 0 0
  1. Tugas Beancamp Batch 1 Sesi 2 (Tema Database / Persistence Object).
  2.  
  3. 1. Buat Spring Boot Project dengan https://start.spring.io/ dengan dependencies:
  4.    1. Spring Web
  5.    2. Spring Data JPA
  6.    3. PostgreSQL Driver
  7.    4. DevTool
  8.       * Atau download langsung dari sini: https://start.spring.io/starter.zip?type=maven-project&language=java&bootVersion=2.2.6.RELEASE&baseDir=demo&groupId=com.example&artifactId=demo&name=demo&description=Demo%20project%20for%20Spring%20Boot&packageName=com.example.demo&packaging=jar&javaVersion=1.8&dependencies=web,data-jpa,postgresql,devtools
  9. 2. Buat Entity berikut:
  10.    - User
  11.      - Long id
  12.      - String username
  13.      - String password
  14.      - String address
  15.      - String phone
  16. 3. Buat RESTful API endpoints sederhana berikut
  17.      - localhost:8000/users        (GET | Get group of existing users)
  18.      - localhost:8000/users        (POST | Save new User)
  19.      - localhost:8000/users/{id}   (PUT | Update existing User)
  20.      - localhost:8000/users/{id}   (GET | Get single User)
  21.      - localhost:8000/users/{id}   (delete | Delete single User)
  22. 4. Format pengumpulan Nama_Email_Tugas2(dd-mm-yyyy).zip
Advertisement
Add Comment
Please, Sign In to add comment