StringAPI is a simple ASP.NET Core Web API that provides endpoints for string manipulation. It includes functionality to reverse a string and check if it is a palindrome.
- Clone the project within Visual Studio
- dotnet build
- Press the start to build the project (dotnet run project)
- A page displaying StringAPI header
- Click on the Get/api/client/string/{input} and it will drop-down
- Click on the 'Try it out' so the input textbox can allow you to add informaton
- Add a text example 'hello' then click on execute and response will be shown.
- Then you have a choice to either clear the information or Execute again
- .NET SDK 8.0
- Swagger for API Documentation
git clone https://github.com/ofentse-sithole/StringAPI
Reverse and Check Palindrome
Endpoint: /api/client/string/{input} Method: GET
-
Request Example: GET http://localhost:5001/api/client/string/hello Accept: application/json
-
Response Example: { "ReversedString": "olleh", "IsPalindrome": false }