Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $methods["insert"]["params"] = array("int" => "id", "string" => "name");
- $methods["insert"]["return"] = "boolean";
- $methods["delete"]["params"] = array("int" => "id");
- $methods["delete"]["return"] = "boolean";
- $methods["get"]["params"] = array("int" => "id");
- $methods["get"]["return"] = "array";
- return json_encode($methods);
- $methods[] = "[boolean] function insert(int $id, string $name)";
- $methods[] = "[boolean] function delete(int $id)";
- $methods[] = "[array ] function get (int $id)";
- return json_encode($methods);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement