[mapguide-internals] MapGuide 3.1.2 with REST

pierre.cardinal at sympatico.ca pierre.cardinal at sympatico.ca
Sun Jun 4 10:28:06 PDT 2023


Problem solved

 

De : pierre.cardinal at sympatico.ca <pierre.cardinal at sympatico.ca> 
Envoyé : 1 juin 2023 11:32
À : mapguide-internals at lists.osgeo.org
Objet : MapGuide 3.1.2 with REST 

 

Hi,

 

Config :

MapGuide 3.1.2 Bundle under Win10 

 

Installation of mapguide-rest (last distribution) needs composer 2.2
(composer 2.3.0 is installed globally on my computer and Impossible to run
"composer self-update --2.2")

 

So for the installation, I have executed the following lines: 

 

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

php -r "if (hash_file('sha384', 'composer-setup.php') ===
'55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d5
57530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo
'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"

php composer-setup.php --2.2

php -r "unlink('composer-setup.php');"

php composer.phar install

 

No problem with the installation.

 

But with http:// <http://%3cmyservername%3e/mapguide/rest/index.php>
<myservername>/mapguide/rest/index.php the response is  404 Page Not Found
because there is no route for GET “/”

 

$matchedRoutes =
$this->router->getMatchedRoutes($this->request->getMethod(),
$this->request->getResourceUri());

 

The result of $matchedRoutes = $this->router->getMatchedRoutes(“GET ”, ”/”);
is array(0).

 

Any idea ?

 

Regards,

 

Pierre

 

 

 

 

 

 

 

 



More information about the mapguide-internals mailing list