daily pastebin goal
80%
SHARE
TWEET

Untitled

a guest Feb 21st, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $methods["insert"]["params"] = array("int" => "id", "string" => "name");
  2. $methods["insert"]["return"] = "boolean";
  3.  
  4. $methods["delete"]["params"] = array("int" => "id");
  5. $methods["delete"]["return"] = "boolean";
  6.  
  7. $methods["get"]["params"] = array("int" => "id");
  8. $methods["get"]["return"] = "array";
  9.  
  10.  
  11. return json_encode($methods);
  12.    
  13. $methods[] = "[boolean] function insert(int $id, string $name)";
  14. $methods[] = "[boolean] function delete(int $id)";
  15. $methods[] = "[array  ] function get   (int $id)";
  16.  
  17. return json_encode($methods);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top