Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Example of a REST API For Hack Lang

License

NotificationsYou must be signed in to change notification settings

mike2151/Hack-REST-API-Example

Repository files navigation

Example of a REST API For Hack Lang usingHack Router

To install HHVM and Hack, seeinstallation

Running The Server

Install dependencies (UsingComposer):

composer install

Run:

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

Routes Included In This Project

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp