ices-taf / doc

Community documentation for the TAF project
http://taf.ices.dk
11 stars 4 forks source link

Choose a stock on stockassessment.org to develop upload protocols and requirements #107

Open colinpmillar opened 6 years ago

colinpmillar commented 6 years ago

For example: A JSON format for upload could be something like:

[
  stockcode: "cod.27.47d20",
  year: 2017,
  reason: "advice",
  SvnGitcommitReference: "r7250"
  files:
  [
    {
      filename: "catch.csv",
      tafsection: "results",
      content-type: "text",
      content: "1, 1, 1,1 \n1996, 213 ...  ",
      fileLocation: "https://www.stockassessment.org/datadisk/stockassessment/userdirs/user3/WHB_IBPBLW_2016/data/cn.dat"
    },
    {
      filename: "summary.csv",
      tafsection: "report",
      content-type: "text",
      content: "1, 1, 1,1 \n1996, 213 ...  ",
      fileLocation: ""
   },
   {
      filename: "summary.png",
      tafsection: "report",
      content-type: "base64",
      content: "AFG873094AAAE9 ...",
      fileLocation: "https://www.stockassessment.org/datadisk/stockassessment/userdirs/user3/WHB_IBPBLW_2016/res/big_xxx-00-00.00.00_001.png"
   }
   ...
  ]
]

with requirements