question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Link to operation mapping

See original GitHub issue

Link stands for a relationship from one resource to the other, not an action between them, for example, from a book store resource to a book collection resource. With the relationship, the client actually can do more than one operations, i.e., get books (GET), add a book (POST), etc. Thus, link to operation is not one-one mapping, but one-to-many mapping.

In OAI’s Link Object, I see operationRef or operationId is a singular attribute. This seems like not fully comply with the link relation’s original intention.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gentlewindcommented, Aug 14, 2017

@darrelmiller , thanks for your answering. It’s nice to define links independently and late bound to operations as link instances. The other use case that shall get benefits from this is, in a resource response, there could be multiple links with the same rel name. Some popular media types support this scenario. For instance, in HAL (hypertext application language), a link object’s key is the rel, and its value could either be a link object or an array of link objects. We would love to see this flexibility in OAI.

0reactions
handrewscommented, Oct 27, 2017

JSON Hyper-Schema allows multiple links with the same rel (it may be one of the few that does, apparently?) Our assumption is that, in terms of rel driving the semantics of the link, if you have multiple links with the same rel then they should be treated the same. There’s no clear mechanism of distinction that makes a lot of sense, or at least not that we’ve found so far.

You may end up using the target and/or context URI to distinguish them (or even target attributes like title, although I’d advise against using human-oriented fields for machine processing), but that doesn’t change the information imparted by rel.

Note that in draft-04, people used this to repeat links separately for each HTTP method. This was not the intended model and not the use case for the feature.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Preconfiguring Mapping Programs with Operation Mappings
Operation mappings register your mapping program for a pair of operations in the Enterprise Services Repository (ES Repository). If you require a mapping...
Read more >
Move Operation Mapping to SAP Integration Suite - YouTube
This video covers importing operation mapping from SAP Process Orchestration to SAP Integration Suite. Here you will learn complete set of ...
Read more >
Operation and Message Mappings for SAP ERP PI Integration ...
Operation and Message Mappings for SAP ERP PI Integration with Service Edge ... This page includes figures that describe the messages used in...
Read more >
Dual-write mapping reference - Dynamics 365 - Microsoft Learn
This template synchronizes data between finance and operations apps and Dataverse. Finance and operations field, Map type, Customer engagement ...
Read more >
The operation mapping [xxxx] did not generate a SOAP ...
The operation mapping [xxxx] did not generate a SOAP response. ​​. ​This ​issue might occur when the Operation Mapping contains broken links ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found