Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Latest commit

 

History

History

Back

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Back-End

Configuration d'apache

  • Ajouter à apache2.conf, si les fchiers sont stockes dans /var/www:

Acriver module apache rewrite:

sudo a2enmod rewrite
OLD, ne plus utiliser
<Directory /var/www/>
        AllowOverride All
</Directory>

Tester le router et l'API:

curl --data {json} -X {METHOD} localhost/v1/{action}/{id}

Avec :

json='{"param1":"value1","param2":"value2"}'
METHOD=[GET|POST|PUT|PATCH|DELETE]
action= action de la route
id= id de la ressource