Teapot.AspNetCore 1.0.2

dotnet add package Teapot.AspNetCore --version 1.0.2                
NuGet\Install-Package Teapot.AspNetCore -Version 1.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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                
#r "nuget: Teapot.AspNetCore, 1.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Teapot.AspNetCore as a Cake Addin
#addin nuget:?package=Teapot.AspNetCore&version=1.0.2

// Install Teapot.AspNetCore as a Cake Tool
#tool nuget:?package=Teapot.AspNetCore&version=1.0.2                

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 "418 I'm a teapot". 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(); }

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 is compatible.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 566 10/25/2019