Skip to content

Instantly share code, notes, and snippets.

@f0-x
Last active June 23, 2023 04:33
Show Gist options
  • Save f0-x/e9dbd2e162c038641866409ab4f85654 to your computer and use it in GitHub Desktop.
Save f0-x/e9dbd2e162c038641866409ab4f85654 to your computer and use it in GitHub Desktop.
Funding Submissions πŸ“
// After the successfull project's eligiblity check for the specific funding option
// user can trigger this POST Http Call to submit their project for review round πŸ”
// POST: /fundingSubmissions πŸ“
{
"fundingCategoryId": "Unique id of the specific Funding Option of the current funding cycle",
"memberId": "Id of the member who submitted the application",
"projectId": "Id of the project submitted for this funding option",
"projectPosters": [
{
"id": "1.1.64116.af00006c",
"orientation": "horizontal",
"content": "1.1.64165.4400000f",
"MimeType": "image/jpeg",
"description": null,
"tags": null
},
{
"id": "1.1.64116.af000071",
"orientation": "vertical",
"content": "1.1.64165.4400000e",
"MimeType": "image/jpeg",
"description": null,
"tags": null
}
],
"projectLogline": "Logline of the project goes here",
"projectSynopsis": "Synopsis of the project goes here",
// "targetSlot" indicates whether this submission is intended for the
// 1) "Prime Funding Slot", i.e the main funding slot is still not full.
// or
// 2) "Waiting List Slot", i.e the main funding slot is full. It could be an Enum type
// accepting only these two values, either "prime" slot or "waitingList" slot
"targetSlot": "prime" || "waitingList"
}
// In case of the user accidentally submits to the wrong category or they change their mind later on
// this request un-submits their project from the specific funding category.
// DELETE: /fundingSubmissions πŸ”΄
{
"fundingCategoryId": "Unique id of the specific Funding Option of the current funding cycle",
"memberId": "Id of the member who accidentally submitted the application",
"projectId": "Id of the project to delete from this funding category"
}
// GET: /fundingSubmissions 🧲
// returns an array of funding submissions by eligible candidates
// of all the funding cycles to date.
[
{
"id": "Id of the submission object",
"fundingCycleId": "Unique id of the Funding Cycle",
"fundingCategoryId": "Unique id of the specific Funding Category of the current funding cycle",
"memberId": "Id of the member who submitted the application",
"projectId": "Id of the project submitted for this funding option",
"targetSlot": "prime" || "waitingList"
}
]
// GET: /fundingSubmissions/1.0.6159e.c100c123 πŸ‘ˆ Unique id of a funding cycle
// returns an array of funding submissions by eligible candidates
// of the specified 'fundingCycle' id on the the URL
[
{
"id": "Id of the submission object",
"fundingCategoryId": "Unique id of the specific Funding Option of the current funding cycle",
"memberId": "Id of the member who submitted the application",
"projectId": "Id of the project submitted for this funding option",
"targetSlot": "prime" || "waitingList"
}
]
// GET: /fundingSubmissions/1.0.6159e.c100c123?member=1.0.6159e.c100sdf4
// returns an array of funding submissions of the given funding cycle by
// the specified 'memberId' on the query parameter of the URL
[
{
"id": "Id of the submission object",
"fundingCategoryId": "Unique id of the specific Funding Option of the current funding cycle",
"projectId": "Id of the project submitted for this funding option",
"targetSlot": "prime" || "waitingList"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment