# oc-api **Repository Path**: onecreate/oc-api ## Basic Information - **Project Name**: oc-api - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-12-08 - **Last Updated**: 2026-03-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README OC-Api =============== ## 说明 thinkphp5编写的restful风格的API,集API请求处理,权限认证,自动生成文档等功能; - restful风格处理请求 > 每个接口对于一个控制器,method对应[method]方法响应 - 权限认证 > Basic,Oauth Client Credentials Grant - 文档生成 > 简洁,优雅,不需要额外的文档工具; ## 安装 - 如果想在你的TP5项目中使用,那么可以直接使用 ``` composer require onecreate/oc-api ``` - 如果是新项目先要创建tp5项目,然后再require ``` composer create-project topthink/think api --prefer-dist composer require onecreate/oc-api ``` - 如果要使用生成文档 需要在public/static/ 下 安装hadmin ``` cd /public/static/ git clone https://github.com/liushoukun/hadmin.git ``` ## dome & 文档 [https://github.com/liushoukun/dawn-api-demo](https://github.com/liushoukun/dawn-api-demo)