Exploring tools that allow converting a JSON response automagically into an OpenAPI / Swagger spec.
{
"accounts": {
"default": {| from datetime import date, timedelta | |
| def today(): | |
| return date.today() | |
| def given_policy(started_days_ago=0, premium=1000, grace_period_days=14): | |
| start_date = today() - timedelta(days=started_days_ago) | |
| return InsurancePolicy(start_date=start_date, premium=premium, grace_period_days=grace_period_days) |
| <?php | |
| add_filter( 'multibanco_ifthen_valid_callback_pending_status', 'ifthen_valid_callback_pending_status' ); | |
| add_filter( 'mbway_ifthen_valid_callback_pending_status', 'ifthen_valid_callback_pending_status' ); | |
| function ifthen_valid_callback_pending_status( $status ) { | |
| $status[] = 'wc-on-hold'; //Add "wc-on-hold" | |
| $status[] = 'wc-pending'; //Add "wc-pending" | |
| return $status; | |
| } |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="align-content"> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <style id="jsbin-css"> | |
| .container{ | |
| display: flex; |
| @media (min-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ } | |
| @media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ } | |
| @media (min-width:600px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ } | |
| @media (min-width:801px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ } | |
| @media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ } | |
| @media (min-width:1281px) { /* hi-res laptops and desktops */ } |