From d40244cb06d7814faef56b1bb1da056545263da8 Mon Sep 17 00:00:00 2001 From: laf Date: Wed, 17 Sep 2014 18:49:04 +0100 Subject: [PATCH] Moved to version 0 of the api for release --- html/.htaccess | 2 +- html/{api_v1.php => api_v0.php} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename html/{api_v1.php => api_v0.php} (97%) diff --git a/html/.htaccess b/html/.htaccess index 341337df5f..58ae91a49b 100644 --- a/html/.htaccess +++ b/html/.htaccess @@ -8,7 +8,7 @@ RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !\.(js|ico|txt|gif|jpg|png|css|php) -RewriteRule ^api/v1/(.*)$ api_v1.php/$1 [L] +RewriteRule ^api/v0/(.*)$ api_v0.php/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !\.(js|ico|txt|gif|jpg|png|css|php) diff --git a/html/api_v1.php b/html/api_v0.php similarity index 97% rename from html/api_v1.php rename to html/api_v0.php index 34ec256135..dec3e890ec 100644 --- a/html/api_v1.php +++ b/html/api_v0.php @@ -28,7 +28,7 @@ require_once("includes/api_functions.inc.php"); $app->setName('api'); $app->group('/api', function() use ($app) { - $app->group('/v1', function() use ($app) { + $app->group('/v0', function() use ($app) { $app->group('/devices', function() use ($app) { $app->get('/:hostname/ports/:ifname/:type', 'authToken', 'get_graph_by_port_hostname');//api/v1/devices/$hostname/ports/$ifName/$type $app->get('/:hostname/:type', 'authToken', 'get_graph_generic_by_hostname');//api/v1/devices/$hostname/$type