A RESTful API built with ASP.NET Core that provides my basic information including email address, current datetime, and GitHub repository URL.
GET /api/Info
{
"email": "your-email@example.com",
"current_datetime": "2025-01-30T09:30:00Z",
"github_url": "https://github.com/yourusername/your-repo"
}- 200: Successful request
curl -X GET https://your-domain.com/api/Info
# With headers
curl -X GET https://your-domain.com/api/Info \
-H "Accept: application/json"
-
Prerequisites:
- .NET 8.0 SDK
- Visual Studio 2022 or VS Code
-
Clone the repository:
git clone https://github.com/Abbanks/PublicAPI.git cd PublicAPI -
Install dependencies:
dotnet restore
-
Run the application:
dotnet run
-
Access the API:
- Local endpoint:
https://localhost:7158/api/Info - Swagger UI:
https://localhost:7158/swagger
- Local endpoint: