Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Endpoint to create a Dataset

オープン
#42 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
typescript
領域
api, databases

調査の方向性

issue にリンクされている統合テスト dataset.test.ts から始め、POST /api/v1/data_sources/:id/datasets の実装を追跡してください。指定されたコンストラクターのフィールドを使って、リクエストスキーマと data_sources_data_sets ジャンクションレコードを確認してください。エンドポイントが入力を検証し、一貫したレスポンスを返し、関連付けを書き込み、残っている auth と OpenAPI の要件に対応できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Advanced California Tribal GIS Hackathon

🛠️ Create Dataset


📋 Endpoints Required

  • POST /api/v1/data_sources/:id/datasets — create resource

🗂️ Data Schema

Describe or paste the expected request/response shape below.

{
  name: string,
  definition: { key values of column name, types, other options }, # e.g. { turbidity: { type: decimal } }
  rows: Array of data to insert, must have all the req. columns from defininition,
}

Note: See dataset.test.ts for examples of how to use the Dataset API.

✅ Acceptance Criteria

  • All endpoints return correct HTTP status codes
  • Input validation is applied to request bodies and query params
  • Errors return consistent, descriptive JSON responses
  • Endpoints are protected by appropriate auth/authorization middleware
  • Pagination supported on the list endpoint
  • Unit tests cover each endpoint (happy path + error cases)
  • Integration tests pass in CI
  • OpenAPI / Swagger docs updated

🔒 Auth & Permissions

N/A

🔗 Related


💬 Additional Context

This Endpoint will require writing data into a junction table when the dataset is created, called datasets.data_sources_data_sets. The constructor for that model looks like:

{
  data_source_id: number,
  dataset_name: string
}
主要言語
HTML
スター
2
フォーク
11
PR マージ指標
30日以内にマージされた PR はありません

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenSourceFellows/map_dashboard_hackathon のほかの issue

OpenSourceFellows/map_dashboard_hackathon の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。