Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhangyuan/metadata-hub
A simple web application to serve the data catalog defined in YAML files with full-text search capability.
https://github.com/zhangyuan/metadata-hub
Last synced: 21 days ago
JSON representation
A simple web application to serve the data catalog defined in YAML files with full-text search capability.
- Host: GitHub
- URL: https://github.com/zhangyuan/metadata-hub
- Owner: zhangyuan
- License: mit
- Created: 2024-04-26T17:52:00.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-08T14:25:34.000Z (8 months ago)
- Last Synced: 2024-10-27T14:35:28.243Z (2 months ago)
- Language: Go
- Homepage:
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# metadata-hub
## Usage
### Prepare the dataset schema file
Prepare the dataset schema file. e.g.
```yaml
name: foo
columns:
name: foo
type: interger
comments: This is the comments
---
name: bar
columns:
name: bar
type: string
comments: This is the comments
```And put the schema file under a folder.
### Serve the API
```bash
metadata-hub serve -d the_path_to_the_schema_folder
```The default port is `:8080`.
## API
| API | Example |
| ---------- | ---------------------------------------------- |
| 搜索字段 | `/api/search-columns?q=alarm` |
| 搜索表 | `/api/search-tables?q=alarm` |
| 数据集列表 | `/api/datasets` |
| 数据表列表 | `/api/datasets/:datasetName` |
| 数据表详情 | `/api/datasets/:datasetName/tables/:tableName` |