Create Contribution
Must be logged in to Developer Center and provide Basic Auth credentials.
Request
URI
POST
https://apigw.vmware.com/sampleExchange/v1/contributions
COPY
Request Body
Contribution of type(s) application/json
Optional
{
"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"
}
integer As int32 As int32
id
Optional
id
boolean
active
Optional
active
string
name
Optional
name
string
type
Optional
type
Possible values are : REPOSITORY, GIST, PROJECT, SNIPPET, DCR, LINK,
string
readmeHtml
Optional
readmeHtml
boolean
appendRepositoryReadme
Optional
appendRepositoryReadme
string
repositoryReadmeHtml
Optional
repositoryReadmeHtml
string
url
Optional
url
string
githubApiUrl
Optional
githubApiUrl
string
branch
Optional
branch
array of string
paths
Optional
paths
string
ossLicense
Optional
ossLicense
string
metadata
Optional
metadata
Responses
200
successful operation
Returns Sample of type(s) application/json
{
"id": 0,
"author": {
"id": 0,
"federationId": "string",
"communitiesUser": "string",
"fullName": "string",
"gitHubLogin": "string",
"gitHubToken": "string",
"linked": false,
"score": "number"
},
"name": "string",
"type": "string",
"created": "string",
"lastUpdated": "string",
"lastAutoUpdated": "string",
"readmeHtml": "string",
"appendRepositoryReadme": false,
"repositoryReadmeHtml": "string",
"ossLicense": "string",
"downloadUrl": "string",
"webUrl": "string",
"gitHubUrl": "string",
"branch": "string",
"paths": [
"string"
],
"files": [
{
"id": 0,
"sampleId": 0,
"path": "string",
"url": "string",
"basicMimeType": "string"
}
],
"groups": [
{
"id": 0,
"sampleId": 0,
"name": "string"
}
],
"categories": [
{
"id": 0,
"parentId": 0,
"type": "string",
"name": "string",
"version": "string"
}
],
"tags": [
{
"id": 0,
"parentId": 0,
"category": "string",
"name": "string"
}
],
"comments": [
{
"id": 0,
"parentId": 0,
"type": "string",
"federationId": "string",
"communitiesUser": "string",
"comment": "string",
"created": "string",
"lastUpdated": "string"
}
],
"favoriteCount": 0,
"downloadCount": 0,
"score": "number",
"metadata": "string"
}
integer As int32 As int32
id
Optional
id
string
name
Optional
name
string
type
Optional
type
Possible values are : REPOSITORY, GIST, DCR, LINK,
string As date-time As date-time
created
Optional
created
string As date-time As date-time
lastUpdated
Optional
lastUpdated
string As date-time As date-time
lastAutoUpdated
Optional
lastAutoUpdated
string
readmeHtml
Optional
readmeHtml
boolean
appendRepositoryReadme
Optional
appendRepositoryReadme
string
repositoryReadmeHtml
Optional
repositoryReadmeHtml
string
ossLicense
Optional
ossLicense
string
downloadUrl
Optional
downloadUrl
string
webUrl
Optional
webUrl
string
gitHubUrl
Optional
gitHubUrl
string
branch
Optional
branch
array of string
paths
Optional
paths
integer As int32 As int32
favoriteCount
Optional
favoriteCount
integer As int32 As int32
downloadCount
Optional
downloadCount
number As double As double
score
Optional
score
string
metadata
Optional
metadata
Contributions Operations
POST
Create Contribution
POST
Create Contribution Async
GET
Get Contribution Async
POST
Get Contribution Defaults