Skip to content

Instantly share code, notes, and snippets.

View mathis-m's full-sized avatar
💻
coding

Mahtis Michel mathis-m

💻
coding
  • Avanade
  • Stuttgart, Germany
View GitHub Profile
@mathis-m
mathis-m / ElasticApmDependencyInjectionExtension.cs
Last active August 2, 2020 17:12
Integrate Elastic APMAgent into .Net Core Console Application using the convinient Microsoft.Extensions.DependencyInjection package.
using System;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using System.Threading.Tasks.Dataflow;
using Elastic.Apm.Api;
using Elastic.Apm.Config;
using Elastic.Apm.DiagnosticSource;
using Elastic.Apm.Logging;
using Microsoft.Extensions.Configuration;
openapi: 3.0.1
info:
title: Example Swagger
version: '1.0'
servers:
- url: /api/v1
paths:
/test/{id}/related/{relatedId}:
get:
parameters:
openapi: 3.0.1
info:
title: Example Swagger
version: '1.0'
servers:
- url: /api/v1
paths:
/test/{id}/related/{relatedId}:
post:
parameters:
openapi: 3.0.1
info:
title: Example Swagger
version: '1.0'
servers:
- url: /api/v1
paths:
/street:
get:
tags:
openapi: 3.0.0
info:
version: "{version}"
title: Sample API with anyOf and oneOf
paths:
/test:
get:
parameters:
- in: query
name: afterDate
`JsonSchema_${type}_${format}`
@mathis-m
mathis-m / JsonSchema_{type}.js
Created February 12, 2021 08:04
JsonSchema_{type}
`JsonSchema_${type}`
@mathis-m
mathis-m / JsonSchema_string.js
Created February 12, 2021 08:05
JsonSchema_string
`JsonSchema_string`
@mathis-m
mathis-m / string_date.yaml
Created February 12, 2021 08:06
string date
type: string
format: date