Version 3 by tomchristie · Pull Request #156 · core-api/python-client (original) (raw)

Core API started off as an attempt to address hypermedia - how to build free-form documents that contain both data and links. We're able to use it for API schemas, (and representations such as OpenAPI & RAML) because those happen to be documents that only contain links.

Practically I think that having the tooling focus specifically on schema representations is going to be a better way forward. That's where the vast majority of the need actually lies, and I think we can do a better job of pushing forward schema-driven client libs, schema-driven documentation, and other tooling, if we restrict ourselves just to that.

I'd also like to see us build in proper typing support, currently in coreschema, so that we can have calls that actually return data types that look like we expect, and be able to eg. instantiate data types in the client, and immediately get client-side validation errors on incorrect values.

Going to try to start to work towards that incrementally, perhaps eventually coupled with a REST framework 3.8 release.

Drop deprecated arguments:

Remove data from documents:

TODO:

Later:


Initial proposal for Documents, something along these lines:

Document

Section

Field