<commit_before><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>FII Admis REST API</title>
<link rel="stylesheet" href="styles/styles.css" type="text/css" media="screen">
</head>
<body>

  <h2>
    FII Admis REST API
  </h2>

  <p>
    <b>Github Project:</b> <a href="https://github.com/avlacatus/fii-admis">avlacatus/fii-admis</a>
  </p>
  <p>
    * Input/ Output sunt in formatter json. <br />
    * La url-ul <a
      href="http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api">http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api</a>
    <B><span style="color: blue; ">se adauga</span></b> urmatoarele path-uri. <br />
  </p>

  <hr />

  <p>
    <b>GET /candidates </b><br/>- Output: lista de {candidate_id} <br/>- Scop: vezi toti candidatii inscrisi, in ordinea alfabetica a numelui (fara
    rezultate) <br /> <br />
  </p>

  <p>
    <b><span style="color: blue; "> GET http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/candidates <br />
        <br /> 200 OK <br /> { "candidates": [ { "id": "Aa2I", "lastName": "Popescu", "gpaGrade": 9.3, "ATestGrade":
        8.9, "socialId": "347389523255435", "firstName": "Ionut" }, { "id": "vr6U", "lastName": "Popescu", "gpaGrade":
        9.3, "ATestGrade": 8.9, "socialId": "347389523255435", "firstName": "Ionut" } ]}
    </span></b>
  </p>

  <hr />

  <p>
    <b>GET /candidates/{candidate_id}</b> <br />- Output: informatiile de inscriere ale unui candidat: {candidate_id,
    first_name, last_name, social_id, gpa_grade, a_test_grade} <br />- Scop: informatiile personale doar unui student
  </p>
  <p>
    <b><span style="color: blue; "> GET
        http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/candidates/Aa2I </br> <br /> 200 OK <br />{ "id":
        "Aa2I", "lastName": "Popescu", "gpaGrade": 9.3, "ATestGrade": 8.9, "socialId": "347389523255435", "firstName":
        "Ionut" }
    </span></b>
  </p>

  <hr />

  <p>
    <b>GET /admission_results </b> <br />- Input: La prima operatie, care este permisa doar admin-ului, header-ul "Pragma:admin" <br />- Output: lista cu rezultatele admiterii, in ordinea descrescatoare a mediei finale {candidate_id, final_grade, status} <br />- Scop: publicarea rezultatelor (echivalent cu start calcul medii admitere).
    <br />- Restrictie: prima oara, aceasta operatie este permisa doar adminului (identificat prin headerul mentionat mai sus), elevul va primi 403 Forbidden; apoi va
    fi permisa si din interfata de elevi <br />
  </p>

  <p>
      <b><span style="color: blue; "> GET
        http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/admission_results </br> <br /> 200 OK <br />{
"admissionResults":[
    {
        "finalGrade":9.77,
        "id":"boiF",
        "candidateId":"jfcf",
        "admissionStatus":{
            "statusString":"tax_free",
            "statusInt":0
        }
    },
    {
        "finalGrade":9.615,
        "id":"vheC",
        "candidateId":"rXg6",
        "admissionStatus":{
            "statusString":"tax_free",
            "statusInt":0
        }
    }]}
    </span></b>
  </p>


  <hr />

  <p>
    <b>GET /admission_results/{candidate_id}</b> <br />- Output: informatiile unui candidat despre rezultatul sau:
    {candidate_id, final_grade, status} <br />- Scop: informatii de admitere doar pentru un student <br />-
    Restrictie: aceasta operatie va fi permisa doar dupa ce un admin va data GET la /admission_results
  </p>

  <p>
      <b><span style="color: blue; "> GET
        http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/admission_results/jfcf </br> <br /> 200 OK <br />
    {
        "finalGrade":9.77,
        "id":"boiF",
        "candidateId":"jfcf",
        "admissionStatus":{
            "statusString":"tax_free",
            "statusInt":0
        }
    }
    </span></b>
  </p>

  <hr/>

  <p>
    <b>POST /candidates</b> <br />- Input: un json cu datele {first_name, last_name, social_id, gpa_grade, a_test_grade} <br />-
    Output: 201 Created + Header: "Location: /{candidate_id}" <br />- Scop: se inregistreaza elevul la facultate
  </p>
  <p>
    <b><span style="color: blue; "> POST http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/candidates <br />{"lastName":"Jolie","gpaGrade":9.3,"ATestGrade":8.9,"socialId":"347389523255435","firstName":"Angelina"}
        <br /> <br />201 Created <br /> Location:
        http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/candidates/PmbP
    </span></b>
  </p>


  <hr />

  <p>
    <b>PUT /candidates/{candidate_id}</b> <br />- Input: un json cu datele {candidate_id, first_name, last_name, social_id,
    gpa_grade, a_test_grade} <br />- Output: 204 No Content <br />- Scop: elevul sa-si updateze datele personale
  </p>

  <p>
    <b><span style="color: blue; "> PUT
        http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/candidates/zZY7 <br />{"lastName":"Popescianu","gpaGrade":9.3,"ATestGrade":8.9,"socialId":"347389523255435","firstName":"Ionut"}
        <br /> <br />204 No Content
    </span></b>
  </p>

  <hr />

  <p>
    <b>DELETE /candidates/{candidate_id}</b> <br />- Input: operatie permisa doar admin-ului, marcat prin header-ul "Pragma:admin" <br />- Output: 204 No Content <br />- Scop: studentul
    vrea sa renunte la admitere, insa numai un administrator il poate sterge
  </p>
  <p>
    <b><span style="color: blue; "> DELETE <br />http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/candidates/Dmzi
        <br /> <br />204 No Content
    </span></b>
  </p>
  
  <hr/>

  <p>
    <b>DELETE /admission_results</b> <br />- Input: operatie permisa doar admin-ului, marcat prin header-ul "Pragma:admin" <br />- Output: 204 No Content <br />- Scop: admin-ul vrea sa stearga rezultatele (mai mult in scop de test). Operatia nu va fi permisa in interfata web.
    <br/> Doar admin-ul ("Pragma: admin") are voie. Altfel, se va primi un 403 Forbidden.
  </p>
  <p>
    <b><span style="color: blue; "> DELETE <br />http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/admission_results
        <br /> <br />204 No Content
    </span></b>
  </p>
