Presentation on theme: "RESTful CSSM?. REST REST is not just no SOAP Operate on (state of) resources – In principle HTTP verbs PUT, GET, POST, DELETE – Similar to CRUD (Create,"— Presentation transcript:
REST REST is not just no SOAP Operate on (state of) resources – In principle HTTP verbs PUT, GET, POST, DELETE – Similar to CRUD (Create, Read, Update, Delete) – Resource represents an object – Typically represented as XML doc As in Uniform Resource Identifier Not a functional resource – All Resources addressable by URI ~= Identity
Examples QSA GET https://cssm.esa.int/sa/esa_nasa_sa_1https://cssm.esa.int/sa/esa_nasa_sa_1 -> serviceAgreement ATP PUT https://cssm.esa.int/sa/esa_nasa_sa_1/tp/tp_1https://cssm.esa.int/sa/esa_nasa_sa_1/tp/tp_1 – Body is profile as XML -> id of created resource (and other necessary info) https://cssm.esa.int/sa/esa_nasa_sa_1/tp/tp_1 25 …
Three-Phase Operations? Immediate return (like xxx-AR) – Acknowledges syntax, immediate checks etc. – Includes resource URI – Includes explicit state e.g. Requested – Includes expected disposition time State updated by CM – Notified to UM Resource (including state) can always be queried
Notifications? From CM to UM – return path Similar protocol possible POST https://cssm.esa.int/sa/esa_nasa_sa_1/notification/id https://cssm.esa.int/sa/esa_nasa_sa_1/notification/id – XML body e.g.
Mappings HTTP is obvious and easy SOAP REST also possible MO/MAL mapping would probably use COM
c.f. Document Exchange What do we lose? – Message sequence counts / checking Correlation seems not a problem – Multi-invocation packing – ???
c.f. Document Exchange What do we gain? – Less spec to write / maintain No new operations – At least one fully standard mapping (http) – Simpler implementation – Straightforward application to plain information entities Need to specify standard URL patterns
Miscellaneous thoughts Multi-way co-ordination (e.g. DDOR, handover) – URLs support possibility of refs between Multiple agencies Multiple SAs Support refs to non-CSSM resources? complex operations – E.g. ETP, ANT, SAS – How well do they fit resource model? – To be investigated