Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seesharpsoft/spring-multipart
Web batch/bulk/multipart requests with JAVA Spring framework.
https://github.com/seesharpsoft/spring-multipart
java-spring spring
Last synced: 10 days ago
JSON representation
Web batch/bulk/multipart requests with JAVA Spring framework.
- Host: GitHub
- URL: https://github.com/seesharpsoft/spring-multipart
- Owner: SeeSharpSoft
- License: apache-2.0
- Created: 2017-08-05T19:25:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-09T21:17:20.000Z (almost 6 years ago)
- Last Synced: 2024-10-31T15:48:01.102Z (about 2 months ago)
- Topics: java-spring, spring
- Language: Java
- Homepage:
- Size: 42 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**Repository outdated!**
*This is now part of the sharping library:* https://github.com/SeeSharpSoft/sharping
# Spring - Multipart / Batch messages
Enable multipart / batch request for JAVA Spring.# Links
Implementation is syntactically inspired byhttp://www.rfc-editor.org/rfc/rfc2046.txt
https://tools.ietf.org/id/draft-snell-http-batch-00.html
http://www.odata.org/documentation/odata-version-3-0/batch-processing/
# Example
- startup multipart-example spring-boot:run
- POST localhost:8080/my/own/multipart/endpoint**Header**
```
Content-Type: multipart/mixed
```**Body**
```
--batch
Content-Type: application/http
Content-Transfer-Encoding: binaryGET /hello HTTP/1.1
Host: host--batch
Content-Type: application/http
Content-Transfer-Encoding: binaryGET /greeting?name=Trevor HTTP/1.1
Host: host--batch
Content-Type: application/http
Content-Transfer-Encoding: binaryGET /greeting?name=Peter&name=Lustig HTTP/1.1
--batch--
```**Response**
```
--batch
Content-Type: application/http
Content-Transfer-Encoding: binaryHTTP/1.1 200 OK
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 27Greetings from Spring Boot!
--batch
Content-Type: application/http
Content-Transfer-Encoding: binaryHTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 35{"id":1,"content":"Hello, Trevor!"}
--batch
Content-Type: application/http
Content-Transfer-Encoding: binaryHTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 41{"id":2,"content":"Hello, Peter,Lustig!"}
--batch--
```