# How do people write JavaScript API clients?

**URL:** <https://forum.djangoproject.com/t/how-do-people-write-javascript-api-clients/14456>\
**Category:** Using Django\
**Created:** [June 24, 2022, 8:19am UTC](https://forum.djangoproject.com/t/how-do-people-write-javascript-api-clients/14456 "2022-06-24T08:19:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![czue](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/czue/32/1387_2.png) [@czue](https://forum.djangoproject.com/u/czue)\
**Post date:** [June 24, 2022, 8:19am UTC](https://forum.djangoproject.com/t/how-do-people-write-javascript-api-clients/14456/1 "2022-06-24T08:19:36Z")

</div>

I’m curious - is there any standard for writing JavaScript clients to work with DRF APIs? Say for integrating into a React SPA or similar.

I’ve been looking at [drf-spectacular](https://drf-spectacular.readthedocs.io/en/latest/) which is great for generating the OpenAPI3 schema, but even with the schema there doesn’t seem to be any simple/standard way of writing JavaScript code against it, apart from maybe [generating a client myself](https://openapi-generator.tech/docs/generators).

Are there any other recommendations or tools that are good for this?
