Giter Site home page Giter Site logo

Comments (5)

AlterionX avatar AlterionX commented on August 21, 2024

https://github.com/algorand/indexer/blob/develop/api/indexer.oas3.yml

^ the OpenAPI config file.

I haven't had a chance to see if algonaut does any of that codegen stuff, so feel free to close if it does.

from algonaut.

ivnsch avatar ivnsch commented on August 21, 2024

I was told that the initial indexer API was generated automatically, but I don't know how. To my knowledge, there's nothing in our code base to do this.

Noting that the generated code had some issues, like unnecessary use of Box, non ideal use of Option (e.g. when just a Vec makes more sense), lack of types (conversion to Address), etc. It might be possible to customize it.

from algonaut.

ivnsch avatar ivnsch commented on August 21, 2024

@manuelmauro maybe you want to add something - just saw your OpenApi clients linked in #10. It might be worth going through e.g. https://openapi-generator.tech/docs/customization/ to see if it's possible to customize it to match our current more idiomatic API.

from algonaut.

manuelmauro avatar manuelmauro commented on August 21, 2024

Yes, I can confirm that I built the current API looking at Algorand's developer documentation and the generated OAS. But I tried to improve the ergonomics addressing issues like those @ivanschuetz highlighted in the previous comment.

from algonaut.

ivnsch avatar ivnsch commented on August 21, 2024

Will be solved as part of #164 and #165

from algonaut.

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.