Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for API Documentation #1496

Closed
bilalba opened this issue Jul 12, 2024 · 2 comments
Closed

Request for API Documentation #1496

bilalba opened this issue Jul 12, 2024 · 2 comments
Labels
api Issues or PRs related to kcl rust native APIs and multi-lang APIs good first issue Good for newcomers help wanted Extra attention is needed sdk

Comments

@bilalba
Copy link

bilalba commented Jul 12, 2024

Feature Request

Is your feature request related to a problem? Please describe:
Currently, the complete API features are only defined in the ProtoBuf Service Definition
There is no user-friendly way to know all the different API's, the arguments they expect and the output. The language specific documentation is also sparse, and only shows how to use the ExecProgram API.

Describe the feature you'd like:
A human-readable formatted list of the API's along with the arguments and the output. A link to that in the SDK documentation.

Describe alternatives you've considered:
I spent time reading the Python SDK and found out that the Python SDK is based on the Rust SDK. However, even the RUST SDK does not document all the SDK APIs. I only found details on them here.
ProtoBuf Service Definition

Teachability, Documentation, Adoption, Migration Strategy:
Good documentation will help with adaptability and make it users from different language SDK be able to quickly onboard onto KCL.

@Peefy
Copy link
Contributor

Peefy commented Jul 13, 2024

@bilalba Thank you for your feedback.

We are planning to migrate the documents in Protobuf API to different languages and provide corresponding examples and documents.

Of course, the API parameters of different SDKs are the same. I am translating the examples in protobuf to more SDKs through AI, adding them to unit tests and providing documents. For example, the tests and examples of Python SDK are in: https://github.com/kcl-lang/lib/tree/main/python/tests The testing and examples of Java SDK are available at: https://github.com/kcl-lang/lib/tree/main/java/src/test/java/com/kcl

Also, are you interested in contributing? We welcome any form of issue suggestions and PRs ❤️ We expect to provide documentation and examples for all SDKs before next weekend.

@Peefy Peefy added help wanted Extra attention is needed good first issue Good for newcomers labels Jul 13, 2024
@Peefy Peefy added this to the v0.10.0 Release milestone Jul 13, 2024
@Peefy Peefy added api Issues or PRs related to kcl rust native APIs and multi-lang APIs sdk labels Jul 13, 2024
@Peefy Peefy closed this as completed Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issues or PRs related to kcl rust native APIs and multi-lang APIs good first issue Good for newcomers help wanted Extra attention is needed sdk
Projects
None yet
Development

No branches or pull requests

2 participants