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:
{
"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:
// This document is auto generated!
public static class simple {
public const string Name = "simple";
}
The currently available producers are:
CSharpProducer
, to make C# codeJavaScriptProducer
, to make JS code
This package is available as a tool on the NuGet Package Manager, so you can install it by writing dotnet tool install AutoPoint
in a terminal.