Skip to content

What's the recommended way to use this with the frontend? #243

Description

@abienz

Hi, I've read through your examples and a few issues on here, to try and work out what the best way to use this API is, but it seems that maybe I missunderstand its usecase.

Specifically, as per issue #65 I was hoping to get a JSON object passed to my frontend via a fetch call, so that I could update my client page with boxer data.

According in the answer in that post, the feature of a JSON object being available on a boxrec.getPersonById call has been disabled, is that right?

Instead we have to use getters boxer.name for each piece of data.

Wouldn't this mean I would have to build my own JSON object in the backend before sending it to the front end? Or I would be in danger of making many requests to the API which wouldn't be efficient.

Do you have suggestions for minimal code to send through boxers data from an express node backend to a simple html(template) and js frontend based on some AJAX call?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions