Skip to content

User \Rest\Server without URLRewrite #3

Description

@karneaud

How do you addMap to endpoints if you are not using URLRewrite?

e.g.

$server = new \Rest\Server($_POST['uri']); // where POST is array('uri'=>'/users','key1'=>'value1','key2'=>'value2')
$server->addMap('POST','/users/:key1/:key2',function($rest){}) // where uri is POST['uri'] and other posted key vaules translate to path?

i'm not sure i follow the logic for non URLRewrite use

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions