Sha256: 33b97136722243be553c161bbf964afe78f217e619538e3f8e5a40e7f8f5f15f
Contents?: true
Size: 933 Bytes
Versions: 1
Compression:
Stored size: 933 Bytes
Contents
module Ezid # # EZID API Version 2 bindings # module Api VERSION = "2" # EZID server subsystems DATACITE_SUBSYSTEM = "datacite" NOID_SUBSYSTEM = "noid" LDAP_SUBSYSTEM = "ldap" ALL_SUBSYSTEMS = "*" class << self def login [:Get, "/login"] end def logout [:Get, "/logout"] end def mint_identifier(shoulder) [:Post, "/shoulder/#{shoulder}"] end def create_identifier(identifier) [:Put, "/id/#{identifier}"] end def modify_identifier(identifier) [:Post, "/id/#{identifier}"] end def get_identifier_metadata(identifier) [:Get, "/id/#{identifier}"] end def delete_identifier(identifier) [:Delete, "/id/#{identifier}"] end def server_status(subsystems) [:Get, "/status", "subsystems=#{subsystems.join(',')}"] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ezid-client-0.1.0 | lib/ezid/api.rb |