-2

I'm creating a rest api using codeigniter 3 and it's running fine,
but I'm having problems with how to display

{"status":false,"error":"Invalid API key "}
on the client side and on the server side,
so that when Invalid key can be sent "api key invalid" message to user client

1 Answers1

0

You need to find or add on your database api_rest_access

also check the application/config/rest.php

and send via Postman, if you are using Rest API on CodeIgniter3 , you cannot access with GET

enter image description here

Josua Marcel C
  • 3,122
  • 6
  • 45
  • 87