Skip to content

Commit

Permalink
Merge pull request #416 from Peefy/update-dotnet-api-docs
Browse files Browse the repository at this point in the history
docs: add dotnet API reference docs
  • Loading branch information
Peefy authored Jul 15, 2024
2 parents a8a4b4c + e229428 commit 016df08
Show file tree
Hide file tree
Showing 8 changed files with 2,516 additions and 36 deletions.
622 changes: 622 additions & 0 deletions docs/reference/xlang-api/dotnet-api.md

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions docs/reference/xlang-api/java-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,13 @@ app: AppConfig {

Java Code

```python
import kcl_lib.api as api

args = api.LoadPackage_Args(
parse_args=api.ParseProgram_Args(paths=["schema.k"]), resolve_ast=True
)
api = api.API()
result = api.load_package(args)
assert list(result.symbols.values())[0].ty.schema_name == "AppConfig"
```java
import com.kcl.api.*;

API api = new API();
LoadPackage_Result result = api.loadPackage(LoadPackage_Args.newBuilder().setResolveAst(true)
.setWithAstIndex(true)
.setParseArgs(ParseProgram_Args.newBuilder().addPaths("schema.k").build()).build());
```

</p>
Expand Down
Loading

0 comments on commit 016df08

Please sign in to comment.