Skip to content
Application that serving file powered by Spring Boot 2.x and Kotlin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src/main
.gitignore
Dockerfile
Jenkinsfile
LICENSE
README.md
build.gradle
docker-compose.yml
gradlew
gradlew.bat
settings.gradle

README.md

UploadFileBoot

Application that serving file powered by Spring Boot 2.x and Kotlin

This project is demo project for publish Tutorial of RESTful API with Spring Boot and Kotlin, So DO NOT USE IN PRODUCTION.

This project contains...

  • Spring Boot 2.1 + Kotlin 1.3
  • Dockerfile for dockerize service (Custom Dockerfile, docker-compose.yml)
  • Jenkinsfile for Continous Delivery (NOT IMPLEMENTED)
  • Swagger 2 for API Document

Published at PyxisPub, https://pyxispub.uzuki.live/?p=1506 (written in Korean)

Build & Run

docker-compose up -d --build

API List

Currently, 'UploadFileBoot' support 3 API(s). You can see document of each api on API Document.

  • POST /uploadFile : curl -XPOST -F extension=PNG -F file=$localfilename 'http://localhost:8080/uploadFile'
    • Request to upload single file and return name of file.
  • GET /listFile: curl -XGET 'http://localhost:8080/listFile'
    • Get list of uploaded files
  • GET /files/{filename} : curl -XGET 'http://localhost:8080/files/filename.png'
    • Get binary data of uploaded file

License

MIT License, LICENSE URL

You can’t perform that action at this time.