Skip to content

Instantly share code, notes, and snippets.

View amilos's full-sized avatar

Aleksandar Milosevic amilos

View GitHub Profile
@amilos
amilos / adaptive-cards.yaml
Created October 14, 2020 13:17
Adaptive cards specification converted to swagger
openapi: 3.0.3
info:
title: Adaptive Cards
description: This is a port of Adaptive Cards schema to swagger editor for exploration
version: 1.3.0
paths: {}
components:
schemas:
AdaptiveCard:
@amilos
amilos / core.yaml
Last active June 28, 2020 09:03
Core definitions for Asseco REST APIs
# OpenAPI version identifier - required for OpenAPI 3.0 domains
openapi: 3.0.0
#######################
# Optional info section
#######################
info:
title: Acme Components
description: Common components for Acme REST APIs
@amilos
amilos / utils4sleuth.js
Created May 5, 2019 13:41
Visual aids for Sleuth case 202
/*
Utility code for Sleuth submissions
===================================
Author: Aleksandar Milosevic
License: Creative Commons CC BY 4.0
Utility provides visual aids for Sleuths submissions
- displays mouse pointer x and y position
- displays candidate line when considering next vertex
{
"type": "object",
"required": [
"openapi",
"info",
"paths"
],
"properties": {
"openapi": {
"type": "string",
@amilos
amilos / mfa.yaml
Last active December 6, 2019 14:30
swagger: '2.0'
x-asee-visibility: public
info:
description: Multifactor Authentication API enables authentication of users and signing of sensitive transactions using token based credentials or random one-time verification code sent to pre-registered email account or mobile number. Authentication and signatures using token based credentials follow OATH standard HOTP, TOTP and OCRA algorithms or their proprietary alternatives. Initiation of out-of-band authentication and signature flows is possible with images (QR code) and push messages.
title: Multifactor Authentication API
version: beta
host: bankapi.net
basePath: /beta/mfa
tags:
- description: One-time code to verify proof of control over phone number or email address
{
"type": "object",
"required": [
"openapi",
"info",
"paths"
],
"properties": {
"openapi": {
"type": "string",
@amilos
amilos / auth-events.yaml
Last active March 8, 2018 17:37
2nd Factor Authentication Events
swagger: '2.0'
info:
version: v1
title: SxS Events
description: 'Events described here tell you what happens during the use of **tokens** to authenticate users and confirm transactions.'
contact:
name: Igor Vlahek
email: [email protected]
@amilos
amilos / bg-psd2.yaml
Last active May 24, 2024 08:01
Berlin Group PSD2 API specified in Openapi v3 format
openapi: 3.0.1
info:
title: BG PSD2 API
version: "1.2"
description: |
# Summary
The **NextGenPSD2** *Framework Version 1.2* offers a modern, open, harmonised and interoperable set of
Application Programming Interfaces (APIs) as the safest and most efficient way to provide data securely.
The NextGenPSD2 Framework reduces XS2A complexity and costs, addresses the problem of multiple competing standards
in Europe and, aligned with the goals of the Euro Retail Payments Board,
@amilos
amilos / xs2a-oas2.yaml
Last active December 15, 2017 14:03
PSD2 XS2A API in OAS2 format
swagger: '2.0'
info:
version: '1.0.0'
title: PSD2 XS2A API
description: Uniform, interoperable and PSD2 compliant Access to Account interface
license:
name: MIT
url: http://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
contact:
name: Aleksandar Milosevic
@amilos
amilos / FolderController.cs
Created October 20, 2017 17:00
Use of wildcard and regex based route constraints in asp.net
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using System.IO;
namespace Asseco.Content.Controllers
{
[Route("api/v1/content/")]
public class FolderController : Controller
{
private JsonResult GetFileByPath(string repo, string folder, string file)