{"openapi":"3.1.0","info":{"title":"HANOTEX — API dữ liệu công khai","version":"1.0.0","description":"API chỉ đọc dữ liệu đang công khai trên hanotex.vn (Sàn giao dịch công nghệ Hà Nội): công nghệ, nhu cầu, dịch vụ, đấu giá, sự kiện, tin tức, danh bạ. Phiên bản nằm trong đường dẫn (/api/v1); thay đổi phá vỡ tương thích sẽ ra /api/v2 và giữ v1 song song. Chỉ chạy qua HTTPS (TLS). Giới hạn 120 lượt/phút mỗi IP; mọi lượt gọi được ghi nhật ký truy cập. Liên thông chủ động: đăng ký webhook (ký HMAC-SHA256) với quản trị Sàn.","contact":{"name":"HANOTEX","url":"https://hanotex.vn/lien-he"},"license":{"name":"Dữ liệu công khai — ghi nguồn hanotex.vn và nguồn gốc từng mục"}},"servers":[{"url":"https://hanotex.vn/api/v1"}],"tags":[{"name":"Danh mục"},{"name":"Chi tiết & đối sánh"},{"name":"Hệ thống"}],"paths":{"/":{"get":{"tags":["Hệ thống"],"summary":"Mục lục API","responses":{"200":{"description":"Danh sách điểm cuối"}}}},"/{loai}":{"get":{"tags":["Danh mục"],"summary":"Danh sách theo loại dữ liệu","parameters":[{"name":"loai","in":"path","required":true,"schema":{"type":"string","enum":["cong-nghe","nhu-cau","dich-vu","dau-gia","su-kien","tin-tuc","vien-truong","doanh-nghiep","quy-dau-tu","nha-khoa-hoc","chuyen-gia"]}},{"name":"q","in":"query","description":"Từ khoá (có dấu hoặc không dấu)","schema":{"type":"string","maxLength":80}},{"name":"trang","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"so","in":"query","description":"Số mục mỗi trang","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}}],"responses":{"200":{"description":"Danh sách","headers":{"X-RateLimit-Limit":{"description":"Số lượt tối đa mỗi phút","schema":{"type":"integer","example":120}},"X-RateLimit-Remaining":{"description":"Số lượt còn lại trong phút","schema":{"type":"integer"}},"API-Version":{"description":"Phiên bản API","schema":{"type":"string","example":"1.0"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DanhSach"}}}},"404":{"description":"Lỗi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Loi"}}}},"429":{"description":"Vượt giới hạn 120 lượt/phút mỗi địa chỉ IP — thử lại sau số giây trong Retry-After","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Loi"}}}}}}},"/{loai}/{id}":{"get":{"tags":["Chi tiết & đối sánh"],"summary":"Chi tiết một công nghệ / nhu cầu, kèm đối sánh cung – cầu","description":"cong-nghe: trả thêm các nhu cầu phù hợp; nhu-cau: trả các công nghệ phù hợp (điểm 0–100 + lý do). Công nghệ xuất được siêu dữ liệu Dublin Core, MODS, BibTeX.","parameters":[{"name":"loai","in":"path","required":true,"schema":{"type":"string","enum":["cong-nghe","nhu-cau"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"dinh-dang","in":"query","description":"Chỉ với cong-nghe","schema":{"type":"string","enum":["json","dc","mods","bibtex"],"default":"json"}}],"responses":{"200":{"description":"Chi tiết","headers":{"X-RateLimit-Limit":{"description":"Số lượt tối đa mỗi phút","schema":{"type":"integer","example":120}},"X-RateLimit-Remaining":{"description":"Số lượt còn lại trong phút","schema":{"type":"integer"}},"API-Version":{"description":"Phiên bản API","schema":{"type":"string","example":"1.0"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChiTiet"}},"application/xml":{"schema":{"type":"string","description":"Dublin Core (oai_dc)"}},"application/mods+xml":{"schema":{"type":"string","description":"MODS 3.7"}},"application/x-bibtex":{"schema":{"type":"string","description":"BibTeX @misc"}}}},"400":{"description":"Lỗi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Loi"}}}},"404":{"description":"Lỗi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Loi"}}}},"429":{"description":"Vượt giới hạn 120 lượt/phút mỗi địa chỉ IP — thử lại sau số giây trong Retry-After","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Loi"}}}}}}},"/suc-khoe":{"get":{"tags":["Hệ thống"],"summary":"Tình trạng hệ thống (giám sát)","responses":{"200":{"description":"Hoạt động bình thường","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SucKhoe"}}}},"503":{"description":"Cơ sở dữ liệu không phản hồi"}}}}},"components":{"schemas":{"Loi":{"type":"object","properties":{"loi":{"type":"string"}},"required":["loi"]},"DanhSach":{"type":"object","properties":{"nguon":{"type":"string","example":"hanotex.vn"},"loai":{"type":"string"},"tong":{"type":"integer"},"trang":{"type":"integer"},"so":{"type":"integer"},"ds":{"type":"array","items":{"type":"object","additionalProperties":true}},"capNhat":{"type":"string","format":"date-time"}}},"DoiSanh":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ten":{"type":"string"},"diem":{"type":"integer","minimum":0,"maximum":100},"lyDo":{"type":"array","items":{"type":"string"}}}},"ChiTiet":{"type":"object","properties":{"nguon":{"type":"string"},"loai":{"type":"string"},"muc":{"type":"object","additionalProperties":true},"sieuDuLieu":{"type":"object","properties":{"dublinCore":{"type":"string"},"mods":{"type":"string"},"bibtex":{"type":"string"}}},"doiSanh":{"type":"array","items":{"$ref":"#/components/schemas/DoiSanh"}}}},"SucKhoe":{"type":"object","properties":{"trangThai":{"type":"string","enum":["tot","loi"]},"csdlMs":{"type":"integer"},"luc":{"type":"string","format":"date-time"},"phienBan":{"type":"string"}}}}},"webhooks":{"noiDungDang":{"post":{"summary":"Sự kiện noi_dung.dang / noi_dung.xoa gửi tới địa chỉ đối tác đã đăng ký","description":"Tiêu đề X-Hanotex-Signature: sha256=<HMAC-SHA256(thân yêu cầu, khoá bí mật)>; X-Hanotex-Event: tên sự kiện.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"suKien":{"type":"string","enum":["noi_dung.dang","noi_dung.xoa"]},"loai":{"type":"string"},"id":{"type":"string"},"ten":{"type":"string"},"url":{"type":"string"},"luc":{"type":"string","format":"date-time"}}}}}},"responses":{"200":{"description":"Đối tác đã nhận"}}}}}}