
Restful API
文章平均质量分 51
buyue__
这个作者很懒,什么都没留下…
展开
-
springboot后端API接口restful设计优化方案
这才是后端API接口应该有的样子!原创 2024-07-23 10:19:11 · 165 阅读 · 0 评论 -
使用 Yii2 作为微框架
官方文档 微框架,没有基础模版和高级模版,也没有前端的东西 在你的项目根目录创建composer.json,内容如下 { "require": { "yiisoft/yii2": "~2.0.0" }, "repositories": { "packagist": { "type": "composer", ...原创 2020-01-16 10:37:55 · 452 阅读 · 0 评论 -
API Blueprint
API blueprint文档格式是基于 Markdown 的拓展,向下兼容 Markdown aglio:将Markdown转换成html 安装aglio npm install -g aglio --unsafe-perm=true --allow-root # md转成html aglio -i "用户注册.md" -o output.html ...原创 2020-01-03 14:08:54 · 274 阅读 · 0 评论 -
oauth authorization api
授权链接为 api.xxxx.cm/oauth/authorization grant_type:授权方式,可选值“password”和“refresh_token”,password表示使用账号密码获得授权(会返回access_token和refresh_token),refresh_token表示通过refresh_token获得授权(会返回access_token) 第一次访问grant_t...原创 2019-12-29 09:43:28 · 288 阅读 · 0 评论 -
Yii2实现RESTful API
复制yii2原项目的frontend目录,重命名成api, common/config/bootstrap.php <?php /** * 定义别名 */ Yii::setAlias('@common', dirname(__DIR__)); $_root = dirname(dirname(__DIR__)); //api Yii::setAlias('@api', $_root...原创 2019-12-06 16:14:04 · 582 阅读 · 1 评论