Server error while calling api

How to solve the server error issue…!?

The API URL you provided is incorrect. If you are trying to call a function, you should pass the proper path where that function exists.
E.G: http://localhost:8000/api/method/{function-name-with-namespace}
like this
http://localhost:8000/api/method/frappe.auth.get_logged_user