Code Monkey home page Code Monkey logo

spring-boot-beginner's Introduction

spring-boot-beginner

이 레포지토리는 스프링 부트를 이용한 RESTful API 를 구현하기 위한 레포지토리입니다. 요구사항은 아래와 같습니다.

SpringBoot 프로젝트 생성

  • SpringBoot Initializr를 이용합니다.
  • 이 미션을 하기 위해 필요한 Dependency 는 SpringBoot Initializr 의 dependency 설정에서 추가할 수 있습니다.
    • Spring Web
    • Spring Data Jpa
  • 필요한 의존성은 MavenRepository 에서 검색하여 추가합니다.

요구사항

  1. GET /delivery

    • request query params

      • id (optional)
    • response

      1. id 가 없으면 모든 데이터를 반환
      2. id 가 있으면 해당 id 에 데이터를 반환
  2. POST /delivery

    • request body

      {
          "address": "delivery 주소",
          "orderer": "delivery 주문자",
          "menu": "주문한 메뉴"
      }
      
    • response data

      {
          "id": "1",
          "address": "서울시 송파구 루터회관 14층 우아한테크코스",
          "orderer": "루피",
          "menu": "삼계탕",
          "createdAt": "[timestamp]"
          "updatedAt": "[timestamp]"
      }
      
  3. PATCH /delivery

    • request body

      {
          "id": "변경할 id",
          "address": "변경할 주소"
      }
      
    • response data

      • 200 OK
      {
          "id": "1",
          "address": "변경된 주소",
          "orderer": "루피",
          "menu": "삼계탕",
          "createdAt": "[timestamp]"
          "updatedAt": "[timestamp_변경된_시간]"
      }
      
      • 404 NOT FOUND
      {
          "message": "문제가 발생하였습니다."
      }
      
  4. DELETE /delivery

    • request body
    {
        "id": "1"
    }
    
    • response data
      • 200 OK
      {
           "message": "배달이 완료되었습니다."
      }
      
      • 404 NOT FOUND
      {
           "message": "확인되지 않은 주문입니다."
      }
      

미션 수행

  • 2일 마다 한번씩 오후 11시 PR 을 보냅니다.
  • PR 의 메시지에는 이틀간 구현한 내용을 정리합니다.

참고 키워드

주의사항

  • 구글링을 적극적으로 이용합니다.

spring-boot-beginner's People

Contributors

thedevluffy avatar

Watchers

 avatar  avatar

Forkers

qqri

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.