Skip to content

ddbj/ddbj-search-api

Repository files navigation

ddbj-search-api

DDBJ Search の RESTful API サーバー実装。BioProject / BioSample / SRA / JGA / GEA / MetaboBank の各タイプのデータを横断検索・取得する。

ddbj-search-converter が管理する Elasticsearch を読み、関連 ID の逆引きには DuckDB を併用する。詳しい設計判断は docs/overview.md、API の振る舞いは docs/api-spec.md を参照。

関連プロジェクト

クイックスタート (Dev)

ddbj-search-converter 側で Elasticsearch (ddbj-search-es-dev) が ddbj-search-network-dev 上に起動している前提。

cp env.dev .env
docker network create ddbj-search-network-dev || true
docker compose up -d --build
docker compose exec app uv sync --extra tests
docker compose exec app ddbj_search_api

別ターミナルで動作確認:

curl "http://localhost:8080/search/api/entries/bioproject/PRJNA16"
curl "http://localhost:8080/search/api/entries/biosample/SAMN02953658.jsonld"

Swagger UI は http://localhost:8080/search/api/docs。staging / production の手順は docs/deployment.md

ドキュメント

License

This project is licensed under the Apache-2.0 license. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors