swagger-js-codegen
Advanced tools
+1
-2
@@ -6,3 +6,2 @@ <?xml version="1.0" encoding="UTF-8"?> | ||
| </component> | ||
| </project> | ||
| </project> |
+87
-475
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project version="4"> | ||
| <component name="ChangeListManager"> | ||
| <list default="true" id="8040cd9d-f5a6-4092-b536-a97cab338d20" name="Default" comment="" /> | ||
| <ignored path="swagger-js-codegen.iws" /> | ||
| <ignored path=".idea/workspace.xml" /> | ||
| <list default="true" id="14f03f0e-8735-4e27-beff-4f357a6d4515" name="Default" comment="" /> | ||
| <ignored path="$PROJECT_DIR$/.tmp/" /> | ||
| <ignored path="$PROJECT_DIR$/temp/" /> | ||
| <ignored path="$PROJECT_DIR$/tmp/" /> | ||
| <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> | ||
@@ -22,19 +23,10 @@ <option name="TRACKING_ENABLED" value="true" /> | ||
| <component name="FileEditorManager"> | ||
| <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> | ||
| <file leaf-file-name="codegen.js" pinned="false" current-in-tab="true"> | ||
| <entry file="file://$PROJECT_DIR$/lib/codegen.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="285"> | ||
| <caret line="34" column="82" selection-start-line="34" selection-start-column="82" selection-end-line="34" selection-end-column="82" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| </leaf> | ||
| <leaf SIDE_TABS_SIZE_LIMIT_KEY="300" /> | ||
| </component> | ||
| <component name="FindManager"> | ||
| <FindUsagesManager> | ||
| <setting name="OPEN_NEW_TAB" value="true" /> | ||
| </FindUsagesManager> | ||
| <component name="FindInProjectRecents"> | ||
| <findStrings> | ||
| <find>Body</find> | ||
| <find>isGet</find> | ||
| <find>isGET</find> | ||
| </findStrings> | ||
| </component> | ||
@@ -47,24 +39,6 @@ <component name="Git.Settings"> | ||
| <list> | ||
| <option value="$PROJECT_DIR$/tests/node-api.js" /> | ||
| <option value="$PROJECT_DIR$/tests/apis/extensions.json" /> | ||
| <option value="$PROJECT_DIR$/templates/angular-request.mustache" /> | ||
| <option value="$PROJECT_DIR$/tests/node-token.js" /> | ||
| <option value="$PROJECT_DIR$/templates/node-class.ts.mustache" /> | ||
| <option value="$PROJECT_DIR$/templates/node-typedef.mustache" /> | ||
| <option value="$PROJECT_DIR$/lib/ts-codegen.js" /> | ||
| <option value="$PROJECT_DIR$/test.js" /> | ||
| <option value="$PROJECT_DIR$/templates/node-request.mustache" /> | ||
| <option value="$PROJECT_DIR$/lib/typescript.js" /> | ||
| <option value="$PROJECT_DIR$/templates/type.mustache" /> | ||
| <option value="$PROJECT_DIR$/tests/apis/uber.json" /> | ||
| <option value="$PROJECT_DIR$/templates/typescript-request.mustache" /> | ||
| <option value="$PROJECT_DIR$/templates/typescript-class.mustache" /> | ||
| <option value="$PROJECT_DIR$/templates/typescript-method.mustache" /> | ||
| <option value="$PROJECT_DIR$/templates/typescript-class.mustache" /> | ||
| <option value="$PROJECT_DIR$/lib/codegen.js" /> | ||
| <option value="$PROJECT_DIR$/package.json" /> | ||
| <option value="$PROJECT_DIR$/templates/method.mustache" /> | ||
| <option value="$PROJECT_DIR$/tests/generation.js" /> | ||
| <option value="$PROJECT_DIR$/README.md" /> | ||
| <option value="$PROJECT_DIR$/templates/angular-class.mustache" /> | ||
| <option value="$PROJECT_DIR$/templates/node-class.mustache" /> | ||
| <option value="$PROJECT_DIR$/lib/codegen.js" /> | ||
| </list> | ||
@@ -79,10 +53,2 @@ </option> | ||
| </component> | ||
| <component name="JsGruntFileManager"> | ||
| <gruntfiles> | ||
| <GruntfileState> | ||
| <gruntfile-path>$PROJECT_DIR$/Gruntfile.js</gruntfile-path> | ||
| </GruntfileState> | ||
| </gruntfiles> | ||
| <initial>false</initial> | ||
| </component> | ||
| <component name="JsGulpfileManager"> | ||
@@ -96,19 +62,7 @@ <detection-done>true</detection-done> | ||
| <component name="ProjectFrameBounds"> | ||
| <option name="y" value="23" /> | ||
| <option name="width" value="1440" /> | ||
| <option name="height" value="807" /> | ||
| <option name="x" value="1723" /> | ||
| <option name="y" value="93" /> | ||
| <option name="width" value="1400" /> | ||
| <option name="height" value="763" /> | ||
| </component> | ||
| <component name="ProjectLevelVcsManager" settingsEditedManually="false"> | ||
| <OptionsSetting value="true" id="Add" /> | ||
| <OptionsSetting value="true" id="Remove" /> | ||
| <OptionsSetting value="true" id="Checkout" /> | ||
| <OptionsSetting value="true" id="Update" /> | ||
| <OptionsSetting value="true" id="Status" /> | ||
| <OptionsSetting value="true" id="Edit" /> | ||
| <ConfirmationsSetting value="0" id="Add" /> | ||
| <ConfirmationsSetting value="0" id="Remove" /> | ||
| </component> | ||
| <component name="ProjectReloadState"> | ||
| <option name="STATE" value="0" /> | ||
| </component> | ||
| <component name="ProjectView"> | ||
@@ -129,4 +83,2 @@ <navigator currentView="ProjectPane" proportions="" version="1"> | ||
| <panes> | ||
| <pane id="Scratches" /> | ||
| <pane id="Scope" /> | ||
| <pane id="ProjectPane"> | ||
@@ -139,93 +91,51 @@ <subPane> | ||
| </PATH_ELEMENT> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="swagger-js-codegen" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | ||
| </PATH_ELEMENT> | ||
| </PATH> | ||
| <PATH> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="swagger-js-codegen" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | ||
| </PATH_ELEMENT> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="swagger-js-codegen" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | ||
| </PATH_ELEMENT> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="templates" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | ||
| </PATH_ELEMENT> | ||
| </PATH> | ||
| <PATH> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="swagger-js-codegen" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | ||
| </PATH_ELEMENT> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="swagger-js-codegen" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | ||
| </PATH_ELEMENT> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="lib" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | ||
| </PATH_ELEMENT> | ||
| </PATH> | ||
| </subPane> | ||
| </pane> | ||
| <pane id="Scratches" /> | ||
| <pane id="Scope" /> | ||
| </panes> | ||
| </component> | ||
| <component name="PropertiesComponent"> | ||
| <property name="WebServerToolWindowFactoryState" value="false" /> | ||
| <property name="last_opened_file_path" value="$PROJECT_DIR$" /> | ||
| <property name="WebServerToolWindowFactoryState" value="false" /> | ||
| <property name="HbShouldOpenHtmlAsHb" value="" /> | ||
| <property name="editorconfig.notification" value="Applied .editorconfig settings" /> | ||
| <property name="recentsLimit" value="5" /> | ||
| <property name="js-jscs-nodeInterpreter" value="/usr/local/bin/node" /> | ||
| <property name="nodejs_interpreter_path" value="/usr/local/bin/node" /> | ||
| </component> | ||
| <component name="RunManager" selected="Node.js.test.js"> | ||
| <configuration default="false" name="test.js" type="NodeJSConfigurationType" factoryName="Node.js" temporary="true" path-to-node="/usr/local/bin/node" path-to-js-file="test.js" working-dir="$PROJECT_DIR$"> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="BashConfigurationType" factoryName="Bash"> | ||
| <option name="INTERPRETER_OPTIONS" value="" /> | ||
| <option name="INTERPRETER_PATH" value="/bin/bash" /> | ||
| <option name="WORKING_DIRECTORY" value="" /> | ||
| <option name="PARENT_ENVS" value="true" /> | ||
| <option name="SCRIPT_NAME" value="" /> | ||
| <option name="PARAMETERS" value="" /> | ||
| <module name="" /> | ||
| <envs /> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application"> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="DartTestRunConfigurationType" factoryName="Dart Test"> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma"> | ||
| <config-file value="" /> | ||
| <node-interpreter value="project" /> | ||
| <envs /> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug"> | ||
| <method /> | ||
| </configuration> | ||
| <component name="RunManager"> | ||
| <configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="project" working-dir=""> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="cucumber.js" factoryName="Cucumber.js"> | ||
| <option name="cucumberJsArguments" value="" /> | ||
| <option name="executablePath" /> | ||
| <option name="filePath" /> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js"> | ||
| <node-interpreter>project</node-interpreter> | ||
| <node-options /> | ||
| <gulpfile /> | ||
| <tasks /> | ||
| <arguments /> | ||
| <pass-parent-envs>true</pass-parent-envs> | ||
| <envs /> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="js.build_tools.npm" factoryName="npm"> | ||
| <command value="run-script" /> | ||
| <scripts /> | ||
| <node-interpreter value="project" /> | ||
| <envs /> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="mocha-javascript-test-runner" factoryName="Mocha"> | ||
| <node-interpreter>/usr/local/bin/node</node-interpreter> | ||
| <node-options /> | ||
| <working-directory>$PROJECT_DIR$</working-directory> | ||
| <pass-parent-env>true</pass-parent-env> | ||
| <envs /> | ||
| <ui>bdd</ui> | ||
| <extra-mocha-options /> | ||
| <test-kind>DIRECTORY</test-kind> | ||
| <test-directory /> | ||
| <recursive>false</recursive> | ||
| <method /> | ||
| </configuration> | ||
| <list size="1"> | ||
| <item index="0" class="java.lang.String" itemvalue="Node.js.test.js" /> | ||
| </list> | ||
| <recent_temporary> | ||
| <list size="1"> | ||
| <item index="0" class="java.lang.String" itemvalue="Node.js.test.js" /> | ||
| </list> | ||
| </recent_temporary> | ||
| </component> | ||
@@ -240,13 +150,10 @@ <component name="ShelveChangesManager" show_recycled="false"> | ||
| <task active="true" id="Default" summary="Default task"> | ||
| <changelist id="8040cd9d-f5a6-4092-b536-a97cab338d20" name="Default" comment="" /> | ||
| <created>1412111461042</created> | ||
| <changelist id="14f03f0e-8735-4e27-beff-4f357a6d4515" name="Default" comment="" /> | ||
| <created>1479298376900</created> | ||
| <option name="number" value="Default" /> | ||
| <option name="presentableId" value="Default" /> | ||
| <updated>1412111461042</updated> | ||
| <workItem from="1463267368952" duration="1182000" /> | ||
| <workItem from="1465998217814" duration="1760000" /> | ||
| <workItem from="1467816655744" duration="3558000" /> | ||
| <workItem from="1467897488477" duration="4409000" /> | ||
| <workItem from="1478274277719" duration="868000" /> | ||
| <workItem from="1478600123547" duration="2000" /> | ||
| <updated>1479298376900</updated> | ||
| <workItem from="1479298378201" duration="1107000" /> | ||
| <workItem from="1479299536101" duration="2894000" /> | ||
| <workItem from="1479315986042" duration="16000" /> | ||
| </task> | ||
@@ -256,25 +163,22 @@ <servers /> | ||
| <component name="TimeTrackingManager"> | ||
| <option name="totallyTimeSpent" value="11779000" /> | ||
| <option name="totallyTimeSpent" value="4017000" /> | ||
| </component> | ||
| <component name="ToolWindowManager"> | ||
| <frame x="0" y="23" width="1440" height="807" extended-state="6" /> | ||
| <frame x="1723" y="93" width="1400" height="763" extended-state="0" /> | ||
| <editor active="false" /> | ||
| <layout> | ||
| <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> | ||
| <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2480058" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> | ||
| <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Grunt " active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" /> | ||
| <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" /> | ||
| <window_info id="npm" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="true" content_ui="tabs" /> | ||
| <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="npm" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" /> | ||
| <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" /> | ||
| <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32880434" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Grunt" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> | ||
@@ -286,9 +190,4 @@ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
| </component> | ||
| <component name="Vcs.Log.UiProperties"> | ||
| <option name="RECENTLY_FILTERED_USER_GROUPS"> | ||
| <collection /> | ||
| </option> | ||
| <option name="RECENTLY_FILTERED_BRANCH_GROUPS"> | ||
| <collection /> | ||
| </option> | ||
| <component name="TypeScriptGeneratedFilesManager"> | ||
| <option name="processedProjectFiles" value="true" /> | ||
| </component> | ||
@@ -303,6 +202,6 @@ <component name="VcsContentAnnotationSettings"> | ||
| <component name="editorHistoryManager"> | ||
| <entry file="file://$PROJECT_DIR$/lib/codegen.js"> | ||
| <entry file="file://$PROJECT_DIR$/templates/typescript-class.mustache"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | ||
| <state relative-caret-position="555"> | ||
| <caret line="37" column="84" lean-forward="false" selection-start-line="37" selection-start-column="84" selection-end-line="37" selection-end-column="84" /> | ||
| <folding /> | ||
@@ -312,41 +211,6 @@ </state> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/generation.js"> | ||
| <entry file="file://$PROJECT_DIR$/templates/typescript-method.mustache"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="33" column="25" selection-start-line="33" selection-start-column="25" selection-end-line="33" selection-end-column="25" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/templates/method.mustache"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="9" column="65" selection-start-line="9" selection-start-column="26" selection-end-line="9" selection-end-column="65" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/templates/node-class.mustache"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="7" column="3" selection-start-line="0" selection-start-column="0" selection-end-line="50" selection-end-column="0" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/apis/_datasources.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="150" column="27" selection-start-line="150" selection-start-column="27" selection-end-line="150" selection-end-column="27" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="3" column="15" selection-start-line="3" selection-start-column="15" selection-end-line="3" selection-end-column="15" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/lib/codegen.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | ||
| <state relative-caret-position="615"> | ||
| <caret line="41" column="11" lean-forward="false" selection-start-line="41" selection-start-column="11" selection-end-line="41" selection-end-column="11" /> | ||
| <folding /> | ||
@@ -356,20 +220,6 @@ </state> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/apis/_datasources.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="150" column="27" selection-start-line="150" selection-start-column="27" selection-end-line="150" selection-end-column="27" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="3" column="15" selection-start-line="3" selection-start-column="15" selection-end-line="3" selection-end-column="15" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/lib/codegen.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | ||
| <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | ||
| <folding /> | ||
@@ -379,13 +229,6 @@ </state> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="3" column="19" selection-start-line="3" selection-start-column="19" selection-end-line="3" selection-end-column="19" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/lib/codegen.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="132" column="12" selection-start-line="132" selection-start-column="12" selection-end-line="135" selection-end-column="102" /> | ||
| <state relative-caret-position="1005"> | ||
| <caret line="67" column="21" lean-forward="false" selection-start-line="67" selection-start-column="16" selection-end-line="67" selection-end-column="21" /> | ||
| <folding /> | ||
@@ -395,27 +238,6 @@ </state> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/generation.js"> | ||
| <entry file="file://$PROJECT_DIR$/templates/typescript-class.mustache"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/apis/uber.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="60" column="23" selection-start-line="60" selection-start-column="23" selection-end-line="60" selection-end-column="23" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="3" column="19" selection-start-line="3" selection-start-column="19" selection-end-line="3" selection-end-column="19" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/lib/codegen.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="24" column="95" selection-start-line="24" selection-start-column="95" selection-end-line="24" selection-end-column="95" /> | ||
| <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | ||
| <folding /> | ||
@@ -425,27 +247,6 @@ </state> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/generation.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="14" column="49" selection-start-line="14" selection-start-column="49" selection-end-line="14" selection-end-column="49" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/apis/uber.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="60" column="23" selection-start-line="60" selection-start-column="23" selection-end-line="60" selection-end-column="23" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="3" column="19" selection-start-line="3" selection-start-column="19" selection-end-line="3" selection-end-column="19" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/lib/codegen.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="25" column="95" selection-start-line="25" selection-start-column="95" selection-end-line="25" selection-end-column="95" /> | ||
| <state relative-caret-position="79"> | ||
| <caret line="6" column="19" lean-forward="false" selection-start-line="6" selection-start-column="19" selection-end-line="6" selection-end-column="19" /> | ||
| <folding /> | ||
@@ -455,27 +256,6 @@ </state> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/generation.js"> | ||
| <entry file="file://$PROJECT_DIR$/templates/typescript-method.mustache"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="14" column="49" selection-start-line="14" selection-start-column="49" selection-end-line="14" selection-end-column="49" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/apis/uber.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="60" column="23" selection-start-line="60" selection-start-column="23" selection-end-line="60" selection-end-column="23" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="3" column="19" selection-start-line="3" selection-start-column="19" selection-end-line="3" selection-end-column="19" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/lib/codegen.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="25" column="95" selection-start-line="25" selection-start-column="95" selection-end-line="25" selection-end-column="95" /> | ||
| <state relative-caret-position="109"> | ||
| <caret line="41" column="11" lean-forward="false" selection-start-line="41" selection-start-column="11" selection-end-line="41" selection-end-column="11" /> | ||
| <folding /> | ||
@@ -485,182 +265,14 @@ </state> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/generation.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="26" column="0" selection-start-line="26" selection-start-column="0" selection-end-line="26" selection-end-column="0" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/apis/uber.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="60" column="23" selection-start-line="60" selection-start-column="23" selection-end-line="60" selection-end-column="23" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="5" column="14" selection-start-line="5" selection-start-column="14" selection-end-line="5" selection-end-column="14" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/lib/codegen.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="10" column="49" selection-start-line="10" selection-start-column="49" selection-end-line="10" selection-end-column="49" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/apis/users.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="19" column="42" selection-start-line="19" selection-start-column="42" selection-end-line="19" selection-end-column="42" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/apis/_datasources.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="150" column="27" selection-start-line="150" selection-start-column="27" selection-end-line="150" selection-end-column="27" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/apis/ref.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="18" column="17" selection-start-line="18" selection-start-column="17" selection-end-line="18" selection-end-column="17" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/apis/queries.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="3" column="13" selection-start-line="3" selection-start-column="5" selection-end-line="3" selection-end-column="13" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/Gruntfile.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/templates/type.mustache"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="0"> | ||
| <caret line="8" column="104" selection-start-line="8" selection-start-column="104" selection-end-line="8" selection-end-column="104" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/apis/account.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="-540"> | ||
| <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/apis/uber.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="645"> | ||
| <caret line="49" column="55" selection-start-line="49" selection-start-column="55" selection-end-line="49" selection-end-column="55" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/templates/typescript-request.mustache" /> | ||
| <entry file="file://$PROJECT_DIR$/templates/typescript-class.mustache"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="165"> | ||
| <caret line="31" column="26" selection-start-line="31" selection-start-column="26" selection-end-line="31" selection-end-column="26" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="45"> | ||
| <caret line="3" column="19" selection-start-line="3" selection-start-column="19" selection-end-line="3" selection-end-column="19" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/templates/angular-request.mustache" /> | ||
| <entry file="file://$PROJECT_DIR$/templates/node-request.mustache" /> | ||
| <entry file="file://$PROJECT_DIR$/README.md"> | ||
| <provider editor-type-id="text-editor"> | ||
| <state relative-caret-position="29"> | ||
| <caret line="189" column="73" selection-start-line="189" selection-start-column="66" selection-end-line="189" selection-end-column="73" /> | ||
| </state> | ||
| </provider> | ||
| <provider selected="true" editor-type-id="split-provider[text-editor;MarkdownPreviewEditor]"> | ||
| <state split_layout="FIRST"> | ||
| <first_editor relative-caret-position="0"> | ||
| <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | ||
| </first_editor> | ||
| <second_editor /> | ||
| </state> | ||
| </provider> | ||
| <provider editor-type-id="MarkdownFxPreviewEditor"> | ||
| <state /> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/templates/node-class.mustache"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="195"> | ||
| <caret line="28" column="21" selection-start-line="28" selection-start-column="21" selection-end-line="28" selection-end-column="21" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/templates/angular-class.mustache"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="646"> | ||
| <caret line="64" column="12" selection-start-line="64" selection-start-column="12" selection-end-line="64" selection-end-column="12" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/templates/method.mustache"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="526"> | ||
| <caret line="108" column="56" selection-start-line="108" selection-start-column="46" selection-end-line="108" selection-end-column="56" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/node-api.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="345"> | ||
| <caret line="43" column="42" selection-start-line="43" selection-start-column="42" selection-end-line="44" selection-end-column="51" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/lib/typescript.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="250"> | ||
| <caret line="32" column="35" selection-start-line="32" selection-start-column="35" selection-end-line="32" selection-end-column="35" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/node-protected.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="670"> | ||
| <caret line="155" column="56" selection-start-line="155" selection-start-column="56" selection-end-line="155" selection-end-column="56" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/templates/typescript-method.mustache"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="555"> | ||
| <caret line="136" column="33" selection-start-line="136" selection-start-column="0" selection-end-line="137" selection-end-column="0" /> | ||
| <caret line="37" column="84" lean-forward="false" selection-start-line="37" selection-start-column="84" selection-end-line="37" selection-end-column="84" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/generation.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="15"> | ||
| <caret line="2" column="17" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="17" /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/lib/codegen.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="285"> | ||
| <caret line="34" column="82" selection-start-line="34" selection-start-column="82" selection-end-line="34" selection-end-column="82" /> | ||
| <state relative-caret-position="105"> | ||
| <caret line="7" column="33" lean-forward="true" selection-start-line="7" selection-start-column="33" selection-end-line="7" selection-end-column="33" /> | ||
| <folding /> | ||
@@ -667,0 +279,0 @@ </state> |
+14
-19
| { | ||
| "name": "swagger-js-codegen", | ||
| "main": "./lib/codegen.js", | ||
| "version": "1.7.11", | ||
| "version": "1.7.12", | ||
| "description": "A Swagger codegen for JavaScript", | ||
@@ -25,26 +25,21 @@ "scripts": { | ||
| }, | ||
| "licenses": [ | ||
| { | ||
| "type": "Apache 2", | ||
| "url": "https://github.com/wcandillon/swagger-js-codegen/blob/master/LICENSE" | ||
| } | ||
| ], | ||
| "license": "Apache-2.0", | ||
| "homepage": "https://github.com/wcandillon/swagger-js-codegen", | ||
| "dependencies": { | ||
| "js-beautify": "~1.5.1", | ||
| "jshint": "~2.5.1", | ||
| "lodash": "4.14.1", | ||
| "js-beautify": "^1.5.1", | ||
| "jshint": "^2.5.1", | ||
| "lodash": "^4.15.0", | ||
| "mustache": "^2.0.0" | ||
| }, | ||
| "devDependencies": { | ||
| "grunt": "~0.4.4", | ||
| "grunt-contrib-jshint": "~0.9.2", | ||
| "grunt-vows": "~0.4.1", | ||
| "q": "~1.0.1", | ||
| "final-fs": "~1.6.0", | ||
| "matchdep": "~0.3.0", | ||
| "vows": "~0.7.0", | ||
| "grunt-jsonlint": "~1.0.4", | ||
| "request": "~2.40.0" | ||
| "final-fs": "^1.6.0", | ||
| "grunt": "^1.0.1", | ||
| "grunt-contrib-jshint": "^1.1.0", | ||
| "grunt-jsonlint": "^1.0.4", | ||
| "grunt-vows": "^0.4.1", | ||
| "matchdep": "^1.0.1 ", | ||
| "q": "^1.0.1", | ||
| "request": "^2.40.0", | ||
| "vows": "^0.8.1" | ||
| } | ||
| } |
+1
-5
@@ -215,10 +215,6 @@ #Swagger to JS & Typescript Codegen | ||
| ## Grunt & Gulp task | ||
| ## Grunt task | ||
| [There is a grunt task](https://github.com/wcandillon/grunt-swagger-js-codegen) that enables you to integrate the code generation in your development pipeline. This is extremely convenient if your application is using APIs which are documented/specified in the swagger format. | ||
| And example of gulp task is available [here](https://github.com/wcandillon/cellstore/blob/master/tasks/swagger.js). | ||
| ##Who is using it? | ||
| The [CellStore](https://github.com/wcandillon/cellstore) project. | ||
| [28.io](http://28.io) is using this project to generate their [nodejs](https://github.com/28msec/28.io-nodejs) and [angularjs language bindings](https://github.com/28msec/28.io-angularjs). |
@@ -63,2 +63,13 @@ { | ||
| }, | ||
| "security": [ | ||
| { | ||
| "oauth2": [] | ||
| } | ||
| ], | ||
| "401": { | ||
| "description": "Unauthorized", | ||
| "schema": { | ||
| "$ref": "#/definitions/Error" | ||
| } | ||
| }, | ||
| "default": { | ||
@@ -135,3 +146,3 @@ "description": "Error", | ||
| } | ||
| } | ||
| } | ||
| }, | ||
@@ -138,0 +149,0 @@ "Error": { |
Sorry, the diff of this file is not supported yet
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project version="4"> | ||
| <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false"> | ||
| <file url="PROJECT" charset="UTF-8" /> | ||
| </component> | ||
| </project> |
| <component name="DependencyValidationManager"> | ||
| <state> | ||
| <option name="SKIP_IMPORT_STATEMENTS" value="false" /> | ||
| </state> | ||
| </component> |
-129
| /*jshint -W069 */ | ||
| /** | ||
| * <p>This OAuth2 compliant API can be used to authorize requests. The endpoint for these methods is <code>http://portal.28.io/auth</code>.</p> | ||
| * @class Auth | ||
| * @param {(string|object)} [domainOrOptions] - The project domain or options object. If object, see the object's optional properties. | ||
| * @param {string} [domainOrOptions.domain] - The project domain | ||
| * @param {object} [domainOrOptions.token] - auth token - object with value property and optional headerOrQueryName and isQuery properties | ||
| */ | ||
| var Auth = (function() { | ||
| 'use strict'; | ||
| var request = require('request'); | ||
| var Q = require('q'); | ||
| function Auth(options) { | ||
| var domain = (typeof options === 'object') ? options.domain : options; | ||
| this.domain = domain ? domain : 'http://portal.28.io'; | ||
| if (this.domain.length === 0) { | ||
| throw new Error('Domain parameter must be specified as a string.'); | ||
| } | ||
| } | ||
| Auth.prototype.request = function(method, url, parameters, body, headers, queryParameters, form, deferred) { | ||
| var req = { | ||
| method: '', | ||
| uri: domain + path, | ||
| qs: queryParameters, | ||
| headers: headers, | ||
| body: body | ||
| }; | ||
| if (Object.keys(form).length > 0) { | ||
| req.form = form; | ||
| } | ||
| if (typeof(body) === 'object' && !(body instanceof Buffer)) { | ||
| req.json = true; | ||
| } | ||
| request(req, function(error, response, body) { | ||
| console.log(error); | ||
| console.log(response); | ||
| console.log(body); | ||
| if (error) { | ||
| deferred.reject(error); | ||
| } else { | ||
| if (/^application\/(.*\\+)?json/.test(response.headers['content-type'])) { | ||
| try { | ||
| body = JSON.parse(body); | ||
| } catch (e) {} | ||
| } | ||
| if (response.statusCode === 204) { | ||
| deferred.resolve({ | ||
| response: response | ||
| }); | ||
| } else if (response.statusCode >= 200 && response.statusCode <= 299) { | ||
| deferred.resolve({ | ||
| response: response, | ||
| body: body | ||
| }); | ||
| } else { | ||
| deferred.reject({ | ||
| response: response, | ||
| body: body | ||
| }); | ||
| } | ||
| } | ||
| }); | ||
| }; | ||
| /** | ||
| * Creates or refreshes authorization tokens | ||
| * @method | ||
| * @name Auth#authenticate | ||
| * @param {string} grant_type - Authorization grant type. Use <code>client_credentials</code> to create a token or <code>refresh_token</code> to refresh a token | ||
| * @param {string} email - The account email. Mandatory if <code>grant_type=client_credentials</code>. | ||
| * @param {string} password - The account password. Mandatory if <code>grant_type=client_credentials</code>. | ||
| * @param {string} refresh_token - The <code>refresh_token</code> obtained in the last successful request to this endpoint. Mandatory if <code>grant_type=refresh_token</code>. | ||
| * | ||
| */ | ||
| Auth.prototype.authenticate = function(parameters) { | ||
| if (parameters === undefined) { | ||
| parameters = {}; | ||
| } | ||
| var deferred = Q.defer(); | ||
| var domain = this.domain; | ||
| var path = '/auth'; | ||
| var body; | ||
| var queryParameters = {}; | ||
| var headers = {}; | ||
| var form = {}; | ||
| if (parameters['grant_type'] !== undefined) { | ||
| queryParameters['grant_type'] = parameters['grant_type']; | ||
| } | ||
| if (parameters['grant_type'] === undefined) { | ||
| deferred.reject(new Error('Missing required query parameter: grant_type')); | ||
| return deferred.promise; | ||
| } | ||
| if (parameters['email'] !== undefined) { | ||
| queryParameters['email'] = parameters['email']; | ||
| } | ||
| if (parameters['password'] !== undefined) { | ||
| queryParameters['password'] = parameters['password']; | ||
| } | ||
| if (parameters['refresh_token'] !== undefined) { | ||
| queryParameters['refresh_token'] = parameters['refresh_token']; | ||
| } | ||
| if (parameters.$queryParameters) { | ||
| Object.keys(parameters.$queryParameters) | ||
| .forEach(function(parameterName) { | ||
| var parameter = parameters.$queryParameters[parameterName]; | ||
| queryParameters[parameterName] = parameter; | ||
| }); | ||
| } | ||
| this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred); | ||
| return deferred.promise; | ||
| }; | ||
| return Auth; | ||
| })(); | ||
| exports.Auth = Auth; |
-5
| var Auth = require('./g').Auth; | ||
| var api = new Auth('http://portal.28.io/api'); | ||
| api.authenticate({ | ||
| grant_type: 'client_credentials', email: 'w@28.io', password: 'wnvbb86g' }).then(resp => console.log(resp)).catch(error => console.log(error)); |
-11
| var fs = require('fs'); | ||
| var CodeGen = require('./lib/codegen').CodeGen; | ||
| var file = 'tests/apis/auth.json'; | ||
| var swagger = JSON.parse(fs.readFileSync(file, 'UTF-8')); | ||
| var nodejsSourceCode = CodeGen.getNodeCode({ className: 'Auth', swagger: swagger }); | ||
| //var angularjsSourceCode = CodeGen.getAngularCode({ className: 'Test', swagger: swagger }); | ||
| //var tsSourceCode = CodeGen.getTypescriptCode({ className: 'Test', swagger: swagger, imports: ['../../typings/tsd.d.ts'] }); | ||
| console.log(nodejsSourceCode); | ||
| //console.log(angularjsSourceCode); | ||
| //console.log(tsSourceCode); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
5
-16.67%531184
-17.37%38
-15.56%10427
-18.74%220
-1.79%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated