Coder Social home page Coder Social logo

Comments (6)

german1608 avatar german1608 commented on August 28, 2024

Hi. What can be the best way to work on this? I have some questions/comments:

  1. Retrofit interfaces are usually made with user-defined classes that represents the response from api call. How can be infere (or guess?) a name for objects to create classes with that name?
  2. What can be the default serializer? I could say that gson is ok.
  3. This issue should aim to generate the interface from the whole postman collection. It can be from just one request but I think that it will be much better to create the interface for the whole collection.

from postman-code-generators.

HeshamAmer avatar HeshamAmer commented on August 28, 2024

Hey there,
Thanks for reaching out.
1- I think with Retro fit the DataModels are also defined as part of the interface, worst comes to worst you can just use String as a default return type and let the serialisation happen later.
2- Gson or Jackson are both nice.
3- I'm not sure here, whatever you find best.

from postman-code-generators.

german1608 avatar german1608 commented on August 28, 2024

Hi. @HeshamAmer thanks for your feedback. I'll try to start working on this

from postman-code-generators.

Husseinhj avatar Husseinhj commented on August 28, 2024

I can create an Android Kotlin plugin. Do you have plans for it or I can start developing?@webholik

from postman-code-generators.

webholik avatar webholik commented on August 28, 2024

@Husseinhj A Kotlin codegen would be a great addition! Just to be clear, you want to make code generator for RetroFit library or do you have something else in mind? I am not familiar with the Kotlin ecosystem and not sure how popular Retrofit is but we would ideally want something that is used by majority of Kotlin users.

from postman-code-generators.

Husseinhj avatar Husseinhj commented on August 28, 2024

@webholik
I can work on the three android or Kotlin multiplatform HTTP request libraries such as RetroFit, OkHttp, and android HttpURLConnection.

from postman-code-generators.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.