-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ISSUE #4848]Storage adjustment for swagger type API documents: chang…
…e from local cache to database. (#4849) * apidoc sql * refact * commit * [Task] Shenyu-admin: Fix API document failed to build because of NPE. * [Task] Shenyu-admin: Fix API document failed to build because of NPE. * solve conficts,modify LICENSE. * delete useless code. * delete useless code. * commit * [ISSUE #3843]admin apidoc fix: the required attribute prompt is incorrect when micro service parameter uses "@ApiModelProperty". * commit * [shenyu-examples]add swagger to the example project to test the apidoc function of the gateway management system. * commit * commit * commit * [ISSUE #4690]Supports gzip compression in response to HTTP requests. * [examples]Add Swagger sample project to demonstrate automatic pull interface documentation. * delete exapmple * delete useless code. * delete useless code. * swagger apidoc from local cache to database persistence. * Storage adjustment for swagger type documents :from local cache to database persistence. * fix get httpMethod * Fix unit testing. * Fix unit testing. * Fix unit testing. * code style. * Fix unit testing. * delete unused imports. --------- Co-authored-by: lianjunwei <lianjunwei@didiglobal.com> Co-authored-by: dragon-zhang <zhangzicheng@apache.org> Co-authored-by: xiaoyu <xiaoyu@apache.org>
- Loading branch information
1 parent
a62a04c
commit 327bf65
Showing
18 changed files
with
456 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...yu-admin/src/main/java/org/apache/shenyu/admin/service/manager/RegisterApiDocService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.shenyu.admin.service.manager; | ||
|
||
import org.apache.shenyu.register.common.dto.ApiDocRegisterDTO; | ||
|
||
/** | ||
* register api document manager. | ||
*/ | ||
public interface RegisterApiDocService { | ||
|
||
/** | ||
* register api document. | ||
* @param apiDocRegisterDTO apiDocRegisterDTO | ||
*/ | ||
void registerApiDocument(ApiDocRegisterDTO apiDocRegisterDTO); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.