DEV Community

Discussion on: Flask Rest API -Part:0- Setup & Basic CRUD API

Collapse
 
sph73 profile image
SPH73 • Edited

Hi! Is there any chance someone can see what I am doing wrong? I can do get and post requests but put and delete give a 405 error. I have uploaded a screenshot. TIA!
Edit:
Don't know why the screenshot isn't showing and I can't even paste into this box. :(

Collapse
 
beddiafmeriem profile image
BeddiafMeriem

it's maybe because you forgot to specify the index in your put or delete request "localhost/movies/1"

Collapse
 
sph73 profile image
SPH73

Hi, thanks yes I didn't specify an index, so that might be it.

Collapse
 
paurakhsharma profile image
Paurakh Sharma Humagain

Hey, I am not sure why you are having this problem.
You should be able to upload the screenshot using upload image icon.
If for some reason you cannot. You can upload your screenshot somewhere and paste the link here.
Or maybe your project GitHub URL.