swaggerhub-cli 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -60
- package/bin/run +4 -0
- package/oclif.manifest.json +191 -191
- package/package.json +16 -19
- package/src/commands/api/rename.js +22 -22
- package/src/commands/api/validate/download-rules.js +3 -1
- package/src/commands/api/validate/index.js +1 -1
- package/src/commands/spectral/download.js +6 -6
- package/src/commands/spectral/upload.js +8 -8
- package/src/requests/spectral.js +1 -1
- package/src/support/command/handle-response.js +3 -3
package/oclif.manifest.json
CHANGED
|
@@ -832,29 +832,25 @@
|
|
|
832
832
|
"update.js"
|
|
833
833
|
]
|
|
834
834
|
},
|
|
835
|
-
"
|
|
835
|
+
"spectral:download": {
|
|
836
836
|
"aliases": [],
|
|
837
837
|
"args": {
|
|
838
|
-
"OWNER/
|
|
839
|
-
"description": "
|
|
840
|
-
"name": "OWNER/
|
|
838
|
+
"OWNER/RULESET_NAME": {
|
|
839
|
+
"description": "Organization's Spectral ruleset to create or update on SwaggerHub",
|
|
840
|
+
"name": "OWNER/RULESET_NAME",
|
|
841
|
+
"required": true
|
|
842
|
+
},
|
|
843
|
+
"directory": {
|
|
844
|
+
"description": "Relative path to directory the ruleset files should be saved to",
|
|
845
|
+
"name": "directory",
|
|
841
846
|
"required": true
|
|
842
847
|
}
|
|
843
848
|
},
|
|
844
|
-
"description": "
|
|
849
|
+
"description": "Fetch organization's Spectral ruleset",
|
|
845
850
|
"examples": [
|
|
846
|
-
"swaggerhub
|
|
851
|
+
"swaggerhub spectral:download my_organization/my_api_ruleset rules/"
|
|
847
852
|
],
|
|
848
853
|
"flags": {
|
|
849
|
-
"file": {
|
|
850
|
-
"char": "f",
|
|
851
|
-
"description": "location of integration configuration file",
|
|
852
|
-
"name": "file",
|
|
853
|
-
"required": true,
|
|
854
|
-
"hasDynamicHelp": false,
|
|
855
|
-
"multiple": false,
|
|
856
|
-
"type": "option"
|
|
857
|
-
},
|
|
858
854
|
"help": {
|
|
859
855
|
"char": "h",
|
|
860
856
|
"description": "Show CLI help.",
|
|
@@ -865,7 +861,7 @@
|
|
|
865
861
|
},
|
|
866
862
|
"hasDynamicHelp": false,
|
|
867
863
|
"hiddenAliases": [],
|
|
868
|
-
"id": "
|
|
864
|
+
"id": "spectral:download",
|
|
869
865
|
"pluginAlias": "swaggerhub-cli",
|
|
870
866
|
"pluginName": "swaggerhub-cli",
|
|
871
867
|
"pluginType": "core",
|
|
@@ -875,22 +871,27 @@
|
|
|
875
871
|
"relativePath": [
|
|
876
872
|
"src",
|
|
877
873
|
"commands",
|
|
878
|
-
"
|
|
879
|
-
"
|
|
874
|
+
"spectral",
|
|
875
|
+
"download.js"
|
|
880
876
|
]
|
|
881
877
|
},
|
|
882
|
-
"
|
|
878
|
+
"spectral:upload": {
|
|
883
879
|
"aliases": [],
|
|
884
880
|
"args": {
|
|
885
|
-
"OWNER/
|
|
886
|
-
"description": "
|
|
887
|
-
"name": "OWNER/
|
|
881
|
+
"OWNER/RULESET_NAME": {
|
|
882
|
+
"description": "Organization's Spectral ruleset to create or update on SwaggerHub",
|
|
883
|
+
"name": "OWNER/RULESET_NAME",
|
|
884
|
+
"required": true
|
|
885
|
+
},
|
|
886
|
+
"directory": {
|
|
887
|
+
"description": "Relative path to directory with ruleset files",
|
|
888
|
+
"name": "directory",
|
|
888
889
|
"required": true
|
|
889
890
|
}
|
|
890
891
|
},
|
|
891
|
-
"description": "
|
|
892
|
+
"description": "Create or update organization's Spectral ruleset",
|
|
892
893
|
"examples": [
|
|
893
|
-
"swaggerhub
|
|
894
|
+
"swaggerhub spectral:upload my_organization/my_api_ruleset rules/"
|
|
894
895
|
],
|
|
895
896
|
"flags": {
|
|
896
897
|
"help": {
|
|
@@ -903,7 +904,7 @@
|
|
|
903
904
|
},
|
|
904
905
|
"hasDynamicHelp": false,
|
|
905
906
|
"hiddenAliases": [],
|
|
906
|
-
"id": "
|
|
907
|
+
"id": "spectral:upload",
|
|
907
908
|
"pluginAlias": "swaggerhub-cli",
|
|
908
909
|
"pluginName": "swaggerhub-cli",
|
|
909
910
|
"pluginType": "core",
|
|
@@ -913,24 +914,55 @@
|
|
|
913
914
|
"relativePath": [
|
|
914
915
|
"src",
|
|
915
916
|
"commands",
|
|
916
|
-
"
|
|
917
|
-
"
|
|
917
|
+
"spectral",
|
|
918
|
+
"upload.js"
|
|
918
919
|
]
|
|
919
920
|
},
|
|
920
|
-
"
|
|
921
|
+
"project:create": {
|
|
921
922
|
"aliases": [],
|
|
922
923
|
"args": {
|
|
923
|
-
"OWNER/
|
|
924
|
-
"description": "
|
|
925
|
-
"name": "OWNER/
|
|
924
|
+
"OWNER/PROJECT_NAME": {
|
|
925
|
+
"description": "The new project to create on Swaggerhub",
|
|
926
|
+
"name": "OWNER/PROJECT_NAME",
|
|
926
927
|
"required": true
|
|
927
928
|
}
|
|
928
929
|
},
|
|
929
|
-
"description": "
|
|
930
|
+
"description": "Creates a new project in SwaggerHub.",
|
|
930
931
|
"examples": [
|
|
931
|
-
"swaggerhub
|
|
932
|
+
"swaggerhub project:create organization/new_project_name --description \"project description\"",
|
|
933
|
+
"swaggerhub project:create organization/new_project_name -a \"testapi1,testapi2\"",
|
|
934
|
+
"swaggerhub project:create organization/new_project_name --apis \"testapi1,testapi2\"",
|
|
935
|
+
"swaggerhub project:create organization/new_project_name -d \"testdomain3,testdomain4\"",
|
|
936
|
+
"swaggerhub project:create organization/new_project_name --domains \"testdomain3,testdomain4\"",
|
|
937
|
+
"swaggerhub project:create organization/new_project_name -a \"testapi1\" -d \"testdomain3\" --description \"description\""
|
|
932
938
|
],
|
|
933
939
|
"flags": {
|
|
940
|
+
"description": {
|
|
941
|
+
"description": "Description of project",
|
|
942
|
+
"name": "description",
|
|
943
|
+
"required": false,
|
|
944
|
+
"hasDynamicHelp": false,
|
|
945
|
+
"multiple": false,
|
|
946
|
+
"type": "option"
|
|
947
|
+
},
|
|
948
|
+
"apis": {
|
|
949
|
+
"char": "a",
|
|
950
|
+
"description": "Comma separated list of api names to include in project",
|
|
951
|
+
"name": "apis",
|
|
952
|
+
"required": false,
|
|
953
|
+
"hasDynamicHelp": false,
|
|
954
|
+
"multiple": false,
|
|
955
|
+
"type": "option"
|
|
956
|
+
},
|
|
957
|
+
"domains": {
|
|
958
|
+
"char": "d",
|
|
959
|
+
"description": "Comma separated list of domain names to include in project",
|
|
960
|
+
"name": "domains",
|
|
961
|
+
"required": false,
|
|
962
|
+
"hasDynamicHelp": false,
|
|
963
|
+
"multiple": false,
|
|
964
|
+
"type": "option"
|
|
965
|
+
},
|
|
934
966
|
"help": {
|
|
935
967
|
"char": "h",
|
|
936
968
|
"description": "Show CLI help.",
|
|
@@ -941,7 +973,7 @@
|
|
|
941
973
|
},
|
|
942
974
|
"hasDynamicHelp": false,
|
|
943
975
|
"hiddenAliases": [],
|
|
944
|
-
"id": "
|
|
976
|
+
"id": "project:create",
|
|
945
977
|
"pluginAlias": "swaggerhub-cli",
|
|
946
978
|
"pluginName": "swaggerhub-cli",
|
|
947
979
|
"pluginType": "core",
|
|
@@ -951,22 +983,22 @@
|
|
|
951
983
|
"relativePath": [
|
|
952
984
|
"src",
|
|
953
985
|
"commands",
|
|
954
|
-
"
|
|
955
|
-
"
|
|
986
|
+
"project",
|
|
987
|
+
"create.js"
|
|
956
988
|
]
|
|
957
989
|
},
|
|
958
|
-
"
|
|
990
|
+
"project:delete": {
|
|
959
991
|
"aliases": [],
|
|
960
992
|
"args": {
|
|
961
|
-
"OWNER/
|
|
962
|
-
"description": "
|
|
963
|
-
"name": "OWNER/
|
|
993
|
+
"OWNER/PROJECT_NAME": {
|
|
994
|
+
"description": "The project to delete on Swaggerhub",
|
|
995
|
+
"name": "OWNER/PROJECT_NAME",
|
|
964
996
|
"required": true
|
|
965
997
|
}
|
|
966
998
|
},
|
|
967
|
-
"description": "
|
|
999
|
+
"description": "Deletes a project from SwaggerHub.",
|
|
968
1000
|
"examples": [
|
|
969
|
-
"swaggerhub
|
|
1001
|
+
"swaggerhub project:delete organization/project_name"
|
|
970
1002
|
],
|
|
971
1003
|
"flags": {
|
|
972
1004
|
"help": {
|
|
@@ -979,7 +1011,7 @@
|
|
|
979
1011
|
},
|
|
980
1012
|
"hasDynamicHelp": false,
|
|
981
1013
|
"hiddenAliases": [],
|
|
982
|
-
"id": "
|
|
1014
|
+
"id": "project:delete",
|
|
983
1015
|
"pluginAlias": "swaggerhub-cli",
|
|
984
1016
|
"pluginName": "swaggerhub-cli",
|
|
985
1017
|
"pluginType": "core",
|
|
@@ -989,22 +1021,22 @@
|
|
|
989
1021
|
"relativePath": [
|
|
990
1022
|
"src",
|
|
991
1023
|
"commands",
|
|
992
|
-
"
|
|
993
|
-
"
|
|
1024
|
+
"project",
|
|
1025
|
+
"delete.js"
|
|
994
1026
|
]
|
|
995
1027
|
},
|
|
996
|
-
"
|
|
1028
|
+
"project:get": {
|
|
997
1029
|
"aliases": [],
|
|
998
1030
|
"args": {
|
|
999
|
-
"OWNER/
|
|
1000
|
-
"description": "
|
|
1001
|
-
"name": "OWNER/
|
|
1031
|
+
"OWNER/PROJECT_NAME": {
|
|
1032
|
+
"description": "The project to get details for on Swaggerhub",
|
|
1033
|
+
"name": "OWNER/PROJECT_NAME",
|
|
1002
1034
|
"required": true
|
|
1003
1035
|
}
|
|
1004
1036
|
},
|
|
1005
|
-
"description": "
|
|
1037
|
+
"description": "Retrieves the details for a project.",
|
|
1006
1038
|
"examples": [
|
|
1007
|
-
"swaggerhub
|
|
1039
|
+
"swaggerhub project:get organization/project_name"
|
|
1008
1040
|
],
|
|
1009
1041
|
"flags": {
|
|
1010
1042
|
"help": {
|
|
@@ -1017,7 +1049,7 @@
|
|
|
1017
1049
|
},
|
|
1018
1050
|
"hasDynamicHelp": false,
|
|
1019
1051
|
"hiddenAliases": [],
|
|
1020
|
-
"id": "
|
|
1052
|
+
"id": "project:get",
|
|
1021
1053
|
"pluginAlias": "swaggerhub-cli",
|
|
1022
1054
|
"pluginName": "swaggerhub-cli",
|
|
1023
1055
|
"pluginType": "core",
|
|
@@ -1027,33 +1059,25 @@
|
|
|
1027
1059
|
"relativePath": [
|
|
1028
1060
|
"src",
|
|
1029
1061
|
"commands",
|
|
1030
|
-
"
|
|
1031
|
-
"
|
|
1062
|
+
"project",
|
|
1063
|
+
"get.js"
|
|
1032
1064
|
]
|
|
1033
1065
|
},
|
|
1034
|
-
"
|
|
1066
|
+
"project:list": {
|
|
1035
1067
|
"aliases": [],
|
|
1036
1068
|
"args": {
|
|
1037
|
-
"OWNER
|
|
1038
|
-
"description": "
|
|
1039
|
-
"name": "OWNER
|
|
1040
|
-
"required":
|
|
1069
|
+
"OWNER": {
|
|
1070
|
+
"description": "The organization to list projects for on Swaggerhub",
|
|
1071
|
+
"name": "OWNER",
|
|
1072
|
+
"required": false
|
|
1041
1073
|
}
|
|
1042
1074
|
},
|
|
1043
|
-
"description": "
|
|
1075
|
+
"description": "list projects",
|
|
1044
1076
|
"examples": [
|
|
1045
|
-
"swaggerhub
|
|
1077
|
+
"swaggerhub project:list",
|
|
1078
|
+
"swaggerhub project:list organization"
|
|
1046
1079
|
],
|
|
1047
1080
|
"flags": {
|
|
1048
|
-
"file": {
|
|
1049
|
-
"char": "f",
|
|
1050
|
-
"description": "location of integration configuration file",
|
|
1051
|
-
"name": "file",
|
|
1052
|
-
"required": true,
|
|
1053
|
-
"hasDynamicHelp": false,
|
|
1054
|
-
"multiple": false,
|
|
1055
|
-
"type": "option"
|
|
1056
|
-
},
|
|
1057
1081
|
"help": {
|
|
1058
1082
|
"char": "h",
|
|
1059
1083
|
"description": "Show CLI help.",
|
|
@@ -1064,7 +1088,7 @@
|
|
|
1064
1088
|
},
|
|
1065
1089
|
"hasDynamicHelp": false,
|
|
1066
1090
|
"hiddenAliases": [],
|
|
1067
|
-
"id": "
|
|
1091
|
+
"id": "project:list",
|
|
1068
1092
|
"pluginAlias": "swaggerhub-cli",
|
|
1069
1093
|
"pluginName": "swaggerhub-cli",
|
|
1070
1094
|
"pluginType": "core",
|
|
@@ -1074,51 +1098,29 @@
|
|
|
1074
1098
|
"relativePath": [
|
|
1075
1099
|
"src",
|
|
1076
1100
|
"commands",
|
|
1077
|
-
"
|
|
1078
|
-
"
|
|
1101
|
+
"project",
|
|
1102
|
+
"list.js"
|
|
1079
1103
|
]
|
|
1080
1104
|
},
|
|
1081
|
-
"
|
|
1105
|
+
"integration:create": {
|
|
1082
1106
|
"aliases": [],
|
|
1083
1107
|
"args": {
|
|
1084
|
-
"OWNER/
|
|
1085
|
-
"description": "
|
|
1086
|
-
"name": "OWNER/
|
|
1108
|
+
"OWNER/API_NAME/[VERSION]": {
|
|
1109
|
+
"description": "API to add integration to on SwaggerHub",
|
|
1110
|
+
"name": "OWNER/API_NAME/[VERSION]",
|
|
1087
1111
|
"required": true
|
|
1088
1112
|
}
|
|
1089
1113
|
},
|
|
1090
|
-
"description": "
|
|
1114
|
+
"description": "creates a new API integration from a JSON configuration file.\nSee the documentation for configuration files: https://github.com/SmartBear/swaggerhub-cli/tree/main/examples/integrations\nWhen VERSION is not included in the argument, the integration will be added to be default API version.\n",
|
|
1091
1115
|
"examples": [
|
|
1092
|
-
"swaggerhub
|
|
1093
|
-
"swaggerhub project:create organization/new_project_name -a \"testapi1,testapi2\"",
|
|
1094
|
-
"swaggerhub project:create organization/new_project_name --apis \"testapi1,testapi2\"",
|
|
1095
|
-
"swaggerhub project:create organization/new_project_name -d \"testdomain3,testdomain4\"",
|
|
1096
|
-
"swaggerhub project:create organization/new_project_name --domains \"testdomain3,testdomain4\"",
|
|
1097
|
-
"swaggerhub project:create organization/new_project_name -a \"testapi1\" -d \"testdomain3\" --description \"description\""
|
|
1116
|
+
"swaggerhub integration:create organization/api/1.0.0 --file config.json"
|
|
1098
1117
|
],
|
|
1099
1118
|
"flags": {
|
|
1100
|
-
"
|
|
1101
|
-
"
|
|
1102
|
-
"
|
|
1103
|
-
"
|
|
1104
|
-
"
|
|
1105
|
-
"multiple": false,
|
|
1106
|
-
"type": "option"
|
|
1107
|
-
},
|
|
1108
|
-
"apis": {
|
|
1109
|
-
"char": "a",
|
|
1110
|
-
"description": "Comma separated list of api names to include in project",
|
|
1111
|
-
"name": "apis",
|
|
1112
|
-
"required": false,
|
|
1113
|
-
"hasDynamicHelp": false,
|
|
1114
|
-
"multiple": false,
|
|
1115
|
-
"type": "option"
|
|
1116
|
-
},
|
|
1117
|
-
"domains": {
|
|
1118
|
-
"char": "d",
|
|
1119
|
-
"description": "Comma separated list of domain names to include in project",
|
|
1120
|
-
"name": "domains",
|
|
1121
|
-
"required": false,
|
|
1119
|
+
"file": {
|
|
1120
|
+
"char": "f",
|
|
1121
|
+
"description": "location of integration configuration file",
|
|
1122
|
+
"name": "file",
|
|
1123
|
+
"required": true,
|
|
1122
1124
|
"hasDynamicHelp": false,
|
|
1123
1125
|
"multiple": false,
|
|
1124
1126
|
"type": "option"
|
|
@@ -1133,7 +1135,7 @@
|
|
|
1133
1135
|
},
|
|
1134
1136
|
"hasDynamicHelp": false,
|
|
1135
1137
|
"hiddenAliases": [],
|
|
1136
|
-
"id": "
|
|
1138
|
+
"id": "integration:create",
|
|
1137
1139
|
"pluginAlias": "swaggerhub-cli",
|
|
1138
1140
|
"pluginName": "swaggerhub-cli",
|
|
1139
1141
|
"pluginType": "core",
|
|
@@ -1143,22 +1145,22 @@
|
|
|
1143
1145
|
"relativePath": [
|
|
1144
1146
|
"src",
|
|
1145
1147
|
"commands",
|
|
1146
|
-
"
|
|
1148
|
+
"integration",
|
|
1147
1149
|
"create.js"
|
|
1148
1150
|
]
|
|
1149
1151
|
},
|
|
1150
|
-
"
|
|
1152
|
+
"integration:delete": {
|
|
1151
1153
|
"aliases": [],
|
|
1152
1154
|
"args": {
|
|
1153
|
-
"OWNER/
|
|
1154
|
-
"description": "
|
|
1155
|
-
"name": "OWNER/
|
|
1155
|
+
"OWNER/API_NAME/VERSION/INTEGRATION_ID": {
|
|
1156
|
+
"description": "Integration to delete for given API on Swaggerhub",
|
|
1157
|
+
"name": "OWNER/API_NAME/VERSION/INTEGRATION_ID",
|
|
1156
1158
|
"required": true
|
|
1157
1159
|
}
|
|
1158
1160
|
},
|
|
1159
|
-
"description": "
|
|
1161
|
+
"description": "deletes the integration from the given API.",
|
|
1160
1162
|
"examples": [
|
|
1161
|
-
"swaggerhub
|
|
1163
|
+
"swaggerhub integration:delete organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704"
|
|
1162
1164
|
],
|
|
1163
1165
|
"flags": {
|
|
1164
1166
|
"help": {
|
|
@@ -1171,7 +1173,7 @@
|
|
|
1171
1173
|
},
|
|
1172
1174
|
"hasDynamicHelp": false,
|
|
1173
1175
|
"hiddenAliases": [],
|
|
1174
|
-
"id": "
|
|
1176
|
+
"id": "integration:delete",
|
|
1175
1177
|
"pluginAlias": "swaggerhub-cli",
|
|
1176
1178
|
"pluginName": "swaggerhub-cli",
|
|
1177
1179
|
"pluginType": "core",
|
|
@@ -1181,22 +1183,22 @@
|
|
|
1181
1183
|
"relativePath": [
|
|
1182
1184
|
"src",
|
|
1183
1185
|
"commands",
|
|
1184
|
-
"
|
|
1186
|
+
"integration",
|
|
1185
1187
|
"delete.js"
|
|
1186
1188
|
]
|
|
1187
1189
|
},
|
|
1188
|
-
"
|
|
1190
|
+
"integration:execute": {
|
|
1189
1191
|
"aliases": [],
|
|
1190
1192
|
"args": {
|
|
1191
|
-
"OWNER/
|
|
1192
|
-
"description": "
|
|
1193
|
-
"name": "OWNER/
|
|
1193
|
+
"OWNER/API_NAME/VERSION/INTEGRATION_ID": {
|
|
1194
|
+
"description": "Integration to execute for given API on Swaggerhub",
|
|
1195
|
+
"name": "OWNER/API_NAME/VERSION/INTEGRATION_ID",
|
|
1194
1196
|
"required": true
|
|
1195
1197
|
}
|
|
1196
1198
|
},
|
|
1197
|
-
"description": "
|
|
1199
|
+
"description": "executes an integration for the given API.",
|
|
1198
1200
|
"examples": [
|
|
1199
|
-
"swaggerhub
|
|
1201
|
+
"swaggerhub integration:execute organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704"
|
|
1200
1202
|
],
|
|
1201
1203
|
"flags": {
|
|
1202
1204
|
"help": {
|
|
@@ -1209,7 +1211,7 @@
|
|
|
1209
1211
|
},
|
|
1210
1212
|
"hasDynamicHelp": false,
|
|
1211
1213
|
"hiddenAliases": [],
|
|
1212
|
-
"id": "
|
|
1214
|
+
"id": "integration:execute",
|
|
1213
1215
|
"pluginAlias": "swaggerhub-cli",
|
|
1214
1216
|
"pluginName": "swaggerhub-cli",
|
|
1215
1217
|
"pluginType": "core",
|
|
@@ -1219,23 +1221,22 @@
|
|
|
1219
1221
|
"relativePath": [
|
|
1220
1222
|
"src",
|
|
1221
1223
|
"commands",
|
|
1222
|
-
"
|
|
1223
|
-
"
|
|
1224
|
+
"integration",
|
|
1225
|
+
"execute.js"
|
|
1224
1226
|
]
|
|
1225
1227
|
},
|
|
1226
|
-
"
|
|
1228
|
+
"integration:get": {
|
|
1227
1229
|
"aliases": [],
|
|
1228
1230
|
"args": {
|
|
1229
|
-
"OWNER": {
|
|
1230
|
-
"description": "
|
|
1231
|
-
"name": "OWNER",
|
|
1232
|
-
"required":
|
|
1231
|
+
"OWNER/API_NAME/VERSION/INTEGRATION_ID": {
|
|
1232
|
+
"description": "Integration to fetch for given API on Swaggerhub",
|
|
1233
|
+
"name": "OWNER/API_NAME/VERSION/INTEGRATION_ID",
|
|
1234
|
+
"required": true
|
|
1233
1235
|
}
|
|
1234
1236
|
},
|
|
1235
|
-
"description": "
|
|
1237
|
+
"description": "retieves an integration for the given API.",
|
|
1236
1238
|
"examples": [
|
|
1237
|
-
"swaggerhub
|
|
1238
|
-
"swaggerhub project:list organization"
|
|
1239
|
+
"swaggerhub integration:get organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704"
|
|
1239
1240
|
],
|
|
1240
1241
|
"flags": {
|
|
1241
1242
|
"help": {
|
|
@@ -1248,7 +1249,7 @@
|
|
|
1248
1249
|
},
|
|
1249
1250
|
"hasDynamicHelp": false,
|
|
1250
1251
|
"hiddenAliases": [],
|
|
1251
|
-
"id": "
|
|
1252
|
+
"id": "integration:get",
|
|
1252
1253
|
"pluginAlias": "swaggerhub-cli",
|
|
1253
1254
|
"pluginName": "swaggerhub-cli",
|
|
1254
1255
|
"pluginType": "core",
|
|
@@ -1258,27 +1259,22 @@
|
|
|
1258
1259
|
"relativePath": [
|
|
1259
1260
|
"src",
|
|
1260
1261
|
"commands",
|
|
1261
|
-
"
|
|
1262
|
-
"
|
|
1262
|
+
"integration",
|
|
1263
|
+
"get.js"
|
|
1263
1264
|
]
|
|
1264
1265
|
},
|
|
1265
|
-
"
|
|
1266
|
+
"integration:list": {
|
|
1266
1267
|
"aliases": [],
|
|
1267
1268
|
"args": {
|
|
1268
|
-
"OWNER/
|
|
1269
|
-
"description": "
|
|
1270
|
-
"name": "OWNER/
|
|
1271
|
-
"required": true
|
|
1272
|
-
},
|
|
1273
|
-
"directory": {
|
|
1274
|
-
"description": "Relative path to directory the ruleset files should be saved to",
|
|
1275
|
-
"name": "directory",
|
|
1269
|
+
"OWNER/API_NAME/[VERSION]": {
|
|
1270
|
+
"description": "API to list integrations for on Swaggerhub",
|
|
1271
|
+
"name": "OWNER/API_NAME/[VERSION]",
|
|
1276
1272
|
"required": true
|
|
1277
1273
|
}
|
|
1278
1274
|
},
|
|
1279
|
-
"description": "
|
|
1275
|
+
"description": "list integrations on an API.",
|
|
1280
1276
|
"examples": [
|
|
1281
|
-
"swaggerhub
|
|
1277
|
+
"swaggerhub integration:list organization/api/1.0.0"
|
|
1282
1278
|
],
|
|
1283
1279
|
"flags": {
|
|
1284
1280
|
"help": {
|
|
@@ -1291,7 +1287,7 @@
|
|
|
1291
1287
|
},
|
|
1292
1288
|
"hasDynamicHelp": false,
|
|
1293
1289
|
"hiddenAliases": [],
|
|
1294
|
-
"id": "
|
|
1290
|
+
"id": "integration:list",
|
|
1295
1291
|
"pluginAlias": "swaggerhub-cli",
|
|
1296
1292
|
"pluginName": "swaggerhub-cli",
|
|
1297
1293
|
"pluginType": "core",
|
|
@@ -1301,29 +1297,33 @@
|
|
|
1301
1297
|
"relativePath": [
|
|
1302
1298
|
"src",
|
|
1303
1299
|
"commands",
|
|
1304
|
-
"
|
|
1305
|
-
"
|
|
1300
|
+
"integration",
|
|
1301
|
+
"list.js"
|
|
1306
1302
|
]
|
|
1307
1303
|
},
|
|
1308
|
-
"
|
|
1304
|
+
"integration:update": {
|
|
1309
1305
|
"aliases": [],
|
|
1310
1306
|
"args": {
|
|
1311
|
-
"OWNER/
|
|
1312
|
-
"description": "
|
|
1313
|
-
"name": "OWNER/
|
|
1314
|
-
"required": true
|
|
1315
|
-
},
|
|
1316
|
-
"directory": {
|
|
1317
|
-
"description": "Relative path to directory with ruleset files",
|
|
1318
|
-
"name": "directory",
|
|
1307
|
+
"OWNER/API_NAME/VERSION/INTEGRATION_ID": {
|
|
1308
|
+
"description": "Integration to update for given API on Swaggerhub",
|
|
1309
|
+
"name": "OWNER/API_NAME/VERSION/INTEGRATION_ID",
|
|
1319
1310
|
"required": true
|
|
1320
1311
|
}
|
|
1321
1312
|
},
|
|
1322
|
-
"description": "
|
|
1313
|
+
"description": "update the configuration of an API integration.",
|
|
1323
1314
|
"examples": [
|
|
1324
|
-
"swaggerhub
|
|
1315
|
+
"swaggerhub integration:update organization/api/1.0.0/503c2db6-448a-4678-abcd-0123456789abc --file config.json"
|
|
1325
1316
|
],
|
|
1326
1317
|
"flags": {
|
|
1318
|
+
"file": {
|
|
1319
|
+
"char": "f",
|
|
1320
|
+
"description": "location of integration configuration file",
|
|
1321
|
+
"name": "file",
|
|
1322
|
+
"required": true,
|
|
1323
|
+
"hasDynamicHelp": false,
|
|
1324
|
+
"multiple": false,
|
|
1325
|
+
"type": "option"
|
|
1326
|
+
},
|
|
1327
1327
|
"help": {
|
|
1328
1328
|
"char": "h",
|
|
1329
1329
|
"description": "Show CLI help.",
|
|
@@ -1334,7 +1334,7 @@
|
|
|
1334
1334
|
},
|
|
1335
1335
|
"hasDynamicHelp": false,
|
|
1336
1336
|
"hiddenAliases": [],
|
|
1337
|
-
"id": "
|
|
1337
|
+
"id": "integration:update",
|
|
1338
1338
|
"pluginAlias": "swaggerhub-cli",
|
|
1339
1339
|
"pluginName": "swaggerhub-cli",
|
|
1340
1340
|
"pluginType": "core",
|
|
@@ -1344,8 +1344,8 @@
|
|
|
1344
1344
|
"relativePath": [
|
|
1345
1345
|
"src",
|
|
1346
1346
|
"commands",
|
|
1347
|
-
"
|
|
1348
|
-
"
|
|
1347
|
+
"integration",
|
|
1348
|
+
"update.js"
|
|
1349
1349
|
]
|
|
1350
1350
|
},
|
|
1351
1351
|
"api:validate:download-rules": {
|
|
@@ -1613,23 +1613,18 @@
|
|
|
1613
1613
|
"remove.js"
|
|
1614
1614
|
]
|
|
1615
1615
|
},
|
|
1616
|
-
"project:
|
|
1616
|
+
"project:member:list": {
|
|
1617
1617
|
"aliases": [],
|
|
1618
1618
|
"args": {
|
|
1619
1619
|
"OWNER/PROJECT_NAME": {
|
|
1620
|
-
"description": "
|
|
1620
|
+
"description": "Project to list members of on Swaggerhub",
|
|
1621
1621
|
"name": "OWNER/PROJECT_NAME",
|
|
1622
1622
|
"required": true
|
|
1623
|
-
},
|
|
1624
|
-
"DOMAIN": {
|
|
1625
|
-
"description": "The name of the domain on Swaggerhub to add",
|
|
1626
|
-
"name": "DOMAIN",
|
|
1627
|
-
"required": true
|
|
1628
1623
|
}
|
|
1629
1624
|
},
|
|
1630
|
-
"description": "
|
|
1625
|
+
"description": "list members of a project",
|
|
1631
1626
|
"examples": [
|
|
1632
|
-
"swaggerhub project:
|
|
1627
|
+
"swaggerhub project:member:list organisation/project_name"
|
|
1633
1628
|
],
|
|
1634
1629
|
"flags": {
|
|
1635
1630
|
"help": {
|
|
@@ -1642,7 +1637,7 @@
|
|
|
1642
1637
|
},
|
|
1643
1638
|
"hasDynamicHelp": false,
|
|
1644
1639
|
"hiddenAliases": [],
|
|
1645
|
-
"id": "project:
|
|
1640
|
+
"id": "project:member:list",
|
|
1646
1641
|
"pluginAlias": "swaggerhub-cli",
|
|
1647
1642
|
"pluginName": "swaggerhub-cli",
|
|
1648
1643
|
"pluginType": "core",
|
|
@@ -1653,27 +1648,27 @@
|
|
|
1653
1648
|
"src",
|
|
1654
1649
|
"commands",
|
|
1655
1650
|
"project",
|
|
1656
|
-
"
|
|
1657
|
-
"
|
|
1651
|
+
"member",
|
|
1652
|
+
"list.js"
|
|
1658
1653
|
]
|
|
1659
1654
|
},
|
|
1660
|
-
"project:domain:
|
|
1655
|
+
"project:domain:add": {
|
|
1661
1656
|
"aliases": [],
|
|
1662
1657
|
"args": {
|
|
1663
1658
|
"OWNER/PROJECT_NAME": {
|
|
1664
|
-
"description": "The project to
|
|
1659
|
+
"description": "The project to add the domain to on Swaggerhub",
|
|
1665
1660
|
"name": "OWNER/PROJECT_NAME",
|
|
1666
1661
|
"required": true
|
|
1667
1662
|
},
|
|
1668
1663
|
"DOMAIN": {
|
|
1669
|
-
"description": "The name of the domain on Swaggerhub to
|
|
1664
|
+
"description": "The name of the domain on Swaggerhub to add",
|
|
1670
1665
|
"name": "DOMAIN",
|
|
1671
1666
|
"required": true
|
|
1672
1667
|
}
|
|
1673
1668
|
},
|
|
1674
|
-
"description": "
|
|
1669
|
+
"description": "Adds a domain to an existing project.",
|
|
1675
1670
|
"examples": [
|
|
1676
|
-
"swaggerhub project:domain:
|
|
1671
|
+
"swaggerhub project:domain:add organization/project_name my_domain"
|
|
1677
1672
|
],
|
|
1678
1673
|
"flags": {
|
|
1679
1674
|
"help": {
|
|
@@ -1686,7 +1681,7 @@
|
|
|
1686
1681
|
},
|
|
1687
1682
|
"hasDynamicHelp": false,
|
|
1688
1683
|
"hiddenAliases": [],
|
|
1689
|
-
"id": "project:domain:
|
|
1684
|
+
"id": "project:domain:add",
|
|
1690
1685
|
"pluginAlias": "swaggerhub-cli",
|
|
1691
1686
|
"pluginName": "swaggerhub-cli",
|
|
1692
1687
|
"pluginType": "core",
|
|
@@ -1698,21 +1693,26 @@
|
|
|
1698
1693
|
"commands",
|
|
1699
1694
|
"project",
|
|
1700
1695
|
"domain",
|
|
1701
|
-
"
|
|
1696
|
+
"add.js"
|
|
1702
1697
|
]
|
|
1703
1698
|
},
|
|
1704
|
-
"project:
|
|
1699
|
+
"project:domain:remove": {
|
|
1705
1700
|
"aliases": [],
|
|
1706
1701
|
"args": {
|
|
1707
1702
|
"OWNER/PROJECT_NAME": {
|
|
1708
|
-
"description": "
|
|
1703
|
+
"description": "The project to remove the domain from on Swaggerhub",
|
|
1709
1704
|
"name": "OWNER/PROJECT_NAME",
|
|
1710
1705
|
"required": true
|
|
1706
|
+
},
|
|
1707
|
+
"DOMAIN": {
|
|
1708
|
+
"description": "The name of the domain on Swaggerhub to remove",
|
|
1709
|
+
"name": "DOMAIN",
|
|
1710
|
+
"required": true
|
|
1711
1711
|
}
|
|
1712
1712
|
},
|
|
1713
|
-
"description": "
|
|
1713
|
+
"description": "Removes a domain from a project in SwaggerHub.",
|
|
1714
1714
|
"examples": [
|
|
1715
|
-
"swaggerhub project:
|
|
1715
|
+
"swaggerhub project:domain:remove organization/project_name my_domain"
|
|
1716
1716
|
],
|
|
1717
1717
|
"flags": {
|
|
1718
1718
|
"help": {
|
|
@@ -1725,7 +1725,7 @@
|
|
|
1725
1725
|
},
|
|
1726
1726
|
"hasDynamicHelp": false,
|
|
1727
1727
|
"hiddenAliases": [],
|
|
1728
|
-
"id": "project:
|
|
1728
|
+
"id": "project:domain:remove",
|
|
1729
1729
|
"pluginAlias": "swaggerhub-cli",
|
|
1730
1730
|
"pluginName": "swaggerhub-cli",
|
|
1731
1731
|
"pluginType": "core",
|
|
@@ -1736,10 +1736,10 @@
|
|
|
1736
1736
|
"src",
|
|
1737
1737
|
"commands",
|
|
1738
1738
|
"project",
|
|
1739
|
-
"
|
|
1740
|
-
"
|
|
1739
|
+
"domain",
|
|
1740
|
+
"remove.js"
|
|
1741
1741
|
]
|
|
1742
1742
|
}
|
|
1743
1743
|
},
|
|
1744
|
-
"version": "0.
|
|
1744
|
+
"version": "0.12.0"
|
|
1745
1745
|
}
|