Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Cleanup example so that it's more accurate what needs to be modified

...

For this specific example we can set just the first Inbound Pattern as Request Review and leave the item filter blank. This test is not about item submission.
Pick the following POST call from the Postman project (see below to download it and import it to your installed PostMan instance): let's emulate the Notify Service external system sending us an LDN Message!  

For this test request to succeed you MUST UPDATE THE JSON BELOW based on your system.  See the "IMPORTANT" lines.

{
    "@context":[
        "https://www.w3.org/ns/activitystreams",
        "https://purl.org/coar/notify"
    ],
    "actor":{
        "id":"https://orcid.org/0000-0002-1825-0097",
        "name":"Josiah Carberry",
        "type":"Person"
    },
    "id":"urn:uuid:0370c0fb-bb78-4a9b-87f5-bed307a50dff", //// IMPORTANT!! this must MUST be a unique value because it's going to be stored as uuid into the ldn_message table.
    "object":{
        "id":"http://localhost:4000/handle/123456789/1122",   ////IMPORTANT!! this is the handle link to the item from the referred local repository MUST be the URL of an Item in your DSpace repository. It can be either a handle-based URL or a UUID-based URL. 
        "ietf:cite-as":"https://doi.org/10.5555/12345680",
        "type":"sorg:AboutPage",
        "url":{
            "id":"https://research-organisation.org/repository/preprint/201203/421/content.pdf",
            "mediaType":"application/pdf",
            "type":[
                "Article",
                "sorg:ScholarlyArticle"
            ]
        }
    },
    "origin":{
        "id":"url.ServiceURL?score=0.8",
        "inbox":"http://ldn.ServiceURL?score=0.8",  /// IMPORTANT through !! this field we reach the configured Notify Service entity by matching this field to the one named LDN Inbox URLMUST match the "LDN Inbox URL" for one of the LDN/Notify Services you've added to your repository. (See previous screenshot)
        "type":"Service"
    },
    "target":{
        "id":"https://review-service.com/system",
        "inbox":"https://notify-inbox.info/inbox",
        "type":"Service"
    },
    "type":[
        "Offer",
        "coar-notify:ReviewAction"
    ]
}

...