Skip to content

BehzadDara/BehzadDara.AutoEndpoints

Repository files navigation

BehzadDara.AutoEndpoints

NuGet

Overview

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.

Features

  • 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.

Usage

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.

Sample Usage

For an example of how to implement this library in your project, please refer to the Sample usage section in the repository.

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

GitHub Repository

BehzadDara.AutoEndpoints on GitHub

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages