PublicFile

A public file attached to a figshare article as returned by the public figshare API used by the University of Sheffield ORDA repository.

EducationHigher EducationUniversityResearch DataOpen AccessOAI-PMHUnited Kingdom

Properties

Name Type Description
id integer File id
name string File name
size integer File size in bytes
is_link_only boolean True if file is hosted somewhere else
download_url string Url for file download
supplied_md5 string File supplied md5
computed_md5 string File computed md5
mimetype string MIME Type of the file
View JSON Schema on GitHub

JSON Schema

university-of-sheffield-file-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/university-of-sheffield/main/json-schema/university-of-sheffield-file-schema.json",
  "title": "PublicFile",
  "description": "A public file attached to a figshare article as returned by the public figshare API used by the University of Sheffield ORDA repository.",
  "type": "object",
  "required": [
    "id",
    "name",
    "size",
    "is_link_only",
    "download_url",
    "supplied_md5",
    "computed_md5"
  ],
  "properties": {
    "id": { "type": "integer", "description": "File id" },
    "name": { "type": "string", "description": "File name" },
    "size": { "type": "integer", "description": "File size in bytes" },
    "is_link_only": { "type": "boolean", "description": "True if file is hosted somewhere else" },
    "download_url": { "type": "string", "format": "uri", "description": "Url for file download" },
    "supplied_md5": { "type": "string", "description": "File supplied md5" },
    "computed_md5": { "type": "string", "description": "File computed md5" },
    "mimetype": { "type": "string", "description": "MIME Type of the file" }
  }
}