Slim api 带有表用户的RESTFul API示例(PHP MySQL Slimframework)。这个api ...
##这个api使用授权:Basic配置数据库在您的数据库上复制schema.sql并配置: $dbhost = "本地主机"; $dbuser = "root"; $dbpass = "root"; $dbname = "数据名";示例cURL命令// Create a user $ curl -H "Content-Type: application/json" -X POST -d '{ "lastname": "exmaplelastname", "firstname": "examplefirstname", "email": "pierreddzmcksa@mail.fr", "role": "normal", "password": "pass" }' -u useradmin@mail.fr:password http://yourapiurl/users
用户评论