@@ -17,41 +17,6 @@ package design
1717
1818import . "goa.design/goa/v3/dsl"
1919
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-
5520var _ = Service ("tools" , func () {
5621 Description ("The tools service manages the available and installed tools" )
5722
@@ -95,15 +60,6 @@ var _ = Service("tools", func() {
9560 })
9661})
9762
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-
10763var ToolPayload = Type ("arduino.tool" , func () {
10864 Description (`A tool is an executable program that can upload sketches.
10965 If url is absent the tool will be searched among the package index installed` )
0 commit comments