{"openapi":"3.0.0","info":{"title":"API Peluquería y Barbería a Domicilio","description":"API para gestionar servicios, citas y estilistas a domicilio","version":"1.0.0"},"servers":[{"url":"http://localhost:3000/api"}],"paths":{"/servicios":{"get":{"summary":"Consultar servicios disponibles","responses":{"200":{"description":"Lista de servicios","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Servicio"}}}}}}},"post":{"summary":"Registrar un nuevo servicio","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Servicio"}}}},"responses":{"201":{"description":"Servicio creado"}}}},"/servicios/{id}":{"put":{"summary":"Actualizar servicio","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Servicio actualizado"}}},"delete":{"summary":"Eliminar servicio","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Servicio eliminado"}}}},"/citas":{"get":{"summary":"Consultar citas","responses":{"200":{"description":"Lista de citas","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Cita"}}}}}}},"post":{"summary":"Crear cita","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cita"}}}},"responses":{"201":{"description":"Cita creada"}}}},"/citas/{id}":{"put":{"summary":"Modificar cita","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Cita modificada"}}},"delete":{"summary":"Cancelar cita","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Cita cancelada"}}}},"/estilistas":{"get":{"summary":"Consultar estilistas disponibles","responses":{"200":{"description":"Lista de estilistas","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Estilista"}}}}}}}}},"components":{"schemas":{"Servicio":{"type":"object","properties":{"id":{"type":"integer","example":1},"tipo":{"type":"string","example":"Corte de cabello"},"duracion":{"type":"integer","example":30},"precio":{"type":"number","example":15.0}}},"Cita":{"type":"object","properties":{"id":{"type":"integer","example":1},"clienteId":{"type":"integer","example":101},"servicioId":{"type":"integer","example":1},"estilistaId":{"type":"integer","example":5},"fecha":{"type":"string","example":"2026-04-20"},"hora":{"type":"string","example":"15:00"},"estado":{"type":"string","example":"programada"}}},"Estilista":{"type":"object","properties":{"id":{"type":"integer","example":5},"nombre":{"type":"string","example":"Angelo Carrion"},"especialidad":{"type":"string","example":"Barbería"},"disponible":{"type":"boolean","example":true}}}}}}