加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
KaggleSwagger.yaml 34.51 KB
一键复制 编辑 原始数据 按行查看 历史
Rebecca Ysteboe 提交于 2019-09-19 14:53 . Update API to 1.5.6
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233
# Copyright 2018 Kaggle Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
swagger: "2.0"
info:
description: API for kaggle.com
version: "1"
title: Kaggle API
termsOfService: https://www.kaggle.com/terms
contact:
name: Contact Kaggle
url: https://www.kaggle.com/contact
host: www.kaggle.com
basePath: /api/v1
schemes:
- https
securityDefinitions:
basicAuth:
type: basic
security:
- basicAuth: []
externalDocs:
description: Further Kaggle documentation
url: www.kaggle.com
tags:
- name: kaggle
parameters:
guidParam:
in: path
name: guid
required: true
type: string
minimum: 0
description: guid specifies location where submission should be uploaded
paths:
/competitions/list:
get:
tags:
- kaggle
summary: List competitions
operationId: CompetitionsList
produces:
- application/json
parameters:
- in: query
name: group
type: string
enum: [general, entered, inClass]
default: general
description: Filter competitions by a particular group
- in: query
name: category
type: string
enum: [all, featured, research, recruitment, gettingStarted, masters, playground]
default: all
description: Filter competitions by a particular category
- in: query
name: sortBy
type: string
enum: [grouped, prize, earliestDeadline, latestDeadline, numberOfTeams, recentlyCreated]
default: latestDeadline
description: Sort the results
- in: query
name: page
type: integer
default: 1
description: Page number
- in: query
name: search
type: string
default: ''
description: Search terms
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/competitions/submissions/list/{id}:
get:
tags:
- kaggle
summary: List competition submissions
operationId: CompetitionsSubmissionsList
produces:
- application/json
parameters:
- in: path
name: id
required: true
type: string
description: Competition name
- in: query
name: page
required: false
type: integer
default: 1
description: Page number
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/competitions/{id}/submissions/url/{contentLength}/{lastModifiedDateUtc}:
post:
tags:
- kaggle
summary: Generate competition submission URL
operationId: CompetitionsSubmissionsUrl
produces:
- application/json
consumes:
- multipart/form-data
parameters:
- in: formData
name: fileName
required: false
type: string
description: Competition submission file name
- in: path
name: id
required: true
type: string
description: Competition name, as it appears in the competition's URL
- in: path
name: contentLength
required: true
type: integer
description: Content length of file in bytes
- in: path
name: lastModifiedDateUtc
required: true
type: integer
description: Last modified date of file in milliseconds since epoch in UTC
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/competitions/submissions/upload/{guid}/{contentLength}/{lastModifiedDateUtc}:
post:
tags:
- kaggle
summary: Upload competition submission file
operationId: CompetitionsSubmissionsUpload
produces:
- application/json
consumes:
- multipart/form-data
parameters:
- in: formData
name: file
required: true
type: file
description: Competition submission file
- in: path
name: guid
required: true
type: string
description: Location where submission should be uploaded
- in: path
name: contentLength
required: true
type: integer
description: Content length of file in bytes
- in: path
name: lastModifiedDateUtc
required: true
type: integer
description: Last modified date of file in milliseconds since epoch in UTC
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/competitions/submissions/submit/{id}:
post:
tags:
- kaggle
summary: Submit to competition
operationId: CompetitionsSubmissionsSubmit
produces:
- application/json
consumes:
- multipart/form-data
parameters:
- in: formData
name: blobFileTokens
required: true
type: string
description: Token identifying location of uploaded submission file
- in: formData
name: submissionDescription
required: true
type: string
description: Description of competition submission
- in: path
name: id
required: true
type: string
description: Competition name
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/competitions/data/list/{id}:
get:
tags:
- kaggle
summary: List competition data files
operationId: CompetitionsDataListFiles
produces:
- application/json
parameters:
- in: path
name: id
required: true
type: string
description: Competition name
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/competitions/data/download/{id}/{fileName}:
get:
tags:
- kaggle
summary: Download competition data file
operationId: CompetitionsDataDownloadFile
parameters:
- in: path
name: id
required: true
type: string
description: Competition name
- in: path
name: fileName
required: true
type: string
description: Competition name
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/competitions/data/download-all/{id}:
get:
tags:
- kaggle
summary: Download all competition data files
operationId: CompetitionsDataDownloadFiles
parameters:
- in: path
name: id
required: true
type: string
description: Competition name
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/competitions/{id}/leaderboard/download:
get:
tags:
- kaggle
summary: Download competition leaderboard
operationId: CompetitionDownloadLeaderboard
parameters:
- in: path
name: id
required: true
type: string
description: Competition name
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/competitions/{id}/leaderboard/view:
get:
tags:
- kaggle
summary: VIew competition leaderboard
operationId: CompetitionViewLeaderboard
parameters:
- in: path
name: id
required: true
type: string
description: Competition name
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/datasets/list:
get:
tags:
- kaggle
summary: List datasets
operationId: DatasetsList
produces:
- application/json
parameters:
- in: query
name: group
type: string
enum: [public, my, myPrivate, upvoted, user]
default: public
description: Display datasets by a particular group
- in: query
name: sortBy
type: string
enum: [hottest, votes, updated, active]
default: hottest
description: Sort the results
- in: query
name: size
type: string
enum: []
default: all
description: (DEPRECATED). Please use --max-size and --min-size to filter dataset sizes.
- in: query
name: filetype
type: string
enum: [all, csv, sqlite, json, bigQuery]
default: all
description: Display datasets of a specific file type
- in: query
name: license
type: string
enum: [all, cc, gpl, odb, other]
default: all
description: Display datasets with a specific license
- in: query
name: tagids
type: string
description: A comma separated list of tags to filter by
- in: query
name: search
default: ''
type: string
description: Search terms
- in: query
name: user
type: string
description: Display datasets by a specific user or organization
- in: query
name: page
type: integer
default: 1
description: Page number
- in: query
name: maxSize
type: integer
format: int64
description: Max Dataset Size (bytes)
- in: query
name: minSize
type: integer
format: int64
description: Max Dataset Size (bytes)
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/datasets/list/{ownerSlug}/{datasetSlug}:
get:
tags:
- kaggle
summary: List dataset files
operationId: DatasetsListFiles
produces:
- application/json
parameters:
- in: path
name: ownerSlug
required: true
type: string
description: Dataset owner
- in: path
name: datasetSlug
required: true
type: string
description: Dataset name
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/datasets/status/{ownerSlug}/{datasetSlug}:
get:
tags:
- kaggle
summary: Get dataset creation status
operationId: DatasetsStatus
produces:
- application/json
parameters:
- in: path
name: ownerSlug
required: true
type: string
description: Dataset owner
- in: path
name: datasetSlug
required: true
type: string
description: Dataset name
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/datasets/view/{ownerSlug}/{datasetSlug}:
get:
tags:
- kaggle
summary: Show details about a dataset
operationId: DatasetsView
produces:
- application/json
parameters:
- in: path
name: ownerSlug
required: true
type: string
description: Dataset owner
- in: path
name: datasetSlug
required: true
type: string
description: Dataset name
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/datasets/download/{ownerSlug}/{datasetSlug}:
get:
tags:
- kaggle
summary: Download dataset file
operationId: DatasetsDownload
produces:
- file
parameters:
- in: path
name: ownerSlug
required: true
type: string
description: Dataset owner
- in: path
name: datasetSlug
required: true
type: string
description: Dataset name
- in: query
name: datasetVersionNumber
required: false
type: string
description: Dataset version number
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/datasets/download/{ownerSlug}/{datasetSlug}/{fileName}:
get:
tags:
- kaggle
summary: Download dataset file
operationId: DatasetsDownloadFile
produces:
- file
parameters:
- in: path
name: ownerSlug
required: true
type: string
description: Dataset owner
- in: path
name: datasetSlug
required: true
type: string
description: Dataset name
- in: path
name: fileName
required: true
type: string
description: File name
- in: query
name: datasetVersionNumber
required: false
type: string
description: Dataset version number
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/datasets/upload/file/{contentLength}/{lastModifiedDateUtc}:
post:
tags:
- kaggle
summary: Get URL and token to start uploading a data file
operationId: DatasetsUploadFile
produces:
- application/json
consumes:
- multipart/form-data
parameters:
- in: formData
name: fileName
required: true
type: string
description: Dataset file name
- in: path
name: contentLength
required: true
type: integer
description: Content length of file in bytes
- in: path
name: lastModifiedDateUtc
required: true
type: integer
description: Last modified date of file in milliseconds since epoch in UTC
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/datasets/create/version/{id}:
post:
tags:
- kaggle
summary: Create a new dataset version by id
operationId: DatasetsCreateVersionById
produces:
- application/json
consumes:
- application/json
parameters:
- in: path
name: id
required: true
type: integer
description: Dataset ID
- in: body
name: datasetNewVersionRequest
required: true
schema:
$ref: '#/definitions/DatasetNewVersionRequest'
description: Information for creating a new dataset version
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/datasets/create/version/{ownerSlug}/{datasetSlug}:
post:
tags:
- kaggle
summary: Create a new dataset version
operationId: DatasetsCreateVersion
produces:
- application/json
consumes:
- application/json
parameters:
- in: path
name: ownerSlug
required: true
type: string
description: Dataset owner
- in: path
name: datasetSlug
required: true
type: string
description: Dataset name
- in: body
name: datasetNewVersionRequest
required: true
schema:
$ref: '#/definitions/DatasetNewVersionRequest'
description: Information for creating a new dataset version
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/datasets/create/new:
post:
tags:
- kaggle
summary: Create a new dataset
operationId: DatasetsCreateNew
produces:
- application/json
consumes:
- application/json
parameters:
- in: body
name: datasetNewRequest
required: true
schema:
$ref: '#/definitions/DatasetNewRequest'
description: Information for creating a new dataset
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/kernels/list:
get:
tags:
- kaggle
summary: List kernels
operationId: KernelsList
produces:
- application/json
parameters:
- in: query
name: page
type: integer
default: 1
description: Page number
- in: query
name: pageSize
type: integer
default: 20
description: Page size
- in: query
name: search
default: ''
type: string
description: Search terms
- in: query
name: group
type: string
enum: [everyone, profile, upvoted]
default: everyone
description: Display only your kernels
- in: query
name: user
type: string
description: Display kernels by a particular group
- in: query
name: language
type: string
enum: [all, python, r, sqlite, julia]
default: all
description: Display kernels in a specific language
- in: query
name: kernelType
type: string
enum: [all, script, notebook]
default: all
description: Display kernels of a specific type
- in: query
name: outputType
type: string
enum: [all, visualization, data]
default: all
description: Display kernels with a specific output type
- in: query
name: sortBy
type: string
enum: [hotness, commentCount, dateCreated, dateRun, scoreAscending, scoreDescending, viewCount, voteCount, relevance]
default: hotness
description: Sort the results. 'relevance' only works if there is a search query
- in: query
name: dataset
type: string
description: Display kernels using the specified dataset
- in: query
name: competition
type: string
description: Display kernels using the specified competition
- in: query
name: parentKernel
type: string
description: Display kernels that have forked the specified kernel
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/kernels/push:
post:
tags:
- kaggle
summary: Push a new kernel version. Can be used to create a new kernel and update an existing one.
operationId: KernelPush
produces:
- application/json
consumes:
- application/json
parameters:
- in: body
name: kernelPushRequest
required: true
schema:
$ref: '#/definitions/KernelPushRequest'
description: Information for pushing a new kernel version
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/kernels/pull:
get:
tags:
- kaggle
summary: Pull the latest code from a kernel
operationId: KernelPull
produces:
- application/json
parameters:
- in: query
name: userName
required: true
type: string
description: Kernel owner
- in: query
name: kernelSlug
required: true
type: string
description: Kernel name
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/kernels/output:
get:
tags:
- kaggle
summary: Download the latest output from a kernel
operationId: KernelOutput
produces:
- application/json
parameters:
- in: query
name: userName
required: true
type: string
description: Kernel owner
- in: query
name: kernelSlug
required: true
type: string
description: Kernel name
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/kernels/status:
get:
tags:
- kaggle
summary: Get the status of the latest kernel version
operationId: KernelStatus
produces:
- application/json
parameters:
- in: query
name: userName
required: true
type: string
description: Kernel owner
- in: query
name: kernelSlug
required: true
type: string
description: Kernel name
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/datasets/metadata/{ownerSlug}/{datasetSlug}:
get:
tags:
- kaggle
summary: Get the metadata for a dataset
operationId: MetadataGet
produces:
- application/json
parameters:
- in: path
name: ownerSlug
required: true
type: string
description: Dataset owner
- in: path
name: datasetSlug
required: true
type: string
description: Dataset name
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
post:
tags:
- kaggle
summary: Update the metadata for a dataset
operationId: MetadataPost
consumes:
- application/json
produces:
- application/json
parameters:
- in: path
name: ownerSlug
required: true
type: string
description: Dataset owner
- in: path
name: datasetSlug
required: true
type: string
description: Dataset name
- in: body
name: settings
required: true
description: Dataset metadata to update
type: object
schema:
$ref: '#/definitions/DatasetUpdateSettingsRequest'
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
definitions:
Result:
type: object
Error:
type: object
properties:
code:
type: integer
example: 404
description: The server error code returned
message:
type: string
example: NotFound
description: The error message generated by the server
DatasetColumn:
type: object
properties:
order:
type: number
description: The order that the column comes in, 0-based. (The first column is 0, second is 1, etc.)
name:
type: string
description: The column name
type:
type: string
description: The type of all of the fields in the column. Please see the data types on https://github.com/Kaggle/kaggle-api/wiki/Dataset-Metadata
originalType:
type: string
description: Used to store the original type of the column, which will be converted to Kaggle's types. For example, an `originalType` of `"integer"` would convert to a `type` of `"numeric"`
description:
type: string
description: The description of the column
DatasetUploadFile:
type: object
properties:
token:
type: string
description: A token referencing a specific file upload that can be used across requests
description:
type: string
description: The file description
columns:
type: array
description: A list of dataset column metadata
items:
$ref: '#/definitions/DatasetColumn'
DatasetNewVersionRequest:
type: object
required:
- versionNotes
- files
properties:
versionNotes:
type: string
description: The version notes for the new dataset version
subtitle:
type: string
description: The subtitle to set on the dataset
description:
type: string
description: The description to set on the dataset
files:
type: array
description: A list of files that should be associated with the dataset
items:
$ref: '#/definitions/DatasetUploadFile'
convertToCsv:
type: boolean
description: Whether or not a tabular dataset should be converted to csv
default: true
categoryIds:
type: array
description: A list of tag IDs to associated with the dataset
items:
type: string
deleteOldVersions:
type: boolean
description: Whether or not all previous versions of the dataset should be deleted upon creating the new version
default: false
DatasetNewRequest:
type: object
required:
- title
- licenseShortName
- files
properties:
title:
type: string
description: The title of the new dataset
slug:
type: string
description: The slug that the dataset should be created with
ownerSlug:
type: string
description: The owner's username
licenseName:
type: string
description: The license that should be associated with the dataset
default: unknown
enum:
- CC0-1.0
- CC-BY-SA-4.0
- GPL-2.0
- ODbL-1.0
- CC-BY-NC-SA-4.0
- unknown
- DbCL-1.0
- CC-BY-SA-3.0
- copyright-authors
- other
- reddit-api
- world-bank
subtitle:
type: string
description: The subtitle to be set on the dataset
description:
type: string
description: The description to be set on the dataset
default: ''
files:
type: array
description: A list of files that should be associated with the dataset
items:
$ref: '#/definitions/DatasetUploadFile'
isPrivate:
type: boolean
description: Whether or not the dataset should be private
default: true
convertToCsv:
type: boolean
description: Whether or not a tabular dataset should be converted to csv
default: true
categoryIds:
type: array
description: A list of tag IDs to associated with the dataset
items:
type: string
KernelPushRequest:
type: object
required:
- text
- language
- kernelType
properties:
id:
type: integer
description: The kernel's ID number. One of `id` and `slug` are required. If both are specified, `id` will be preferred
slug:
type: string
description: The full slug of the kernel to push to, in the format `USERNAME/KERNEL-SLUG`. The kernel slug must be the title lowercased with dashes (`-`) replacing spaces. One of `id` and `slug` are required. If both are specified, `id` will be preferred
newTitle:
type: string
description: The title to be set on the kernel
text:
type: string
description: The kernel's source code
language:
type: string
description: The language that the kernel is written in
enum:
- python
- r
- rmarkdown
kernelType:
type: string
description: The type of kernel. Cannot be changed once the kernel has been created
enum:
- script
- notebook
isPrivate:
type: boolean
description: Whether or not the kernel should be private
enableGpu:
type: boolean
description: Whether or not the kernel should run on a GPU
enableInternet:
type: boolean
description: Whether or not the kernel should be able to access the internet
datasetDataSources:
type: array
description: A list of dataset data sources that the kernel should use. Each dataset is specified as `USERNAME/DATASET-SLUG`
items:
type: string
competitionDataSources:
type: array
description: A list of competition data sources that the kernel should use
items:
type: string
kernelDataSources:
type: array
description: A list of kernel data sources that the kernel should use. Each dataset is specified as `USERNAME/KERNEL-SLUG`
items:
type: string
categoryIds:
type: array
description: A list of tag IDs to associated with the dataset
items:
type: string
DatasetUpdateSettingsRequest:
type: object
required:
properties:
title:
type: string
description: Title of the dataset
subtitle:
type: string
description: Subtitle of the dataset
description:
type: string
description: Decription of the dataset
isPrivate:
type: boolean
description: Whether or not the dataset should be private
licenses:
type: array
description: A list of licenses that apply to this dataset
items:
type: object
schema:
$ref: '!/definitions/License'
keywords:
type: array
description: A list of keywords that apply to this dataset
items:
type: string
collaborators:
type: array
description: A list of collaborators that may read or edit this dataset
items:
type: object
schema:
$ref: '!definitions/Collaborators'
data:
type: array
description: A list containing metadata for each file in the dataset
items:
type: object
License:
type: object
required:
- name
properties:
name:
type: string
description: Name of the license
enum:
- CC0-1.0
- CC-BY-SA-4.0
- GPL-2.0
- ODbL-1.0
- CC-BY-NC-SA-4.0
- unknown
- DbCL-1.0
- CC-BY-SA-3.0
- copyright-authors
- other
- reddit-api
- world-bank
Collaborator:
type: object
required:
- username
- role
properties:
username:
type: string
description: Username of the collaborator
role:
type: string
description: Role of the collaborator
enum:
- reader
- writer
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化