Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review Backend - Phop #1

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Review Backend - Phop #1

wants to merge 7 commits into from

Conversation

ph0pz
Copy link
Collaborator

@ph0pz ph0pz commented Apr 28, 2023

Candidate Table with API and Authorization to manage Candidate

Attribute

  • Candidate Table including attributes CandidateId , StatusId , Name , Email, Score, InterviewDate , PhoneNumber.

UserController

  • [POST] api/user/register : register a new user to manage candidate.
  • [POST] api/user/login : login with username and password that register to manage Candidate's API.

CandidateController

  • [GET] api/todo : get all candidate data in table.
  • [GET] api/todo/{CandidateId} get only candidate by the CandidateId.
  • [POST] api/todo : push the new candidate with information of the candidate to the table.
  • [PUT] api/todo/{CandidateId} : update the candidate information.
  • [DELETE] api/todo/{CandidateId} : delete the candidate by CandidateId.

The rest of the services that i didn't mention are the service that in the development progress of the project.

6_Backend/ToDoAPI/ToDoAPI/Controllers/ScoreController.cs Outdated Show resolved Hide resolved
return BadRequest(ex.Message);
}
}
[HttpPost("{candidateId}/{score}/{scoreTypeDescription}")]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should move the score value to FormBody

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still wondering what exactly I have to do. i will fix this on my implementation

6_Backend/ToDoAPI/ToDoAPI/Data/User.cs Show resolved Hide resolved
6_Backend/ToDoAPI/ToDoAPI/Services/CandidateService.cs Outdated Show resolved Hide resolved
6_Backend/ToDoAPI/ToDoAPI/Services/CandidateService.cs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants