1.2 This request will return STATUS 404 Not Found if the project don't have a previous submission
{
"error": "Project not found"
}
2. According to the first step, the front need to alert the user that have already a submission to that project type and ask if he wants to overwrite the current submission (show submission info and handle the project status if needed)
2.1 In case that don't have a submission to that file
Based on #21
Project work flow:
1. Check if user have already submitted a file to that current project.
1.1 This request will return
STATUS 200 OK
if the project have a previous submission1.2 This request will return
STATUS 404 Not Found
if the project don't have a previous submission2. According to the first step, the front need to alert the user that have already a submission to that project type and ask if he wants to overwrite the current submission (show submission info and handle the project status if needed)
2.1 In case that don't have a submission to that file
2.2 In case that have a submission to that file
PS: The
PUT localhost:8080/project
request change theStatus
toUpdated