コンテンツにスキップ

目標データ取得

目的

エンジンが出力する目標データを取得します。

基本項目

項目 備考
url /api/goal/:farm_id
メソッド GET
content-type application/json
文字コード utf-8

リクエスト

ヘッダ

ヘッダ名
X-fn-gene-api-idtoken Firebase ID Token

パラメータ(URL)

パラメータ名 名称 サイズ
farm_id 牧場ID string(半角数字) 10byte

パラメータ(クエリ)

なし

ボディ(JSON)

なし

レスポンス

レスポンスステータス

HTTPステータス 内容
200 JSON
401 認証エラー
404 対象がない
500 その他エラー

レスポンスサンプル

  • Content-Type Application/Json
{
  "monthly_inseminated_times": {
    "target": 100,
    "progress": 50
  },
  "monthly_inseminated_number_of_cows": {
    "target": 100,
    "progress": 50
  },
  "conception": {
    "target": 100,
    "progress": 50
  },
  "delivery_interval": {
    "target": 100,
    "progress": 50
  },
  "successor": {
    "target": 100,
    "progress": 50
  }
}