API: create native method to return IDL definitions
Bug #1997258 reported by
Galen Charlton
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
New
|
Wishlist
|
Unassigned |
Bug Description
As it happens, there's no native Evergreen method to return IDL definitions. Instead, if a client needs to deal with the IDL, it needs to do something other than making an OpenSRF request to get at the definitions. (I.e., fetch from /reports/fm_IDL.xml (which requires parsing XML) or /IDL2js (which is designed for Javascript clients)).
For integrators who aren't using the upcoming OpenAPI layer or are accessing the API from a web app, a couple native methods to deal with the IDL may smooth things a bit.
- fetch IDL definitions for selected classes in JSON format
- translate a fieldmapper object from array-based serialization to index-based serialization
To post a comment you must log in.
Another idea for a method: something that takes a service, method name, and parameters, and calls it, but performs bidrectional translation from array-serialized fieldmapper objects to hash-serialized ones.