[Swagger]Add response definitions
This commit is contained in:
		
							
								
								
									
										25
									
								
								swagger.js
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								swagger.js
									
									
									
									
									
								
							@@ -28,6 +28,29 @@ const defaultSwagger = {
 | 
				
			|||||||
  "produces": [
 | 
					  "produces": [
 | 
				
			||||||
    "application/json"
 | 
					    "application/json"
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  "responses": {
 | 
				
			||||||
 | 
					    "ShouldSecureKey": {
 | 
				
			||||||
 | 
					      "name": "i",
 | 
				
			||||||
 | 
					      "description": "secure key",
 | 
				
			||||||
 | 
					      "in": "formData",
 | 
				
			||||||
 | 
					      "required": true,
 | 
				
			||||||
 | 
					      "type": "string"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "SecureKey": {
 | 
				
			||||||
 | 
					      "name": "i",
 | 
				
			||||||
 | 
					      "description": "secure key",
 | 
				
			||||||
 | 
					      "in": "formData",
 | 
				
			||||||
 | 
					      "type": "string"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "NormalKey": {
 | 
				
			||||||
 | 
					      "name": "_userkey",
 | 
				
			||||||
 | 
					      "description": "normal key",
 | 
				
			||||||
 | 
					      "in": "formData",
 | 
				
			||||||
 | 
					      "type": "string"
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  "definitions": {
 | 
					  "definitions": {
 | 
				
			||||||
    "Error": {
 | 
					    "Error": {
 | 
				
			||||||
      "type": "object",
 | 
					      "type": "object",
 | 
				
			||||||
@@ -173,8 +196,6 @@ const defaultSwagger = {
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "responses": {},
 | 
					 | 
				
			||||||
  "parameters": {},
 | 
					 | 
				
			||||||
  "securityDefinitions": {},
 | 
					  "securityDefinitions": {},
 | 
				
			||||||
  "tags": []
 | 
					  "tags": []
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user