Skip to content

Instantly share code, notes, and snippets.

@martyn82
martyn82 / index.php
Last active July 12, 2017 13:08
Simple local Swagger server
<?php
/**
* Simple Swagger server
* 1: Make sure your swagger file is in the same directory as this file; and it is named 'swagger.json'
* 2: Run php -S localhost:8001
*
* Open your browser to localhost:8001 and see that your swagger file is served.
* Now you can use this URL in a local SwaggerUI.
*/
header("Access-Control-Allow-Origin: *");

Keybase proof

I hereby claim:

  • I am martyn82 on github.
  • I am mend (https://keybase.io/mend) on keybase.
  • I have a public key whose fingerprint is 4624 AADD 0A01 2076 E8EA D170 2E18 D6D6 AEA2 F9D9

To claim this, I am signing this object: