Query the basic information of an OCP application

2023-08-15 02:30:55  Updated

Description

You can call this operation to query the basic information about an OCP application, such as the version number, build date, and Java version.

Call description

Prerequisite

You have passed the authentication for the OCP application service.

Request path

GET /api/v2/info

Request parameters

None.

Response parameters

Parameter Type Description
name String The application service name.
group Array The Maven group name of the build.
artifact Object The object name of the build.
buildTime Datetime The build time.
buildVersion String The build version.
buildJavaVersion String The Java version used for the build.
springBootVersion String The Spring version used for the build.

Examples

Sample request

GET /api/v2/info

Sample response

{
    "artifact": "ocp-server",
    "buildVersion": "2.5.0-SNAPSHOT",
    "buildJavaVersion": "1.8",
    "buildTime": "2020-11-29T05:43:31.644+08:00",
    "name": "ocp-server",
    "springBootVersion": "2.2.5.RELEASE",
    "group": "com.oceanbase"
}

Contact Us