Create Contribution

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

array of FileInfo
files
Optional

files

array of Category
categories
Optional

categories

array of Tag
tags
Optional

tags

string
ossLicense
Optional

ossLicense

string
metadata
Optional

metadata

Authentication
This operation uses the following authentication methods.
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

author
Optional

author

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

array of SampleFile
files
Optional

files

array of Group
groups
Optional

groups

array of Category
categories
Optional

categories

array of Tag
tags
Optional

tags

array of Comment
comments
Optional

comments

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