http: api: implement vmm.ping

vmm.ping will help to check if http API server is up and
running.

This also removes the vmm.info endpoint.

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
Jose Carlos Venegas Munoz
2019-11-04 18:06:45 +00:00
committed by Sebastien Boeuf
parent 348a1bc30e
commit a518651402
6 changed files with 81 additions and 7 deletions

View File

@@ -12,16 +12,16 @@ servers:
paths:
/vmm.info:
/vmm.ping:
get:
summary: Returns general information about the cloud-hypervisor Virtual Machine Monitor (VMM).
summary: Ping the VMM to check for API server availability
responses:
200:
description: The VMM information
content:
application/json:
schema:
$ref: '#/components/schemas/VmmInfo'
$ref: '#/components/schemas/VmmPingResponse'
/vmm.shutdown:
put:
@@ -126,7 +126,7 @@ paths:
components:
schemas:
VmmInfo:
VmmPingResponse:
required:
- version
type: object