Code Monkey home page Code Monkey logo

dynamic-menu's Introduction

사용 기술

  • Java 11
  • Spring boot 2.6
  • Spring Validation
  • Spring HATEOAS
  • H2
  • Querydsl
  • JUnit 5
  • MockMvc
  • Gradle 7
  • Docker

프로젝트 빌드 및 배포

빌드 전, 해당 사항들이 설치되어 있어야 합니다!

Docker

Gradle 7

openjdk

  • 프로젝트 디렉토리에서 명령어 실행: bash deploy.sh

API 호출

  • 프로젝트 최상단의 내 Postman 컬렉션 [dynamic-menu].postman_collection.json 다운로드하여 import 후 실행해주세요!

API 간략정보

메뉴 단일조회

  • URL: GET /find/{id}
  • Path Parameter: 조회할 메뉴ID

메뉴 목록조회

Infinite Scroll 형식 기반 목록조회입니다

  • URL: GET /find
  • Request Parameter
    • size: 응답 갯수
    • lastId: 마지막 메뉴의 ID.
    • parentId: 부모ID. 미요청시 전체, 요청시 해당 부모 메뉴들만 조회
    • depth: 메뉴 뎁스. 미요청시 전체, 요청시 해당 뎁스 메뉴들만 조회
    • title: 메뉴명. 미요청시 전체, 요청시 해당 메뉴명만 조회

메뉴 등록

  • URL: POST /menu
  • Request Payload
    • parentId: 부모ID. 하위메뉴 등록시 요청, 없을시 최상위 메뉴로 등록
    • title: 메뉴명(필수)
    • link: 링크(필수)
    • description: 설명
    • banners: 배너

메뉴 수정

  • URL: PATCH /menu/{id}
  • Path Parameter: 수정할 메뉴ID
  • Request Payload
    • title: 수정할 제목, 필수
    • link: 수정할 링크, 필수
    • description: 수정할 내용, 선택

메뉴 삭제

  • URL: DELETE /menu/{id}
  • Path Parameter: 삭제할 메뉴ID

dynamic-menu's People

Contributors

choimory 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.