Skip to content

[1주차] 임성현/[type] 프로젝트 생성 및 기본 API 구현 #1

@sky-0131

Description

@sky-0131

1. 무엇을?

  • 프로젝트 세팅
  • 헬스 체크 API 구현
  • 문자열 반환 API 구현

2. 상세 설명

MVC 패턴 기반 레이어 분리

  • Controller: 요청과 응답 처리
  • Service: 비즈니스 로직 처리

API 구현

  • GET /health: 서버 상태 확인
  • POST /string/repeat: 문자열 입력 받아 JSON형태로 문자열 2개 반환

3. 추가 사항


4. 제출 시 확인할 것

  • 프로젝트 정상 실행
  • GET /health 요청 정상 응답
  • POST /string/repeat, JSON 응답 요구사항
  • Controller와 Service 분리

5. 선택 과제

  • 요청 / 응답 DTO 분리
  • 예외처리 대응- 잘못된 요청
  • 응답 메시지 변경
  • 이해하기 쉬운 구조로 API 경로 설계

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions