Skip to content

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.

License

Notifications You must be signed in to change notification settings

ofentse-sithole/StringAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Palindrome

Endpoint: /api/client/string/{input} Method: GET

  1. Request Example: GET http://localhost:5001/api/client/string/hello Accept: application/json

  2. Response Example: { "ReversedString": "olleh", "IsPalindrome": false }

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages