summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/rest/opengnsys-api.yml
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2016-11-21 13:31:51 +0000
committerramon <ramongomez@us.es>2016-11-21 13:31:51 +0000
commitde1b6b540d3e75a77e4dedf218557767120e34e6 (patch)
tree86d17084d2987314e27da04fa636a6f93b0a6fd3 /admin/WebConsole/rest/opengnsys-api.yml
parent4da1e7b0067e12b4a075321f725bcfc350d39529 (diff)
#708: Documentación ruta REST {{{/repository/images}}} y continuar con lista de campos obligatorios.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5104 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/rest/opengnsys-api.yml')
-rw-r--r--admin/WebConsole/rest/opengnsys-api.yml81
1 files changed, 73 insertions, 8 deletions
diff --git a/admin/WebConsole/rest/opengnsys-api.yml b/admin/WebConsole/rest/opengnsys-api.yml
index 82e97b38..8b299199 100644
--- a/admin/WebConsole/rest/opengnsys-api.yml
+++ b/admin/WebConsole/rest/opengnsys-api.yml
@@ -675,6 +675,7 @@ paths:
loggedin:
description: flag to check if an user is logged in
type: boolean
+ required: [ id, ip, status, loggedin ]
security:
- apikey: []
tags:
@@ -708,6 +709,7 @@ paths:
id:
type: integer
format: int32
+ required: [ id, name, ou ]
security:
- apikey: []
tags:
@@ -746,6 +748,7 @@ paths:
ip:
description: repository IP address
type: string
+ required: [ id, name, description, ip ]
security:
- apikey: []
tags:
@@ -781,6 +784,7 @@ paths:
id:
type: integer
format: int32
+ required: [ id, name, inremotepc, ou ]
security:
- apikey: []
tags:
@@ -816,9 +820,19 @@ paths:
description:
description: image description
type: string
+ comments:
+ description: extra comments
+ type: string
inremotepc:
description: image usable in Remote PC Project flag
type: boolean
+ repo:
+ description: repository identification
+ type: object
+ properties:
+ id:
+ type: integer
+ format: int32
type:
description: image type (``monolithic``, ``basic``, ``incremental``)
type: string
@@ -828,13 +842,6 @@ paths:
path:
description: image path (if ``type`` is ``incremental``)
type: string
- repo:
- description: repository identification
- type: object
- properties:
- id:
- type: integer
- format: int32
client:
description: model client's data
type: object
@@ -851,6 +858,7 @@ paths:
description: source partition number
type: integer
format: int32
+ required: [ id, disk, partition ]
creationdate:
description: image creation date
type: string
@@ -858,6 +866,7 @@ paths:
release:
description: image creation release
type: string
+ required: [ id, name, description, comments, inremotepc, repo, type ]
security:
- apikey: []
tags:
@@ -902,13 +911,69 @@ paths:
application:
description: application name and version
type: string
+ required: [ id, name, os, software ]
security:
- apikey: []
tags:
- server
- image
#/ous/{ouid}/images/{imageid}/boot:
- #/repository/images
+ /repository/images
+ get:
+ description: Get information about images stored in a repository
+ responses:
+ "200":
+ description: Successful response
+ schema:
+ type: object
+ properties:
+ disk:
+ description: repository disk information
+ type: object
+ properties:
+ total:
+ description: total disk space
+ type: string
+ used:
+ description: disk space used by files
+ type: string
+ free:
+ description: amount of free disk space
+ type: string
+ percent:
+ description: percentage of used space
+ type: string
+ required: [ total, used, free, percent ]
+ images:
+ description: information about stored images
+ type: object
+ properties:
+ file:
+ description: image file information
+ type: object
+ properties:
+ required: [ total, used, free, percent ]
+ name:
+ description: file name
+ type: string
+ size:
+ description: file size (bytes)
+ type: integer
+ format: int64
+ modified:
+ description: file modification date
+ type: string
+ format: date-time
+ permissions:
+ description: file permissions
+ type: string
+ required: [ name, size, modified, permissions ]
+ required: [ disk, images ]
+ security:
+ - apikey: []
+ tags:
+ - repository
+ - image
#/repository/poweron
/ogagent/started:
post: