Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

zbum/mime-api

Repository files navigation

MIME API

MIME 이메일에서 Display Part(본문)를 추출하는 REST API 서버입니다.

Requirements

  • Go 1.25+
  • Docker (optional)

Build

make build

Run

make run

서버가 http://localhost:8080에서 실행됩니다.

API

POST /v1/display-part

이메일 파일(.eml)을 업로드하면 본문 콘텐츠를 추출하여 반환합니다.

curl -X POST http://localhost:8080/v1/display-part \
 -F "file=@email.eml"

GET /health

헬스 체크 엔드포인트입니다.

curl http://localhost:8080/health

Docker

# 빌드
make docker-build
# 실행
make docker-run

Makefile Targets

Target Description
build 바이너리 빌드 (dist/)
clean 빌드 아티팩트 삭제
test 테스트 실행
lint golangci-lint 실행
fmt 코드 포맷팅
run 서버 실행
docker-build Docker 이미지 빌드
docker-run Docker 컨테이너 실행

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /