I have multiple different APIs with different schemas serialised in XML or JSON which I need to output as a standardised schema.
Main features needed:
- Serialisation to XML and JSON
- Authentication
- I.e.: can't get/set data unless you have the correct user+pass
- Role/Scope limitation
- I.e.: you can't access everything in our database, only what your role allows for
- Get/set (conversion) between different schemas
- I.e.: No matter the input API, you can get it formatted in whichever output API you request
Or to put it visually:
Server1 >[send as SOAP 1.1]>[My Server]>[Server3 receives as XML in Server3 schema]
Server3>[Send as XML]>[My Server]>[Server1 receives as SOAP 1.1 in Server1 schema]
Or to put it programmically:
id=MyServer.read.SOAP[Server1.schema](Server1).id
MyServer.send.XML[Server2.schema](data_get(id), Server2)
It would need to store all received data in a Model (database) so that read is available on-demand.
Is this the sort of problem Slumber with TastyPie would be best for?
Or are there a different libraries you'd recommend?