Coder Social home page Coder Social logo

board_crud_api's Introduction

Board

Environments

Developments


Project πŸ”

  • ν”„λ‘œμ νŠΈλͺ… : μŠ€ν”„λ§ JPAλ₯Ό μ΄μš©ν•œ κ²Œμ‹œνŒ CRUD API
  • 개발 μ–Έμ–΄ : Java
  • 개발 ν”„λ ˆμž„μ›Œν¬ : Srping Framework
  • λ°μ΄ν„°λ² μ΄μŠ€ : H2 Database
  • μš”κ΅¬μ‚¬ν•­
    • κ²Œμ‹œνŒ : CRUD API , νŽ˜μ΄μ§• 처리 , ν•„λ“œ μ˜ˆμ™Έ 검증 , μ „μ—­ μ˜ˆμ™Έ 처리 , 검색 κΈ°λŠ₯

RESTful API


BoardController

: κ²Œμ‹œνŒμ˜ CRUD κΈ°λŠ₯으둜 λ·° ν…œν”Œλ¦Ώμ„ μ‚¬μš©ν•˜μ—¬ μ›Ή νŽ˜μ΄μ§€ μƒμ—μ„œ 데이터λ₯Ό 등둝, μˆ˜μ •, μ‚­μ œ, μ‘°νšŒν•˜λŠ” 컨트둀러

Description Http Method URL
κ²Œμ‹œλ¬Ό 등둝 POST /board
κ²Œμ‹œλ¬Ό 쑰회(단건) GET /board/{boardId}
κ²Œμ‹œλ¬Ό 쑰회(전체) GET /board
κ²Œμ‹œλ¬Ό μˆ˜μ • PATCH /board/{boardId}
κ²Œμ‹œλ¬Ό μ‚­μ œ DELETE /board/{boardId}

BoardApiController

: κ²Œμ‹œνŒμ˜ CRUD κΈ°λŠ₯으둜 JSON 톡신을 μ΄μš©ν•΄ 데이터λ₯Ό 등둝, μˆ˜μ •, μ‚­μ œ, μ‘°νšŒν•˜λŠ” 컨트둀러

Description Http Method URL
κ²Œμ‹œλ¬Ό 등둝 POST /api/boards
κ²Œμ‹œλ¬Ό 쑰회(단건) GET /api/boards/{boardId}
κ²Œμ‹œλ¬Ό 쑰회(전체) GET /api/boards
κ²Œμ‹œλ¬Ό μˆ˜μ • PATCH /api/boards/{boardId}
κ²Œμ‹œλ¬Ό μ‚­μ œ DELETE /api/boards/{boardId}

Settings

- application.properties

#h2 db ??
spring.datasource.url=jdbc:h2:tcp://localhost/~/board
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect

#hibernate ??
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.properties.hibernate.show_sql=true
spring.jpa.hibernate.ddl-auto=create

spring.mvc.throw-exception-if-no-handler-found=true
spring.web.resources.add-mappings=false 

# hidden method
spring.mvc.hiddenmethod.filter.enable=true

# database test data setting
spring.jpa.defer-datasource-initialization = true
spring.sql.init.mode = always

- data.sql : μ• ν”Œλ¦¬μΌ€μ΄μ…˜ μ‹€ν–‰ μ‹œ μž„μ˜μ˜ ν…ŒμŠ€νŠΈ 데이터λ₯Ό λ°μ΄ν„°λ² μ΄μŠ€μ— μ‚½μž…ν•˜κΈ° μœ„ν•΄ μ„ΈνŒ…ν•΄λ†“μ€ 데이터 파일

νŽ˜μ΄μ§€ ꡬ성

  • κΈ€ λͺ©λ‘ image

  • κΈ€ μƒμ„ΈνŽ˜μ΄μ§€ image

  • κΈ€ μˆ˜μ •νŽ˜μ΄μ§€ image

  • κΈ€ 검색 image

board_crud_api's People

Contributors

park0jae avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.