- Notifications
You must be signed in to change notification settings - Fork0
Example of a REST API For Hack Lang
License
NotificationsYou must be signed in to change notification settings
mike2151/Hack-REST-API-Example
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Example of a REST API For Hack Lang usingHack Router
To install HHVM and Hack, seeinstallation
Install dependencies (UsingComposer):
composer install
hhvm -c config.ini -m server -p 8080
NOTE:If you are using Linux, you need to edit the configuration file to replace any instance of/usr/local/etc/hhvm/ with/etc/hhvm/
The server will then be running on port 8080
GET / : returns a message about a get request to the homepage
POST / : returns a message about a post request to the homepage
GET /example/{param} : returns a message with the param
About
Example of a REST API For Hack Lang
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.