v1

latestOpenAPI 3.0.02026-08-066425196.1 KB
Contributions

Get contribution data by user id directly from the database.

Get contribution data by user id directly from the database. Returns a JSON result.

get/contributions/userId/{userId}

Query parameters

userIdstring required

Contributor's unique identifier which maps to the userId field in the MySQL database

statusstring

Contribution's status which maps to the status field in the MySQL database

contributionTypestring

Contribution type which maps to the contributionType field in the MySQL database

updatedAtstring

Compares provided timestamp to records updated timestamp, which maps to the updatedAt field in the MySQL database

targetNaIdstring

Contribution's target record's unique identifier which maps to the targetNaId field in the MySQL database

createdAtstring

Contribution's date of creation by which to filter

updatedAtstring

Contribution's date of modification by which to filter

sortBy'contribution.asc' | 'contribution.desc' | 'createdAt.asc' | 'createdAt.desc' | 'updatedAt.asc' | 'updatedAt.desc'

Sort order:

  • contribution.asc - Sort by contribution, ascending from A to Z
  • contribution.desc - Sort by contribution, descending from Z to A
  • createdAt.asc - Sort by created date, ascending
  • createdAt.desc - Sort by created date, descending
  • updatedAt.asc - Sort by updated date, ascending
  • updatedAt.desc - Sort by updated date, descending
  • count.asc - Sort by aggregated tag counts, ascending, ONLY works when contributionType = tag is present
  • count.desc - Sort by aggregated tag counts, descending, ONLY works when contributionType = tag is present

Response

A body of response data containing contribution data from the database if any were found.