{
	"info": {
		"title": "SCNE API",
		"version": "v1.1"
	},
	"paths": {
		"/api/consultas/getReconocimientoHTML.php": {
			"method": "POST",
			"description": "Consulta de reconocimiento html del SCNE",
			"parameters": [
				{
					"name": "productKey",
					"required": true,
					"type": "string"
				}
			], 
			"responses": {
				"200": {
					"description": "Success",
					"content": {
						"application/json": {
							"schema": {
								"type": "array",
								"items": {
									"$ref": "#/components/schemas/Reconocimiento"
								}
							}	
						}
					}
				},
				"405": {
					"description": "Method Not Allowed",
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Error"
							}	
						}
					}
				}
			}
		},
		"/api/consultas/getTiposProducto.php": {
			"method": "POST",
			"description": "Consulta de tipos de producto del SCNE",
			"parameters": [], 
			"responses": {
				"200": {
					"description": "Success",
					"content": {
						"application/json": {
							"schema": {
								"type": "array",
								"items": {
									"$ref": "#/components/schemas/Tipo"
								}
							}	
						}
					}
				},
				"405": {
					"description": "Method Not Allowed",
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Error"
							}	
						}
					}
				}
			}
		},
		"/api/consultas/getProductos.php": {
			"method": "POST",
			"description": "Consulta de productos del SCNE",
			"parameters": [
				{
					"name": "typeKey",
					"required": true,
					"type": "string"
				}
			], 
			"responses": {
				"200": {
					"description": "Success",
					"content": {
						"application/json": {
							"schema": {
								"type": "array",
								"items": {
									"$ref": "#/components/schemas/Producto"
								}
							}	
						}
					}
				},
				"400": {
					"description": "Bad Request",
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Error"
							}	
						}
					}
				},
				"405": {
					"description": "Method Not Allowed",
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Error"
							}	
						}
					}
				}
			}
		},
		"/api/consultas/getProductosFecha.php": {
			"method": "POST",
			"description": "Consulta de fechas de aplicación para un producto del SCNE",
			"parameters": [
				{
					"name": "identifier",
					"required": false,
					"type": "string"
				},
				{
					"name": "description",
					"required": false,
					"type": "string"
				}
			], 
			"responses": {
				"200": {
					"description": "Success",
					"content": {
						"application/json": {
							"schema": {
								"type": "array",
								"items": {
									"$ref": "#/components/schemas/ProductoFecha"
								}
							}	
						}
					}
				},
				"405": {
					"description": "Method Not Allowed",
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Error"
							}	
						}
					}
				}
			}
		},
		"/api/consultas/getReconocimiento.php": {
			"method": "POST",
			"description": "Consulta de reconocimiento de un producto del SCNE",
			"parameters": [
				{
					"name": "productKey",
					"required": true,
					"type": "string"
				}
			], 
			"responses": {
				"200": {
					"description": "Success",
					"content": {
						"application/json": {
							"schema": {
								"type": "array",
								"items": {
									"$ref": "#/components/schemas/Reconocimiento"
								}
							}	
						}
					}
				},
				"405": {
					"description": "Method Not Allowed",
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Error"
							}	
						}
					}
				}
			}
		}
	},	
	"components": {
		"schemas": {
			"Error": {
				"type": "object",
				"properties": {
					"status": {
						"type": "number",
						"nullable": true
					},
					"detail": {
						"type": "string",
						"nullable": true
					}
				}
			},
			"Tipo": {
				"type": "object",
				"properties": {
					"typeKey": {
						"type": "string",
						"nullable": true
					},
					"description": {
						"type": "string",
						"nullable": true
					}
				}
			},
			"Producto": {
				"type": "object",
				"properties": {
					"identifier": {
						"type": "string",
						"nullable": true
					},
					"description": {
						"type": "string",
						"nullable": true
					}
				}
			},
			"ProductoFecha": {
				"type": "object",
				"properties": {
					"productKey": {
						"type": "string",
						"nullable": true
					},
					"identifier": {
						"type": "string",
						"nullable": true
					},
					"description": {
						"type": "string",
						"nullable": true
					}
				}
			},
			"Reconocimiento": {
				"type": "object",
				"properties": {
					"level": {
						"type": "string",
						"nullable": true
					},
					"description": {
						"type": "string",
						"nullable": true
					}
				}
			}
		}
	}
}
