Symfony version used 3.4(LTS)
Route :/user
method :POST
post body :
{
"payload": {
"login": "toto",
"email": "[email protected]",
"birthDate": "02/09/1993"
}
}
exemple curl :
curl --request POST \
--url http://localhost:8000/user \
--header 'content-type: application/json' \
--data '{
"payload": {
"login": "toto",
"email": "[email protected]",
"birthDate": "02/09/1993"
}
}'
Route :/user/{id_user}/vote/{id_movie}
method :POST
exemple curl :
curl --request POST \
--url http://localhost:8000/user/1/vote/1 \
--header 'content-type: application/json'
Route :/user/{id_user}/vote/{id_movie}
method :DELETE
exemple curl :
curl --request DELETE \
--url http://localhost:8000/user/1/vote/1 \
--header 'content-type: application/json'
Route :/user/{id_user}/votes
method :GET
exemple curl :
curl --request GET \
--url http://localhost:8000/user/1/votes \
--header 'content-type: application/json'
Route :/movies/best
method :GET
exemple curl :
curl --request GET \
--url http://localhost:8000/movies/best \
--header 'content-type: application/json'
Route :/movie/{id_movie}/votes
method :GET
exemple curl :
curl --request GET \
--url http://localhost:8000/movie/1/votes \
--header 'content-type: application/json'