Codewar Practice API
Objectives
- Create a simple API
- Practice problem solving
Requirements
- Before starting solve these two codewars:
- Digits Explosion https://www.codewars.com/kata/digits-explosion
- Mumbling https://www.codewars.com/kata/mumbling
- TOP TIP: Digits Explosion is probably an easier algorithm to create. Start there!
Setup
dotnet new sdg-api -o CodeWarPracticeAPI
Resources
- Use Insomnia for interacting with your API.
Explorer Mode
- Create a new
sdg-api
api project - Create a Controller for
explosion
namedExplosionController
- This will have one
HttpGet
method - The method will accept a string either as a URL parameter or a query parameter. Your choice.
- This endpoint method will take the string passed to it, manipulate according to the kata https://www.codewars.com/kata/digits-explosion and return the result
- Have your code return the string
- This will have one
- Create a Controller for
mumbling
namedMumblingController
- This will have one
HttpGet
method - The method will accept a string either as a URL parameter or a query parameter. Your choice.
- This endpoint method will take the string passed to it, manipulate according to the kata https://www.codewars.com/kata/mumbling and return the result
- Have your code return the string
- This will have one
Adventure Mode
None
Epic Mode
None