-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcomponent.json
92 lines (92 loc) · 2.92 KB
/
component.json
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"title": "Petstore API (Java)",
"description": "elastic.io component for the Petstore API",
"docsUrl": "https://github.com/elasticio/petstore-component-java",
"version": "1.0.7",
"credentials": {
"fields": {
"apiKey": {
"label": "API key",
"required": true,
"viewClass": "TextFieldWithNoteView",
"note": "Please use <b>elasticio</b> as API key. For more details see <a href='https://petstore.elastic.io/docs/' target='_blank'>Petstore API docs</a>."
}
},
"verifier": "io.elastic.petstore.ApiKeyVerifier"
},
"triggers": {
"getPetsByStatus": {
"main": "io.elastic.petstore.triggers.GetPetsByStatus",
"type": "polling",
"title": "Get Pets By Status (HttpClient)",
"description": "Retrieves pets from the Petstore API by given pet status using Apache HttpClient",
"fields": {
"status": {
"label": "Pet Status",
"required": true,
"viewClass": "SelectView",
"model": {
"available": "Available",
"pending": "Pending",
"sold": "Sold"
},
"prompt": "Select Pet Status"
}
},
"metadata": {
"out": "./schemas/getPetsByStatus.out.json"
}
},
"getPetsByStatusJaxRs": {
"main": "io.elastic.petstore.triggers.GetPetsByStatusJaxRs",
"type": "polling",
"title": "Get Pets By Status (JAX-RS)",
"description": "Retrieves pets from the Petstore API by given pet status using Java API for RESTful Web Services (JAX-RS)",
"fields": {
"status": {
"label": "Pet Status",
"required": true,
"viewClass": "SelectView",
"model": {
"available": "Available",
"pending": "Pending",
"sold": "Sold"
},
"prompt": "Select Pet Status"
}
},
"metadata": {
"out": "./schemas/getPetsByStatus.out.json"
}
},
"getPetsByStatusWithDynamicSelectModel": {
"main": "io.elastic.petstore.triggers.GetPetsByStatus",
"type": "polling",
"title": "Get Pets By Status With Dynamic Select Model",
"description": "Retrieves pets from the Petstore API by given pet status. The available statuses are retrieved from the Petstore API dynamically.",
"fields": {
"status": {
"label": "Pet Status",
"required": true,
"viewClass": "SelectView",
"model": "io.elastic.petstore.providers.PetStatusModelProvider",
"prompt": "Select Pet Status"
}
},
"metadata": {
"out": "./schemas/getPetsByStatus.out.json"
}
}
},
"actions": {
"createPet": {
"main": "io.elastic.petstore.actions.CreatePet",
"title": "Create a Pet",
"description": "Creates a new Pet",
"metadata": {
"in": "./schemas/createPet.in.json",
"out": "./schemas/createPet.out.json"
}
}
}
}