Skip to content
Snippets Groups Projects
Commit d80c8455 authored by Rodrigo Goncalves's avatar Rodrigo Goncalves
Browse files

Support for update endpoint

parent 9f577ed8
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ function context($url, $domain, $content) {
header('Content-Type: application/json');
}
if (substr( $url, 0, 4 ) == "/get") {
if (substr( $url, 0, 4 ) == "/get" || substr( $url, 0, 7 ) == "/update") {
$url = $url . "/" . $content['smartDataContextId'];
}
......@@ -45,6 +45,7 @@ function context($url, $domain, $content) {
}
try {
if (array_key_exists('docs', $_GET)) {
echo context("/docs", null, null);
} else if (array_key_exists('openapi', $_GET)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment