Giter Site home page Giter Site logo

hanteoproject's Introduction

Hanteo CodingTest

트리구조 카테고리를 추가,삭제,검색 기능을 지원 합니다. 또한 결과는 JSON 형태로 반환 되며, 각 API에 대한 예외 처리에 따른 예외 코드가 정해져 있습니다. ReadMe에 포함된 이미지 또는 아래의 API URL를 참고 해주세요.

  1. 카테고리 추가

mapbook

  1. 카테고리 검색(이름)

mapbook

  1. 카테고리 검색(식별자)

mapbook

  1. 카테고리 전체 검색

mapbook

  1. 카테고리 전체 검색

mapbook

  1. 카테고리 삭제(이름)

mapbook

  1. 카테고리 삭제(식별자)

mapbook

[요구 상황에 대한 JSON 응답 예시]

{
  "id": "0",
  "parentIdx": -1,
  "name": "카테고리",
  "categoryNodes": [
    {
      "id": "a0",
      "parentIdx": 0,
      "name": "남자",
      "categoryNodes": [
        {
          "id": "b0",
          "parentIdx": 0,
          "name": "엑소",
          "categoryNodes": [
            {
              "id": "c1",
              "parentIdx": 0,
              "name": "공지사항",
              "categoryNodes": []
            },
            {
              "id": "c2",
              "parentIdx": 0,
              "name": "",
              "categoryNodes": []
            },
            {
              "id": "c3",
              "parentIdx": 0,
              "name": "백현",
              "categoryNodes": []
            },
            {
              "id": "c4",
              "parentIdx": 0,
              "name": "시우민",
              "categoryNodes": []
            }
          ]
        },
        {
          "id": "b1",
          "parentIdx": 0,
          "name": "방탄소년단",
          "categoryNodes": [
            {
              "id": "c5",
              "parentIdx": 1,
              "name": "공지사항",
              "categoryNodes": []
            },
            {
              "id": "c6",
              "parentIdx": 1,
              "name": "익명게시판",
              "categoryNodes": []
            },
            {
              "id": "c7",
              "parentIdx": 1,
              "name": "",
              "categoryNodes": []
            }
          ]
        }
      ]
    },
    {
      "id": "a1",
      "parentIdx": 0,
      "name": "여자",
      "categoryNodes": [
        {
          "id": "b2",
          "parentIdx": 1,
          "name": "블랙핑크",
          "categoryNodes": [
            {
              "id": "c8",
              "parentIdx": 2,
              "name": "공지사항",
              "categoryNodes": []
            },
            {
              "id": "c6",
              "parentIdx": 2,
              "name": "익명게시판",
              "categoryNodes": []
            },
            {
              "id": "c10",
              "parentIdx": 2,
              "name": "로제",
              "categoryNodes": []
            }
          ]
        }
      ]
    }
  ]
}
dependencies {
    implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
    implementation 'org.springframework.boot:spring-boot-starter-web'
    compileOnly 'org.projectlombok:lombok'
    developmentOnly 'org.springframework.boot:spring-boot-devtools'
    annotationProcessor 'org.projectlombok:lombok'
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.5'

}

hanteoproject's People

Contributors

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