Skip to content
Creating a Silex application from Gherkin feature file
PHP JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib/Api
www
.gitignore
README.md
composer.json

README.md

Create a Silex application from this file:

Feature: application API

     Scenario: List users
       Given url "/api/users/list.json"
       And request method is "GET"
       Then instance "\Api\Users"
       And execute function "listUsers"
       And format output into json

     Scenario: Get user info
       Given url "/api/user/{userName}.json"
       And request method is "GET"
       Then instance "\Api\User"
       And execute function "info"
       And format output into json

     Scenario: Update user information
       Given url "/api/user/{userName}.json"
       And request method is "POST"
       Then instance "\Api\User"
       And execute function "update"
       And format output into json

Something went wrong with that request. Please try again.