BehzadDara.AutoEndpoints
is a lightweight library designed to simplify the creation of endpoints for enumerations in .NET applications. By using custom attributes, this library automatically generates endpoints that return a list of enum values, making it easier to work with enums in your APIs.
- Automatically generates endpoints for enums with the specified route.
- Allows additional information to be added to enum fields using custom attributes.
- Simplifies the process of exposing enum values through your API.
To use this library, define your enums and annotate them with the EnumEndpointAttribute
. Additionally, you can use the InfoAttribute
to provide extra information for each enum field.
For an example of how to implement this library in your project, please refer to the Sample usage section in the repository.
Contributions are welcome! Please feel free to submit issues or pull requests.
This project is licensed under the MIT License. See the LICENSE file for more details.