https://github.com/kris701/autopoint
A small system to centralise what API endpoints are what across multiple languages
https://github.com/kris701/autopoint
api csharp web
Last synced: 9 months ago
JSON representation
A small system to centralise what API endpoints are what across multiple languages
- Host: GitHub
- URL: https://github.com/kris701/autopoint
- Owner: kris701
- License: mit
- Created: 2024-08-22T10:16:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-12T06:13:59.000Z (over 1 year ago)
- Last Synced: 2025-01-21T06:25:56.533Z (over 1 year ago)
- Topics: api, csharp, web
- Language: C#
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://github.com/kris701/AutoPoint/actions/workflows/dotnet-desktop.yml)







# AutoPoint
This is a project to make it easier to syncronize API endpoints across multiple languages.
Say you have a API and a frontend in two different languages, making sure that the frontend is pointing to the correct endpoints, especially when renaming things, can be quite difficult.
This project tries to make it more static, by generating a static reference file in each language based on an API definition.
As an example, take the definition:
```json
{
"Includes": [],
"Branch": {
"name": "simple",
"Nodes": [
]
}
}
```
If you then write into a terminal the following
`autopoint -t api.json -p CSharpProducer`
It will output a generated C# file with the static names as follows:
```csharp
// This document is auto generated!
public static class simple {
public const string Name = "simple";
}
```
The currently available producers are:
* `CSharpProducer`, to make C# code
* `JavaScriptProducer`, to make JS code
* `TypeScriptProducer`, to make TS code
This package is available as a tool on the [NuGet Package Manager](https://www.nuget.org/packages/AutoPoint/), so you can install it by writing `dotnet tool install AutoPoint` in a terminal.