MerryFairyTalesAD440 / API

1 stars 2 forks source link

PUT/DELETE/GET return the wrong http status codes #54

Open mviencek opened 5 years ago

mviencek commented 5 years ago

Tested https://ad4401boxfransprint263s2plkbwxejg.azurewebsites.net/v1/writeDoc for the appropriate status codes.

PUT/DELETE/GET return the wrong status code - They should return http code 405 method not allowed Found 404 for PUT and DELETE Found 400 for GET

PUT CALL--------------------------------------------------------------------------------------------------- C:\Users\mvien>curl -X PUT -d "{ 'id':'0', 'title' : 'Cinderella', 'description' : 'childrens book', 'author':'random author' }" -v -i "https://ad4401boxfransprint263s2plkbwxejg.azurewebsites.net/v1/writeDoc"

<

C:\Users\mvien>curl -X DELETE -d "{ 'id':'0', 'title' : 'Cinderella', 'description' : 'childrens book', 'author':'random author' }" -v -i "https://ad4401boxfransprint263s2plkbwxejg.azurewebsites.net/v1/writeDoc"

<

GET CALL-----------------------------------------------------------------------------------------------

C:\Users\mvien>curl -X GET -d "" -v -i "https://ad4401boxfransprint263s2plkbwxejg.azurewebsites.net/v1/writeDoc"