Skip to content

Add support for Fets for API #48

Open
@Ashraf-Ali-aa

Description

@Ashraf-Ali-aa

Start Date

No response

Implementation PR

No response

Reference Issues

No response

Summary

use https://github.com/ardatan/feTS for API client

Basic Example

check the website

Drawbacks

require open API spec

Unresolved questions

No response

Activity

MateuszRostkowski

MateuszRostkowski commented on Apr 12, 2024

@MateuszRostkowski
Contributor

@Ashraf-Ali-aa
We are using axios for api calls. It's deeply integrated into our logic and it will be hard to replace it with feTS.

Right now we don't plan to change axios to any other library but feel free to create your implementation. You can create fork and create pull request with your suggested changes.

Ashraf-Ali-aa

Ashraf-Ali-aa commented on Apr 12, 2024

@Ashraf-Ali-aa
Author

ok, thanks, you can use axois with Fets, this tool replaces the code generation part for getting API type safety in TS, it generates types at build time so no code is generated

https://the-guild.dev/openapi/fets/client/quick-start

https://the-guild.dev/openapi/fets/client/client-configuration

MateuszRostkowski

MateuszRostkowski commented on Apr 14, 2024

@MateuszRostkowski
Contributor

I looks good, but I think it will not easy for that, we would also need to do some changes on the backend side, and now we don't have capacity to do that. But I will leave this issue open and maybe in near future we will try to implement it 🙂

Thanks for your suggestions ❤️

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Add support for Fets for API · Issue #48 · binarapps/baca-react-native-template