Teapot.AspNetCore 1.0.2

A library including a 'teapot' endpoint with a 'brewcoffee' method.

Install-Package Teapot.AspNetCore -Version 1.0.2
dotnet add package Teapot.AspNetCore --version 1.0.2
<PackageReference Include="Teapot.AspNetCore" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Teapot.AspNetCore --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Info

This is a simple library including a 'teapot' endpoint with a 'brewcoffee' method.

The Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0) states the following:

Any attempt to brew coffee with a teapot should result in the error code &quot;418 I&#39;m a teapot&quot;. The resulting entity body MAY be short and stout..

I hear you think, what is the use of this random teapot/brewcoffee endpoint if you're not creating an API for a controllable teapot? Well, you might want to:

  • check whether your API is up and running;
  • start your application afer deploying it;
  • prevent application pool recycling;
  • add it as a joke (that is how this status code was born after all).

Quick-Start

  1. Install the library from NuGet into your .NET Core 3 API project.
  2. In ConfigureServices in your startup.cs call .AddTeapot() on the IMvcBuilder, for example:

public void ConfigureServices(IServiceCollection services) { services.AddControllers().AddTeapot(); }

Info

This is a simple library including a 'teapot' endpoint with a 'brewcoffee' method.

The Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0) states the following:

Any attempt to brew coffee with a teapot should result in the error code &quot;418 I&#39;m a teapot&quot;. The resulting entity body MAY be short and stout..

I hear you think, what is the use of this random teapot/brewcoffee endpoint if you're not creating an API for a controllable teapot? Well, you might want to:

  • check whether your API is up and running;
  • start your application afer deploying it;
  • prevent application pool recycling;
  • add it as a joke (that is how this status code was born after all).

Quick-Start

  1. Install the library from NuGet into your .NET Core 3 API project.
  2. In ConfigureServices in your startup.cs call .AddTeapot() on the IMvcBuilder, for example:

public void ConfigureServices(IServiceCollection services) { services.AddControllers().AddTeapot(); }

  • .NETCoreApp 3.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.2 75 10/25/2019