Skip to content

Implement /api/v1/campaigns/:id/reports/:reportid API endpoint #5

@farmdawgnation

Description

@farmdawgnation

We need an endpoint to retrieve an individual report, which will probably end up being structured like:

  • _id
  • campaignId
  • candidate
    • lastName
    • firstName
    • _id
  • type
  • year
  • title
  • receivedDate
  • contributions: An array of objects that look like...
    • contributorName
    • contributorAddress
    • affiliation
    • receivedDate
    • contributionType
    • electionName
    • inKindDescription
    • inKindAmount
    • cashAmount

The endpoint to be implemented is:

GET /api/v1/campaigns/:campaignid/reports/:reportid

This should return an object shaped as described above.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions