Get Contribution Defaults
Must be logged in to Developer Center and provide Basic Auth credentials. This is analogous to the /contributions API, but it only expects the information about the file content/repositories etc as input, and returns its best guess at appropriate defaults for the Contribution as output. It does this by heuristic analysis of the file content, guessing at a name for the sample, description, tags and categories.
{
"id": 0,
"active": false,
"name": "string",
"type": "string",
"readmeHtml": "string",
"appendRepositoryReadme": false,
"repositoryReadmeHtml": "string",
"url": "string",
"githubApiUrl": "string",
"branch": "string",
"paths": [
"string"
],
"files": [
{
"id": 0,
"name": "string",
"mode": "string",
"type": "string",
"sha": "string",
"path": "string",
"size": 0,
"url": "string",
"content": "string"
}
],
"categories": [
{
"id": 0,
"parentId": 0,
"type": "string",
"name": "string",
"version": "string"
}
],
"tags": [
{
"id": 0,
"parentId": 0,
"category": "string",
"name": "string"
}
],
"ossLicense": "string",
"metadata": "string"
}
id
active
name
type
readmeHtml
appendRepositoryReadme
repositoryReadmeHtml
url
githubApiUrl
branch
paths
ossLicense
metadata
successful operation
{
"id": 0,
"active": false,
"name": "string",
"type": "string",
"readmeHtml": "string",
"appendRepositoryReadme": false,
"repositoryReadmeHtml": "string",
"url": "string",
"githubApiUrl": "string",
"branch": "string",
"paths": [
"string"
],
"files": [
{
"id": 0,
"name": "string",
"mode": "string",
"type": "string",
"sha": "string",
"path": "string",
"size": 0,
"url": "string",
"content": "string"
}
],
"categories": [
{
"id": 0,
"parentId": 0,
"type": "string",
"name": "string",
"version": "string"
}
],
"tags": [
{
"id": 0,
"parentId": 0,
"category": "string",
"name": "string"
}
],
"ossLicense": "string",
"metadata": "string"
}
id
active
name
type
readmeHtml
appendRepositoryReadme
repositoryReadmeHtml
url
githubApiUrl
branch
paths
ossLicense
metadata