Skip to content

Commit

Permalink
add vertion
Browse files Browse the repository at this point in the history
Change-Id: I3e4a28292fcd39cd463d9e9387643e9be1d784cd
  • Loading branch information
Linary committed May 30, 2019
1 parent fd09828 commit a8ffe8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hugegraph-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
</addDefaultSpecificationEntries>
</manifest>
<manifestEntries>
<Implementation-Version>0.38.0.0</Implementation-Version>
<Implementation-Version>0.39.0.0</Implementation-Version>
</manifestEntries>
</archive>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
import com.baidu.hugegraph.util.E;
import com.baidu.hugegraph.util.InsertionOrderUtil;
import com.baidu.hugegraph.util.JsonUtil;
import com.baidu.hugegraph.version.ApiVersion;
import com.baidu.hugegraph.version.CoreVersion;
import com.codahale.metrics.annotation.Timed;

@Path("/")
Expand All @@ -66,6 +68,7 @@ public String getProfile(@Context Application application) {

Map<String, Object> profiles = InsertionOrderUtil.newMap();
profiles.put("service", SERVICE);
profiles.put("version", CoreVersion.VERSION.toString());
profiles.put("doc", DOC);
profiles.put("api_doc", API_DOC);
Set<String> apis = new HashSet<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,13 @@ public final class ApiVersion {
* [0.36] Issue-360: Support paging for scan api
* [0.37] Issue-391: Add skip_super_node for shortest path
* [0.38] Issue-274: Add personalrank and neighborrank RESTful API
*
* version 0.10:
* [0.39] Issue-522: Add profile RESTful API
*/

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

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

0 comments on commit a8ffe8c

Please sign in to comment.