gs1 / EPCIS

Draft files being shared for EPCIS 2.0 development
Other
20 stars 7 forks source link

Question :: GET /epcs/{epc} "Returns resource events"? #352

Open sgpinkus opened 2 years ago

sgpinkus commented 2 years ago

Current EPCIS v2.0 PDF, Chapter 12, REST, Binding p275 states the the REST endpoint GET /epcs/{epc} "Returns resource events"? What does this mean?

Aside: intuition says that this should or plausible could return the EPC, any ILMD, and any current dispositions attached to it. But I don't think this is the intent. For one this would strongly imply the EPCIS repository event-sources a view of the current state of items associated with EPCs. The existence of GET /epcs suggests this too. But the is no (?) language in the spec about EPCIS repositories maintaining auxiliary databases to support queries (it would actually be helpful if that was at least discussed).

jmcanterafonseca-iota commented 2 years ago

it returns a reference to the events resource that allows you to query the events which subject is that EPC

 {
    "@context": "https://gs1.github.io/epcis/epcis-context.jsonld",
    "type": "Collection",
    "member": ["events"]
}