basePath: /api/v1 definitions: models.CPU: properties: cores: type: integer id: type: integer name: type: string socket: type: integer time: type: string type: object models.CreateHostInput: properties: hostname: type: string type: object models.Host: properties: cpus: items: $ref: '#/definitions/models.CPU' type: array hostname: type: string id: type: integer memory: items: $ref: '#/definitions/models.Memory' type: array type: object models.Memory: properties: Usage: type: number id: type: integer time: type: string total: type: integer type: type: string used: type: integer type: object info: contact: {} paths: /hosts/create: post: consumes: - application/json description: Create a host parameters: - description: The host to create in: body name: host required: true schema: $ref: '#/definitions/models.CreateHostInput' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/models.CreateHostInput' summary: Create a host tags: - Hosts /hosts/get_host_by_hostname/{hostname}: get: consumes: - application/json description: Get a host by hostname parameters: - description: The hostname to get the host by in: path name: hostname required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/models.Host' summary: Get a host by hostname tags: - Hosts /hosts/hosts: get: consumes: - application/json description: Lists all the hosts in LSM produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/models.Host' type: array summary: Get all hosts in LSM tags: - Hosts swagger: "2.0"