VoidVampire / rekroot

ExpressJS backend of rekroot platform
0 stars 0 forks source link

POST /company/:id/posting/:postingid/application #9

Closed srevinsaju closed 10 months ago

srevinsaju commented 10 months ago

Creates a job application

{
  "applicantName": "John Doe",
  "email": "john.doe@example.com",
  "phone": "+1 (555) 123-4567",
  "resume": "https://example.com/john_doe_resume.pdf",
  "coverLetter": "I am excited about this opportunity and believe my skills align well with the position.",
  "linkedinProfile": "https://www.linkedin.com/in/johndoe",
  "githubProfile": "https://github.com/johndoe",
  "portfolio": "https://johndoe.portfolio.com",
  "skills": ["JavaScript", "React", "Node.js", "SQL"],
  "workExperience": [
    {
      "company": "Tech Solutions Inc.",
      "position": "Software Developer",
      "startDate": "2022-01-01",
      "endDate": "2023-03-01",
      "responsibilities": "Developed web applications using React and Node.js."
    }
  ],
  "education": [
    {
      "institution": "University of Tech",
      "degree": "Bachelor of Science in Computer Science",
      "graduationDate": "2021-05-15"
    }
  ],
  "references": [
    {
      "name": "Jane Smith",
      "relationship": "Former Manager",
      "contact": "jane.smith@example.com"
    }
  ],
  "customQuestions": {
    "question1": "What motivated you to apply for this position?",
    "question2": "Describe a challenging project you worked on and how you overcame obstacles."
  }
}

On success, return the ID of the application

VoidVampire commented 10 months ago

we have a router.post("/job-application") already, isn't that same? should i delete that one?

srevinsaju commented 10 months ago

Don't delete that yet - but if the structure is same, copy paste as a new endpoint. We will delete /job-application at the end.

srevinsaju commented 10 months ago

Note, that we have custom questions

 "customQuestions": {
    "question1": "What motivated you to apply for this position?",
    "question2": "Describe a challenging project you worked on and how you overcame obstacles."
  }

When a job posting is created, HR can put in custom questions, and they can answer it.

VoidVampire commented 10 months ago

ok

VoidVampire commented 10 months ago

done