Skip to content

Instantly share code, notes, and snippets.

openapi: 3.0.1
info:
title: Task rest server
version: 1.0.0
paths:
/tasks:
get:
summary: Returns a list of all tasks
responses:
'200':

Keybase proof

I hereby claim:

  • I am korzhuka on github.
  • I am korzhuka (https://keybase.io/korzhuka) on keybase.
  • I have a public key whose fingerprint is 4D4A 971E F06A 29C4 67B9 C37C 3796 3455 7913 EC43

To claim this, I am signing this object:

cd c:\Windows\System32\inetsrv>
appcmd list wps
@korzhuka
korzhuka / trace.sql
Created September 3, 2014 18:38
ms sql server express tracing
declare @traceFilePath nvarchar(255)
declare @traceId int
declare @maxFileSize bigint
declare @dbName nvarchar(255)
set @maxFileSize = 5
set @traceFilePath = N'pathToFile'
set @dbName = N'dbName'
-- create trace
@korzhuka
korzhuka / OptionsHttpMessageHandler.cs
Created July 24, 2014 06:32
asp.net web api options request handler for AttributeRouting
public class OptionsHttpMessageHandler : DelegatingHandler
{
private string ATTRIBUTE_ROUTING_CONSTAINT_NAME = "inboundHttpMethod";
private const string SEPARATOR = ",";
private const string ACCESS_CONTROL_ALLOW_METHODS = "Access-Control-Allow-Methods";
/// <summary>
/// Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.
/// </summary>
/// <returns>