Closed Vishwas1 closed 3 years ago
API for creating project
UrL : /api/v1/project
Method: POST
Request body:
{
"projectName": "Cred Credential Issuer 123",
"logoUrl": "http://fyre.hypersign.id/wp-content/uploads/elementor/thumbs/HF_SMall-pch5ehuxrejjgmsohg31856yer1edotxk6p6ly0fdi.png",
"fromDate": "2021-09-02T02:13:00.000Z",
"toDate": "2021-10-31T02:13:00.000Z",
"ownerDid": "did:hs:617e0a7d-6b24-471a-9637-6ff3d2aa3018",
"projectStatus": true,
"blockchainType": "ETHEREUM",
"themeColor": "#2b0a4e",
"fontColor": "#ffffff",
"slug": "solana-hack-test001",
"investorsCount": 0,
"whitelisting_link": "https://hswhitelist.netlify.app/app/form/solana-hack-test001",
"investors_link": "https://hswhitelist.netlify.app/app/admin/investors?projectId=6130de1f0379c618867c3555",
"social": {
"twitter": {
"isEnabled": true,
"twitterHandle": "solana",
"twitterPostFormat": "solana"
},
"telegram": {
"isEnabled": true,
"telegramHandle": "solana",
"telegramAnnouncementChannel": ""
}
},
"actions": [{
"type": "INPUT_TEXT",
"title": "Enter your name",
"placeholder": "Vishwas Anand Bhushan",
"isManadatory": false,
"value": "",
"score": 20
}]
}
Response Body:
{
"actions": [
{
"type": "INPUT_TEXT",
"title": "Enter your name",
"placeholder": "Vishwas Anand Bhushan",
"isManadatory": false,
"value": "",
"score": 20
}
],
"_id": "61386cf9f2f3838b4d20e1e1",
"projectName": "Cred Credential Issuer 123",
"logoUrl": "http://fyre.hypersign.id/wp-content/uploads/elementor/thumbs/HF_SMall-pch5ehuxrejjgmsohg31856yer1edotxk6p6ly0fdi.png",
"fromDate": "2021-09-02T02:13:00.000Z",
"toDate": "2021-10-31T02:13:00.000Z",
"ownerDid": "did:hs:be49f6d9-01a1-4132-a576-553415ee8337",
"twitterHandle": "solana",
"telegramHandle": "solana",
"twitterPostFormat": "solana",
"projectStatus": true,
"telegramAnnouncementChannel": "",
"blockchainType": "ETHEREUM",
"themeColor": "#2b0a4e",
"fontColor": "#ffffff",
"slug": "cred-credential-issuer-123",
"__v": 0
}
actions
property as typearray
interface Action{ type: actionType; title: string; placeHolder: string; // optional isManadatory: boolean; value: string; score: number; }
actions: array;