issues
search
BrightbotsAI
/
Legal-Management-API
Legal Management API Uniempresarial Workshop
0
stars
0
forks
source link
POST /precedents
#58
Open
cristiancmedina
opened
6 months ago
cristiancmedina
commented
6 months ago
[x] The POST endpoint does not require an ID to create a new precedent.
[ ] The POST endpoint permits the creation of a new precedent with blank strings.
[x] The POST endpoint expects the case_id to be an integer, but it allows strings instead.
[x] The POST endpoint expects the precedent_title to be a string, but it allows an integer instead.
[x] The POST endpoint expects the description to be a string, but it allows an integer instead.
[x] The POST endpoint expects the relevant_cases to be a string, but it allows an integer instead.
[x] The POST endpoint expects the legal_principles to be a string, but it allows an integer instead.
[ ] The POST endpoint expects the date_created to be a string, but it allows an integer instead.
sergio2732
commented
5 months ago
In the post you have the function to validate the empty fields but if you put this in the postman create a
field: ""
The field "date_created" was delete in the table of dynamoDB