marcj / php-rest-service

Php-Rest-Service is a very simple and fast PHP class for server-side RESTful JSON APIs.
MIT License
216 stars 74 forks source link

Support unnamed methods in Auto-Collection #11

Closed mamartel closed 10 years ago

mamartel commented 10 years ago

Example: class User { get() { // List all users.. }

post($data)
{
    // Create user...
}

}

marcj commented 10 years ago

Looks good, but can you please add a test in ./Test/Controller/MyRoutes.php and check it in ./Test/Synthetic/CollectTest.php ?

urkle commented 10 years ago

I've added tests for this feature.. urkle@4213720

urkle commented 10 years ago

@marcj any chance of getting this merged into master? I referenced a commit that has the requested test. I can create a new pull request if desired.

urkle commented 10 years ago

This pull request can be closed as the changes have been merged in via #19