https://github.com/ofentse-sithole/stringapi
WebCore.API that takes a string as input, returns the reversed string, and checks if the input string is a palindrome, accessible via an endpoint.
https://github.com/ofentse-sithole/stringapi
Last synced: 7 months ago
JSON representation
WebCore.API that takes a string as input, returns the reversed string, and checks if the input string is a palindrome, accessible via an endpoint.
- Host: GitHub
- URL: https://github.com/ofentse-sithole/stringapi
- Owner: ofentse-sithole
- License: mit
- Created: 2024-07-21T17:29:42.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-21T17:56:05.000Z (about 1 year ago)
- Last Synced: 2024-07-21T19:43:34.316Z (about 1 year ago)
- Language: C#
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# StringAPI
## Overview
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.## How Project Runs
1. Clone the project within Visual Studio
2. dotnet build
3. Press the start to build the project (dotnet run project)
4. A page displaying StringAPI header
5. Click on the Get/api/client/string/{input} and it will drop-down
6. Click on the 'Try it out' so the input textbox can allow you to add informaton
7. Add a text example 'hello' then click on execute and response will be shown.
8. Then you have a choice to either clear the information or Execute again## Dependencies
1. .NET SDK 8.0
2. Swagger for API Documentation## Setup
git clone https://github.com/ofentse-sithole/StringAPI## Usage
Reverse and Check PalindromeEndpoint: /api/client/string/{input}
Method: GET1. Request Example:
GET http://localhost:5001/api/client/string/hello
Accept: application/json2. Response Example:
{
"ReversedString": "olleh",
"IsPalindrome": false
}