Skip to content

Consider using superagent instead of axios for better JSON API support #4

@spleshka

Description

@spleshka

I've noticed that devs at Lullabot use axios library for API calls to the backend. However, what we've found during the development for our clients, there is a great library which has awesome support for JSON API standard:

The last mentioned library provides really great DX for data processing which comes from D8 JSON API module:

  • Much less nested response structure
  • All attached data is being wrapped in magic fields which make them accessible as it was added straight to data (for example, you don't have to search for image data in the attachment, you can get image url as it was a usual node title)
  • Many more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions