/v1/meta
Spec
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/htpasswd-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/htpasswd-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/htpasswd-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/htpasswd-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"name": "htpasswd API",
"notes": "bcrypt is recommended; apr1 is Apache's classic MD5; sha1 ({SHA}) is unsalted and weak — for legacy only. Hashes are computed locally and never stored. Send credentials via POST.",
"version": "v1",
"endpoints": [
{
"path": "/v1/generate",
"params": {
"rounds": "bcrypt cost 4-15 (default 10)",
"password": "required",
"username": "optional (for the full line)",
"algorithm": "bcrypt|apr1|sha1 (default bcrypt)"
},
"returns": "the hash and the htpasswd line"
},
{
"path": "/v1/verify",
"params": {
"hash": "an htpasswd hash (required)",
"password": "required"
},
"returns": "whether the password matches"
},
{
"path": "/v1/meta",
"params": [],
"returns": "this document"
}
],
"description": "Generate and verify Apache/nginx htpasswd credentials. Hash a password with bcrypt, Apache's apr1 (MD5) or sha1, get the ready-to-paste user:hash line, and verify a password against any of those hash formats. Pure local, no key."
},
"meta": {
"timestamp": "2026-06-03T01:09:47.884Z",
"request_id": "9ea7b79c-b06e-4460-8c11-efea80688c66"
},
"status": "ok",
"message": "Meta",
"success": true
}