4 ms·
They describe what it means later in the page [1]: > The JavaScript client library allows you to load an API schema, and then interact with that API at an appl
by mplewis 10y ago
They describe what it means later in the page [1]:
> The JavaScript client library allows you to load an API schema, and then interact with that API at an application layer interface, rather than constructing fetch requests explicitly.
It looks like it generates a JS library that makes it easy to use the same resource names in your JS as Django without having to write route handlers by hand. In their example, it looks like they list projects by calling
client.action(schema, ['projects', 'list']).then(...)
[1]: http://www.django-rest-framework.org/topics/3.6-announcement/#javascript-client-library http://www.django-rest-framework.org/topics/3.6-announcement...