Skip to content

Commit

Permalink
chore(api): update api version & swagger token auth mode
Browse files Browse the repository at this point in the history
  • Loading branch information
SunnyBoy-WYH committed Nov 27, 2023
1 parent 6ec394b commit f431efc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
type = SecuritySchemeType.HTTP,
scheme = "basic"
)
@SecurityScheme(
name = "bearer",
type = SecuritySchemeType.HTTP,
scheme = "bearer"
)
@ApplicationPath("/")
@OpenAPIDefinition(
info = @Info(
Expand All @@ -62,7 +67,7 @@
description = "All management API for HugeGraph",
contact = @Contact(url = "https://github.com/apache/hugegraph", name = "HugeGraph")
),
security = {@SecurityRequirement(name = "basic")}
security = {@SecurityRequirement(name = "basic"), @SecurityRequirement(name = "bearer")}
)
public class ApplicationConfig extends ResourceConfig {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,14 @@ public final class ApiVersion {
* [0.67] Issue-1065: Support dynamically add/remove graph
* [0.68] Issue-1763: Support adamic-adar & resource-allocation API
* [0.69] Issue-1748: Support Cypher query RESTful API
* [0.70] Issue-2242: Optimising adjacency edge queries
* [0.71] PR-2286: Support Arthas API & Metric API prometheus format
*/

/**
* The second parameter of Version.of() is for IDE running without JAR
*/
public static final Version VERSION = Version.of(ApiVersion.class, "0.69");
public static final Version VERSION = Version.of(ApiVersion.class, "0.71");

public static void check() {
// Check version of hugegraph-core. Firstly do check from version 0.3
Expand Down

0 comments on commit f431efc

Please sign in to comment.