Skip to content

Add minimal docs to the NPM library #235

Description

@mxdvl

It could help adoption by JS consumers.


So this is how one use the models from content-api-models https://github.com/guardian/dotcom-rendering/blob/8c46c6b669b600b439c5585f99678fee75a7a451/apps-rendering/src/capi.ts#L6

Basically you just import the model you would like

The elements you can find are in the thrift file
https://github.com/guardian/content-api-models/blob/main/models/src/main/thrift/content/v1.thrift#L1897

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions