A .Net 6 Web API project to help you make decisions.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
Decision Maker API is a Web API created with .Net 6. It contains features such as CRUD, pagination, sorting and filtering. This is my first .Net project and is still incomplete.
Go to https://github.com/raihahahan/decision-maker-nextjs-client to see an example of a web client for this Web API. You are free to make use of this API to create your own client.
- For a much clearer overview of the schema and endpoints, go to https://localhost:{port}/swagger/index.html.
- From a list of choices, randomly return a decision.
GET /api/RandomDecisionItems
POST /api/RandomDecisionItems
GET /api/RandomDecisionItems/{id}
PUT /api/RandomDecisionItems/{id}
DELETE /api/RandomDecisionItems/{id}
GET /api/RandomDecisionItems/{id}/decide
- From a list of choices, provide a list of criteria affecting your choice.
- For example, for a list of cars, some criteria may be budget, convenience, specs etc.
- Weigh how important each criteria is for each choice.
GET /api/WeightedDecisionItems
POST /api/WeightedDecisionItems
GET /api/WeightedDecisionItems/{id}
PUT /api/WeightedDecisionItems/{id}
DELETE /api/WeightedDecisionItems/{id}
POST /api/WeightedDecisionItems/{id}/decide
- From a list of choices, provide a list of conditions affecting your choice.
- For example, for a list of commuting method (e.g. bicycle, public transport, private transport), some conditions may be "Rainy weather", "Must report to work earlier" etc. And for each condition, there are two lists,
include
andexclude
, each containing a list of choices to include and exclude respectively if the given condition is true.
GET /api/ConditionalDecisionItems
POST /api/ConditionalDecisionItems
GET /api/ConditionalDecisionItems/{id}
PUT /api/ConditionalDecisionItems/{id}
DELETE /api/ConditionalDecisionItems/{id}
POST /api/ConditionalDecisionItems/{id}/decide
You will need to install dotnet. See https://dotnet.microsoft.com/en-us/.
- Clone the repo
git clone https://github.com/raihahahan/decision-maker-api.git
- Restore the dependencies and tools of the project.
dotnet restore
- Start the project.
dotnet run
- CRUD for each feature.
- Search, filters, pagination.
- Unit testing.
- Authentication to save the decisions into an account.
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Email: [email protected] Website: https://mraihan.vercel.app