Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

A simple To-Do API using .NET Core 3.1 to act as a base for demonstrating .NET Core 3.1 features.

Notifications You must be signed in to change notification settings

sladesoftware/dotnet-core-3-1

Repository files navigation

A Simple To-Do Application

Written using .NET Core 3.1

A simple To-Do API application using .NET Core 3.1. The purpose of this repository is to act as a baseline when demonstrating .NET Core 3.1 features.

Prerequisites

The following tools are required to run this application:

Build and Run

To build and run the application, run the following commands from the terminal when in the root project folder:

dotnet build
dotnet run

Endpoints

Once running, the application should be listening on the following ports:

  • 5000 - the insecure HTTP port. Since the application uses HSTS, all requests will be redirected to the secure port
  • 5001 - the secure HTTPS port

The following endpoints are then available:

HTTP Verb Route
GET /api/todo/{fail}
PUT /api/todo/{fail}
PATCH /api/todo/{id}/{fail}
DELETE /api/todo/{id}/{fail}

Route parameters:

  • fail - optional boolean (true or false) value
    • Defaults to false
    • When true, simulates an error in the endpoint
  • id - required integer value that specifies the unique identifier of the record to be updated or deleted

Author

Samuel Slade
Independent Consultant
Director | Slade Software Ltd
samuel.slade@sladesoftware.co.uk

About

A simple To-Do API using .NET Core 3.1 to act as a base for demonstrating .NET Core 3.1 features.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published