-
Notifications
You must be signed in to change notification settings - Fork 50
/
edge_orchestration_api.yaml
70 lines (60 loc) · 1.77 KB
/
edge_orchestration_api.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
swagger: '2.0'
info:
title: Edge Orchestration API
description: >-
This provides functionality to execute a service on a remote edge device.
Requirement)
1. Two or more Edge Orchestration devices.
2. Each devices should be connected at same WIFI network.
version: v1-20190611
schemes:
- http
tags:
- name: Service Execution
description: Execute a Service on the other Device based on Score
paths:
'/api/v1/orchestration/services':
post:
tags:
- Service Execution
description: Execute a Service on the other Device
consumes:
- application/json
produces:
- application/json
parameters:
- in: "body"
name: "body"
description: "Name is Service Category, declared in config file and it determines which scoring method will be applied.
Args is a list of Shell Command to execute Service."
required: true
schema:
$ref: "#/definitions/service"
responses:
'200':
description: Successful operation, return handle, as a client ID
schema:
$ref: "#/definitions/handle"
definitions:
service:
required:
- ServiceName
- ServiceInfo
properties:
ServiceName:
type: string
example: container_service
ServiceInfo:
type: array
example:
- {"ExecutionType":"native", "ExecCmd":["hellow-world"]}
- {"ExecutionType":"container", "ExecCmd":["docker", "run", "hello-world"]}
- {"ExecutionType":"android", "ExecCmd":["com.example.hello-world"]}
handle:
required:
- Handle
properties:
Handle:
type: integer
format: int32
example: 7