Open this template repository https://github.com/HackYourFuture-CPH/dotnet-masterclass and click on and then create a copy of this structure on your own GitHub profile with the name hyf-dotnet-masterclass
Create a PR to add your homework to the respective week folder like you are used to do in the web development course, and if you don't remember how to do hand in homework using Pull Requests, please check here https://github.com/HackYourFuture-CPH/JavaScript/blob/master/javascript1/week1/homework.md
Write a GET
endpoint that takes a string
as input and counts the frequency of each word in the string
.
Your program should output a list of objects
where each object
contains a word and its frequency.
For example, if the input string is "the quick brown fox jumps over the lazy dog", your program should output the following list:
[("the", 2), ("quick", 1), ("brown", 1), ("fox", 1), ("jumps", 1), ("over", 1), ("lazy", 1), ("dog", 1)]