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
@MikeRalphson
MikeRalphson / spoonacular.json
Created January 7, 2021 13:34
Amended spoonacular OpenAPI definition to pass validation
{
"openapi": "3.0.0",
"info": {
"title": "spoonacular API",
"description": "The spoonacular Nutrition, Recipe, and Food API allows you to access over 380,000 recipes, thousands of ingredients, 80,000 food products, and 100,000 menu items. Our food ontology and semantic recipe search engine makes it possible to search for recipes using natural language queries, such as \"gluten free brownies without sugar\" or \"low fat vegan cupcakes.\" You can automatically calculate the nutritional information for any recipe, analyze recipe costs, visualize ingredient lists, find recipes for what's in your fridge, find recipes based on special diets, nutritional requirements, or favorite ingredients, classify recipes into types and cuisines, convert ingredient amounts, or even compute an entire meal plan. With our powerful API, you can create many kinds of food and especially nutrition apps.\n\nSpecial diets/dietary requirements currently available include: vegan, vegetarian, pescetarian, gluten free, grain free
@MikeRalphson
MikeRalphson / a21s.md
Created December 30, 2020 11:58
Samsung Galaxy A21S info

Enabling Developer Options

  • From a Home screen, swipe up or down from the center of the display to access the apps screen. Note These instructions only apply to the default Home screen layout.
  • Navigate: Settings Settings icon > Developer options Developer options icon.
  • Note If unavailable, swipe up or down from the center of the display then navigate: Settings > About phone > Software information then tap Build number 7 times.
  • Note If presented, enter the current PIN, password or pattern.
  • Ensure the Developer options switch (upper-right) is turned on Switch on icon.
  • From the Debugging section, tap USB debugging to turn on or off.
  • If prompted, tap OK to confirm.
@MikeRalphson
MikeRalphson / openapi31.yaml
Last active December 8, 2020 10:22
OpenAPI 3.1 $ref inside and outside schema objects
openapi: 3.1.0
info:
title: My API
version: 1.0.0
paths:
/things:
post:
parameters:
- $ref: '#/components/parameters/type'
description: The type of the thing to submit # only summary and description are effective here, they override any inside the $ref
@MikeRalphson
MikeRalphson / key.md
Created November 29, 2020 11:44
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

@MikeRalphson
MikeRalphson / openapi.yaml
Created November 19, 2020 15:24
OpenAPI Hello World example
openapi: 3.0.0
info:
title: Hello World
version: 1.0.0
paths:
/hello:
get:
parameters:
- name: name
in: query
@MikeRalphson
MikeRalphson / 404.md
Created August 19, 2020 07:59
APIs.guru API's missing in action

APIs missing in action

Cool URIs don't change

Can you help?

Over the years, some API definitions have gone missing at their original source URLs. Maybe the company or API has shut down, maybe they don't use a machine-readable API definition any more, or maybe we just haven't been able to find where it's gone.

@MikeRalphson
MikeRalphson / openuv.yaml
Created July 16, 2020 14:44
OpenUV API converted from RAML 1.0 to OAS 3.0 (fixed)
openapi: 3.0.0
info:
title: OpenUV - Global Real-Time UV Index Forecast API
description: The missing minimalistic JSON real-time UV Index API for awesome
Developers, Innovators and Smart Home Enthusiasts
version: v1
servers:
- url: https://api.openuv.io/api/{version}
variables:
version:
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>APIs.guru OpenAPI directory RSS feed</title>
<link>https://api.apis.guru/v2/list.rss</link>
<atom:link rel="self" href="https://api.apis.guru/v2/list.rss" type="application/rss+xml"/>
<description>APIs.guru OpenAPI directory RSS feed</description>
<webMaster>[email protected] (Mike Ralphson)</webMaster>
<pubDate>Wed, 15 Jul 2020 07:35:37 GMT</pubDate>
<generator>openapi-directory https://github.com/apis-guru/openapi-directory</generator>
openapi: 3.0.0
info:
title: API
version: 1.0.0
paths:
/:
get:
security:
- apikey1: []
apikey2: []
{
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "Reinvent-API",
"description": "Reusable and minimalistic API for Hyperledger-fabric Networks",
"contact": {
"name": "Dev",
"email": "[email protected]",
"url": "https://dev.github.io/"