Skip to content

Commit e78d94e

Browse files
committed
Updated spec format to actually be valid Swagger
1 parent 11789d2 commit e78d94e

File tree

17 files changed

+9476
-37
lines changed

17 files changed

+9476
-37
lines changed

example.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ function getSSLPage($url) {
3737

3838
//$spec = getSSLPage('https://appwrite.io/v1/open-api-2.json?extensions=1');
3939
// $spec = getSSLPage('https://appwrite.io/v1/open-api-2.json?extensions=1'); // Enable only with Appwrite local server running on port 80
40-
$spec = getSSLPage('https://appwrite.io/v1/open-api-2.json?extensions=1&platform=console'); // Enable only with Appwrite local server running on port 80
40+
// $spec = getSSLPage('https://appwrite.io/v1/open-api-2.json?extensions=1&platform=console'); // Enable only with Appwrite local server running on port 80
4141

42+
$spec = file_get_contents('./specs/swagger-appwrite.0.7.0.json');
43+
4244
if(empty($spec)) {
4345
throw new Exception('Failed to fetch spec from Appwrite server');
4446
}

0 commit comments

Comments
 (0)