I am creating android client for my WordPress website . Is there a way to generate retrofit 2 client library from wp rest client using swagger or is there any other tool to generate the same .
3 comments
Comments are closed.
I am creating android client for my WordPress website . Is there a way to generate retrofit 2 client library from wp rest client using swagger or is there any other tool to generate the same .
Comments are closed.
Citing from here, yes it is part of the existing codegen module of swagger:
As per discussion with wp-api team they are not providing any HTTP client library for android and also they are not planning to provide the same .
Please follow below link for the issue created in wp-api
https://github.com/WP-API/WP-API/issues/2473
If you have a swagger 2.0 you better try Swagger Gradle Codegen,
Generates Kotlin code and Retrofit interfaces, with RxJava2 for async calls, Moshi for serialization and ThreeTenABP for Data management