Short description and motivation.
From the path with the sword_package.zip
file:
curl -i --data-binary "@./sword_package.zip" -H "Content-Disposition: filename=sword_package.zip" -H "Content-Type:application/zip" -H "X-Packaging:http://purl.org/net/sword-types/METSDSpaceSIP" -H "X-No-Op:false" -H "X-Verbose:true" http://localhost:3000/sword/deposit
- Add authentication to /deposit
- Document configuration
- Add handle mapping (for legacy repository interoperability)
Add this line to your application's Gemfile:
gem 'sword'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sword
Install configs
$ rails generate sword:config
Add routes to config/routes.rb
mount Sword::Engine => "/sword"
Contribution directions go here.
The gem is available as open source under the terms of the MIT License.