@@ -17,41 +17,6 @@ package design
17
17
18
18
import . "goa.design/goa/v3/dsl"
19
19
20
- var _ = Service ("indexes" , func () {
21
- Description ("The indexes service manages the package_index files" )
22
-
23
- Error ("invalid_url" , ErrorResult , "url invalid" )
24
- HTTP (func () {
25
- Response ("invalid_url" , StatusBadRequest )
26
- })
27
-
28
- Method ("list" , func () {
29
- Result (ArrayOf (String ))
30
- HTTP (func () {
31
- GET ("/pkgs/indexes" )
32
- Response (StatusOK )
33
- })
34
- })
35
-
36
- Method ("add" , func () {
37
- Payload (IndexPayload )
38
- Result (Operation )
39
- HTTP (func () {
40
- POST ("/pkgs/indexes/add" )
41
- Response (StatusOK )
42
- })
43
- })
44
-
45
- Method ("remove" , func () {
46
- Payload (IndexPayload )
47
- Result (Operation )
48
- HTTP (func () {
49
- POST ("/pkgs/indexes/delete" )
50
- Response (StatusOK )
51
- })
52
- })
53
- })
54
-
55
20
var _ = Service ("tools" , func () {
56
21
Description ("The tools service manages the available and installed tools" )
57
22
@@ -95,15 +60,6 @@ var _ = Service("tools", func() {
95
60
})
96
61
})
97
62
98
- var IndexPayload = Type ("arduino.index" , func () {
99
- TypeName ("IndexPayload" )
100
-
101
- Attribute ("url" , String , "The url of the index file" , func () {
102
- Example ("https://downloads.arduino.cc/packages/package_index.json" )
103
- })
104
- Required ("url" )
105
- })
106
-
107
63
var ToolPayload = Type ("arduino.tool" , func () {
108
64
Description (`A tool is an executable program that can upload sketches.
109
65
If url is absent the tool will be searched among the package index installed` )
0 commit comments