</body>
</html><commit_msg>updated api doc;<commit_after><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>FII Admis REST API</title>
<link rel="stylesheet" href="styles/styles.css" type="text/css" media="screen">
</head>
<body>

  <h2>
    FII Admis REST API
  </h2>

  <p>
    <b>Github Project:</b> <a href="https://github.com/avlacatus/fii-admis">avlacatus/fii-admis</a>
  </p>
  <p>
    * Input/ Output sunt in formatter json. <br />
    * La url-ul <a
      href="http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api">http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api</a>
    <B><span style="color: brown; ">se adauga</span></b> urmatoarele path-uri. <br />
  </p>

  <hr />

  <p>
    <b>GET /candidates </b><br/>- Output: lista de {candidate_id} <br/>- Scop: vezi toti candidatii inscrisi, in ordinea alfabetica a numelui (fara
    rezultate) <br /> <br />
  </p>

  <p>
    <b><span style="color: brown; "> GET http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/candidates <br />
        <br /> 200 OK <br /> { "candidates": [ { "id": "Aa2I", "lastName": "Popescu", "gpaGrade": 9.3, "ATestGrade":
        8.9, "socialId": "347389523255435", "firstName": "Ionut" }, { "id": "vr6U", "lastName": "Popescu", "gpaGrade":
        9.3, "ATestGrade": 8.9, "socialId": "347389523255435", "firstName": "Ionut" } ]}
    </span></b>
  </p>

  <hr />

  <p>
    <b>GET /candidates/{candidate_id}</b> <br />- Output: informatiile de inscriere ale unui candidat: {candidate_id,
    first_name, last_name, social_id, gpa_grade, a_test_grade} <br />- Scop: informatiile personale doar unui student
  </p>
  <p>
    <b><span style="color: brown; "> GET
        http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/candidates/Aa2I </br> <br /> 200 OK <br />{ "id":
        "Aa2I", "lastName": "Popescu", "gpaGrade": 9.3, "ATestGrade": 8.9, "socialId": "347389523255435", "firstName":
        "Ionut" }
    </span></b>
  </p>

  <hr />

  <p>
    <b>GET /admission_results </b> <br />- Input: La prima operatie, care este permisa doar admin-ului, header-ul "Pragma:admin" <br />- Output: lista cu rezultatele admiterii, in ordinea descrescatoare a mediei finale {candidate_id, final_grade, status} <br />- Scop: publicarea rezultatelor (echivalent cu start calcul medii admitere).
    <br />- Restrictie: prima oara, aceasta operatie este permisa doar adminului (identificat prin headerul mentionat mai sus), elevul va primi 403 Forbidden; apoi va
    fi permisa si din interfata de elevi <br />
  </p>

  <p>
      <b><span style="color: brown; "> GET
        http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/admission_results </br> <br /> 200 OK <br />{
"admissionResults":[
    {
        "finalGrade":9.77,
        "id":"boiF",
        "candidateId":"jfcf",
        "admissionStatus":{
            "statusString":"tax_free",
            "statusInt":0
        }
    },
    {
        "finalGrade":9.615,
        "id":"vheC",
        "candidateId":"rXg6",
        "admissionStatus":{
            "statusString":"tax_free",
            "statusInt":0
        }
    }]}
    </span></b>
  </p>


  <hr />

  <p>
    <b>GET /admission_results/{candidate_id}</b> <br />- Output: informatiile unui candidat despre rezultatul sau:
    {candidate_id, final_grade, status} <br />- Scop: informatii de admitere doar pentru un student <br />-
    Restrictie: aceasta operatie va fi permisa doar dupa ce un admin va data GET la /admission_results
  </p>

  <p>
      <b><span style="color: brown; "> GET
        http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/admission_results/jfcf </br> <br /> 200 OK <br />
    {
        "finalGrade":9.77,
        "id":"boiF",
        "candidateId":"jfcf",
        "admissionStatus":{
            "statusString":"tax_free",
            "statusInt":0
        }
    }
    </span></b>
  </p>

  <hr/>

  <p>
    <b>POST /candidates</b> <br />- Input: un json cu datele {first_name, last_name, social_id, gpa_grade, a_test_grade} <br />-
    Output: 201 Created + Header: "Location: /{candidate_id}" <br />- Scop: se inregistreaza elevul la facultate
  </p>
  <p>
    <b><span style="color: brown; "> POST http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/candidates <br />{"lastName":"Jolie","gpaGrade":9.3,"ATestGrade":8.9,"socialId":"347389523255435","firstName":"Angelina"}
        <br /> <br />201 Created <br /> Location:
        http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/candidates/PmbP
    </span></b>
  </p>


  <hr />

  <p>
    <b>PUT /candidates/{candidate_id}</b> <br />- Input: un json cu datele {candidate_id, first_name, last_name, social_id,
    gpa_grade, a_test_grade} <br />- Output: 204 No Content <br />- Scop: elevul sa-si updateze datele personale
  </p>

  <p>
    <b><span style="color: brown; "> PUT
        http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/candidates/zZY7 <br />{"lastName":"Popescianu","gpaGrade":9.3,"ATestGrade":8.9,"socialId":"347389523255435","firstName":"Ionut"}
        <br /> <br />204 No Content
    </span></b>
  </p>

  <hr />

  <p>
    <b>DELETE /candidates/{candidate_id}</b> <br />- Input: operatie permisa doar admin-ului, marcat prin header-ul "Pragma:admin" <br />- Output: 204 No Content <br />- Scop: studentul
    vrea sa renunte la admitere, insa numai un administrator il poate sterge
  </p>
  <p>
    <b><span style="color: brown; "> DELETE <br />http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/candidates/Dmzi
        <br /> <br />204 No Content
    </span></b>
  </p>
  
  <hr/>

  <p>
    <b>DELETE /admission_results</b> <br />- Input: operatie permisa doar admin-ului, marcat prin header-ul "Pragma:admin" <br />- Output: 204 No Content <br />- Scop: admin-ul vrea sa stearga rezultatele (mai mult in scop de test). Operatia nu va fi permisa in interfata web.
    <br/> Doar admin-ul ("Pragma: admin") are voie. Altfel, se va primi un 403 Forbidden.
  </p>
  <p>
    <b><span style="color: brown; "> DELETE <br />http://fii-admis-restservice-dt5dd3kc2v.elasticbeanstalk.com/api/admission_results
        <br /> <br />204 No Content
    </span></b>
  </p>
</body>
</html>
{'fraction_non_alphanumeric': 0.1761354517733911, 'fraction_numerical': 0.030813673567645642, 'mean_word_length': 3.087569694981961, 'pattern_counts': {'":': 96, '<': 341, '<?xml version=': 0, '>': 341, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5993839', 'n_tokens_mistral': 5153, 'n_tokens_neox': 4779, 'n_words': 1077}