rust-actix-example
rust-actix-example copied to clipboard
Can not run API
i have installed demo and try to access: http://127.0.0.1:3000/user
however, i got this: The system cannot find the file specified. (os error 2)
Also, tried: http://127.0.0.1:3000/user/00000000-0000-0000-0000-000000000000
and get this
[2020-04-30T05:49:58Z INFO actix_web::middleware::logger] 127.0.0.1:52709 "GET /user/00000000-0000-0000-0000-000000000000 HTTP/1.1" 404 55 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36" 0.000000
The system cannot find the path specified. (os error 3)
Does http://127.0.0.1:3000/index.html work?
If you scroll down in the readme to the 'Endpoints' section you'll see you need to put '/api/v1/user' instead of '/user' but I think you'll find you need to be authenticated before trying that, so first, just see if the index.html shows correctly.