Skip to content

Instantly share code, notes, and snippets.

View chester89's full-sized avatar

Gleb Chermennov chester89

View GitHub Profile
RestClient client = new RestClient();
RestRequest request = new RestRequest();
request.AddParameter("domain", domain, ParameterType.UrlSegment);
request.Resource = "{domain}/messages";
request.AddParameter("from", sender);
request.AddParameter("to", sendTo);
request.AddParameter("subject", "...");
request.AddParameter("text", "...");
request.Method = Method.POST;
@chester89
chester89 / mapping.json
Created August 2, 2018 10:04
time_mapping.json
{
"index-name-2018.07.31": {
"aliases": {},
"mappings": {
"doc": {
"properties": {
"@timestamp": {
"type": "date"
},
"time": {
@chester89
chester89 / swagger.json
Created May 5, 2021 15:18
Openapi input
{
"openapi": "2.0.1",
"info": {
"title": "MMS.TradingAccounts.Api",
"version": "1.0"
},
"servers": [
{
"url": "http://trading-accounts.uat.zfx.loc/trading-accounts/"
}