https://github.com/danpersa/file-upload-api
https://github.com/danpersa/file-upload-api
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/danpersa/file-upload-api
- Owner: danpersa
- Created: 2014-09-27T11:18:22.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-29T19:29:24.000Z (over 11 years ago)
- Last Synced: 2025-03-15T14:26:34.174Z (about 1 year ago)
- Language: Java
- Size: 180 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Technology Stack
The project uses the following technologies:
- **java**: Java 7
- **web server**: Tomcat 7, Spring Boot
- **web/REST**: Spring 4.1, RestEasy 3
- **view**: Freemarker
- **marshalling**: Jackson (for JSON)
- **testing**: JUnit, Mockito, Hamcrest Matchers
- **utils**: Lombok
## How to run it
* run 'mvn clean install' inside the main project
* run the main class in the `com.danix.example.spring.jaxrs.backend.Main`
* run 'mvn tomcat7:run' inside the file-upload-frontend folder
* go to http://localhost:8090/
## Call the API:
- get file meta data
`http://localhost:xxxx/files/{id}`
- download file
`http://localhost:xxxx/files/{id}/download`
- upload file with POST
`http://localhost:xxxx/files/`