API Collection
Ankiren Linguistic API
API for managing NLP datasets in the Linguistic microservice. ## Features - **Dataset Catalog**: Browse and manage NLP dataset metadata - **Token Search**: Search through dataset tokens with mixed token/tag sequence matching - **Tag Statistics**: View POS tag distributions and counts - **Export**: Download filtered search results as TSV files ## Authentication - Public endpoints (GET) require no authentication - Admin endpoints (POST, PUT, DELETE) require JWT with admin role - JWT can be passed via: - `Authorization: Bearer <token>` header - `authjs.session-token` cookie ## Data Storage - Dataset metadata is stored in Cloudflare D1 (SQLite) - Token data is stored in Cloudflare R2 (object storage) in VLSP format
https://linguistic.ankiren.comStaginghttps://linguistic-staging.ankiren.comUAThttps://linguistic-uat.ankiren.comLocal developmenthttp://localhost:3005Overview
8 endpoint trong 4 nhóm · OpenAPI 3.0.3 · phiên bản 2.0.0 · spec tại docs/api/linguistic-api.yaml.
NLP dataset catalog management
Token search and browsing within datasets
POS tag statistics and information
Export search results as downloadable files
Authentication
Mọi endpoint đều yêu cầu xác thực.
- BearerAuthhttp · bearer
JWT token from shell app authentication
- CookieAuthapiKey · cookie
Session cookie from shell app
curl 'https://linguistic.ankiren.com/api/datasets' \ -H 'Authorization: Bearer <token>'
Topics
Datasets
NLP dataset catalog management
- GETList all datasets
/api/datasets - POSTCreate a new dataset
/api/datasets - GETGet dataset by slug
/api/datasets/{slug} - PUTUpdate a dataset
/api/datasets/{slug} - DELETEDelete a dataset
/api/datasets/{slug}
Tokens
Token search and browsing within datasets
- GETSearch tokens in dataset
/api/datasets/{slug}/tokens
Export
Export search results as downloadable files
- GETExport search results as TSV
/api/datasets/{slug}/export