mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
添加文档
This commit is contained in:
@@ -109,10 +109,11 @@ public class StoryDemoTest extends TestBase {
|
|||||||
|
|
||||||
如果想把现有项目中的接口开放出去,提供给客户调用,具体操作如下:
|
如果想把现有项目中的接口开放出去,提供给客户调用,具体操作如下:
|
||||||
|
|
||||||
|
- 将现有项目接入到SOP,前往`项目接入到SOP`文档页查看
|
||||||
- 在现有接口方法上加上一个注解`@ApiAbility`,如下面这个接口
|
- 在现有接口方法上加上一个注解`@ApiAbility`,如下面这个接口
|
||||||
|
|
||||||
```java
|
```java
|
||||||
// 遗留接口具备开放平台能力
|
// 具备开放平台能力
|
||||||
@ApiAbility
|
@ApiAbility
|
||||||
@RequestMapping("getStory2")
|
@RequestMapping("getStory2")
|
||||||
public Story getStory2_0() {
|
public Story getStory2_0() {
|
||||||
|
Reference in New Issue
Block a user