🇮🇳India @rituraj.gupta

Pune
Account created on 26 January 2008, over 16 years ago
  • Application Developer Team Lead at Accenture 
#

Recent comments

🇮🇳India rituraj.gupta Pune

Hello,

This is my code:

 * Represents Custom API records as resources.
 *
 * @RestResource (
 *   id = "custom_api",
 *   label = @Translation("Custom API"),
 *   uri_paths = {
 *     "canonical" = "/api/custom-api/{id}",
 *     "create" = "/api/custom-api"
 *   }
 * )

and still I am getting 404 in postman while hitting this url using GET method: https://mtn-drupal.ddev.site:8443/api/custom-api/22?_format=json. Permission is given also.

🇮🇳India rituraj.gupta Pune

HI @myavorsky,

How did you resolve this issue? Could you please explain in detail?

Thanks,
Ritu Raj

Production build 0.69.0 2024