Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
curl -X POST -H "Content-Type: application/json" --user user:password -d '{
    "organisationWebsiteURL": "example.comhttp://www.man.poznan.pl",
    "organisationWebsite": "Poznańskie Centrum Superkomputerowo - Sieciowe Afiliowane przy Instytucie Chemii Bioorganicznej PAN",
    "officialAddress" : "address@example.comul. Jana Pawła II 10, Poznań",
    "digitalLibraryURL" : "example.com/libraryhttp://lib.psnc.pl/dlibra",
    "digitalLibraryWebsite": "Repozytorium Instytucjonalne",
    "organisationName": "ExamplePoznańskie Centrum Superkomputerowo - Sieciowe Afiliowane przy Instytucie Chemii Bioorganicznej PAN",
    "remarks": "example remarksIntegracja i rozwój infrastruktury informatycznej nauki",
    "contactPerson": "John exampleoffice@man.poznan.pl"
}' -i https://cloud.europeana.eu/api/data-providers?providerId=exampleProviderPSNC

 

 

 

If the provider was created successfully you will get a response with HTTP code 200. You can use the GET method on the same endpoint to make sure that the system returns information about the data provider, when queried by its id:

 

Code Block
languagebash
 curl -X GET  -H "Accept: application/json" --user user:password -i https://cloud.europeana.eu/api/data-providers/exampleProviderPSNC

 

The response should look like this:

Code Block
languagebash
 {  
   "active":true,
   "id":"exampleProviderPSNC",
    "partitionKey":-13229707742465528,
    "properties":
{    {
        "contactPerson":"John exampleoffice@man.poznan.pl",
        "digitalLibraryURL":"example.com/libraryhttp://lib.psnc.pl/dlibra",
      "digitalLibraryWebsite":"Repozytorium Instytucjonalne",
      "officialAddress":"address@example.comul. Jana Pawła II 10, Poznań",
        "organisationName":"Example",
  Poznańskie Centrum Superkomputerowo - Sieciowe Afiliowane przy Instytucie Chemii Bioorganicznej PAN",
      "organisationWebsite":"Poznańskie Centrum Superkomputerowo - Sieciowe Afiliowane przy Instytucie Chemii Bioorganicznej PAN",
      "organisationWebsiteURL":"example.comhttp://www.man.poznan.pl",
        "remarks":"example remarksIntegracja i rozwój infrastruktury informatycznej nauki"
    }
}
 

Identifiers

Creation

Every record has a unique identifier in Europeana Cloud. We call these identifiers "global". A record can also have an identifier in its original the system; these ïdentifiers are referred to as “local”.

...