Skip to content

Instantly share code, notes, and snippets.

View MikeRalphson's full-sized avatar
💭
I may be slow to respond.

Mike Ralphson MikeRalphson

💭
I may be slow to respond.
View GitHub Profile
{
"info": {
"_postman_id": "64db4d98-d050-4f4b-8a02-86be628160f9",
"name": "Cognitive Search API - User Group",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "641744"
},
"item": [
{
"name": "Create SharePoint Data Source",
@MikeRalphson
MikeRalphson / postman-network.json
Created October 1, 2023 01:31 — forked from kinlane/postman-network.json
postman-network.json
[
{
"title": "PayPal Here",
"link": "https://explore.postman.com/team/paypalhere",
"image": "https://static.getpostman.com/assets/apinetwork/paypalhere-logo.png"
},
{
"title": "Imgur",
"link": "https://explore.postman.com/team/imgur",
"image": "https://static.getpostman.com/assets/apinetwork/imgur-logo.png"
@MikeRalphson
MikeRalphson / Dockerfile
Last active March 15, 2023 09:02
OAI gh-pages base Dockerfile
# https://github.com/BretFisher/jekyll-serve/blob/main/README.md license: MIT
FROM ruby:3.1-slim-bullseye as jekyll
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*
# used in the jekyll-server image, which is FROM this image
COPY docker-entrypoint.sh /usr/local/bin/
https://aiception.com/static/swagger.json @AIception
https://docs.api.video/openapi/5f0d4679158b8d006ea6f068
https://appwrite.io/specs/open-api3?platform=client
https://appwrite.io/specs/open-api3?platform=server
https://ato-team.github.io/business-registries-rest-api-specification/swagger.yaml
http://api.aviationdata.systems//swagger/docs/v1 @aviationdataSYS
http://support.beanstream.com/restapi/swagger.json
https://budgea.biapi.pro/2.0/doc/
https://a.blazemeter.com/api/v4/explorer/resources.json @BlazeMeter
http://ccsapi-doc.mybluemix.net/swagger.json
@MikeRalphson
MikeRalphson / openapi.yaml
Created July 8, 2021 10:18
openapi 3.1 maxed Schema example
openapi: 3.1.0
info:
version: 1.0.0
title: API
jsonSchemaDialect: 'http://json-schema.org/draft-04/schema#'
components:
schemas:
draft4:
exclusiveMaximum: true
draft202012:
@MikeRalphson
MikeRalphson / state-of-oai.md
Last active July 2, 2021 06:34
State of OAI talk resources
@MikeRalphson
MikeRalphson / openapi.json
Last active March 4, 2024 01:47
Soundcloud OpenAPI
{
"openapi": "3.0.1",
"info": {
"title": "SoundCloud Public API Specification",
"contact": {
"name": "API issue tracker",
"url": "https://github.com/soundcloud/api"
},
"version": "1.0.0",
"termsOfService": "https://developers.soundcloud.com/docs/api/terms-of-use"
@MikeRalphson
MikeRalphson / inner.yaml
Created February 19, 2021 16:32
inner.yaml test for $id resolution
type: string
@MikeRalphson
MikeRalphson / tree.js
Last active January 25, 2021 09:58
Automatically extending objects in Javascript
// based on https://hacks.mozilla.org/2015/07/es6-in-depth-proxies-and-reflect/
function Tree(base = {}) {
return new Proxy(base, treeHandler);
}
const treeHandler = {
get: function (target, key, receiver) {
if (!(key in target) && key !== 'toJSON' && key !== Symbol.iterator) {
target[key] = Tree(); // auto-create a sub-Tree
@MikeRalphson
MikeRalphson / parseWithComments.js
Created January 23, 2021 14:36
Parse YAML preserving comments in a given JSON property
const yaml = require('yaml');
const recurse = require('reftools/lib/recurse.js').recurse;
const ast = yaml.parseDocument(inputStr);
recurse(ast,{},function(obj,key,state){
let comment;
if (obj[key] && obj[key].commentBefore) {
comment = obj[key].commentBefore;
}