App for creating and managing file archives from URLs.
go run ./cmd/app/
http://localhost:8080/doc/
config/config.yaml
Request:
curl -X 'POST' \
'http://localhost:8080/api/v1/upload' \
-H 'accept: application/zip' \
-H 'Content-Type: application/json' \
-d '{
"links": [
"https://www.sample-videos.com/img/Sample-jpg-image-50kb.jpg",
"https://s24.q4cdn.com/216390268/files/doc_downloads/test.pdf"
]
}'
Request:
curl -X 'POST' \
'http://localhost:8080/api/v1/task' \
-H 'accept: application/json' \
-d ''
Request:
curl -X 'PATCH' \
'http://localhost:8080/api/v1/task/1' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"link": "https://sample-videos.com/img/Sample-jpg-image-50kb.jpg"
}'
Request:
curl -X 'GET' \
'http://localhost:8080/api/v1/arch/2' \
-H 'accept: application/zip'
}'