<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 19, 2022 at 12:02 AM Francis Daly <<a href="mailto:francis@daoine.org">francis@daoine.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Nov 18, 2022 at 11:10:20PM +0530, Kaushal Shriyan wrote:<br>
> On Fri, Nov 18, 2022 at 9:37 PM Francis Daly <<a href="mailto:francis@daoine.org" target="_blank">francis@daoine.org</a>> wrote:<br>
<br>
Hi there,<br>
<br>
> Thanks Francis for your email response. Let me explain with two different<br>
> scenarios :-<br>
<br>
Yes, thank you. I believe that what you want is still all clear to me,<br>
apart from the actual specific url patterns that you are using.<br>
<br>
I suspect that I am being unclear in the question that I am asking.<br>
<br>
Do you actually make an api request for exactly<br>
<a href="https://mydrupalsite.com/apis/unique_id" rel="noreferrer" target="_blank">https://mydrupalsite.com/apis/unique_id</a>? If so, what response do you get?<br>
<br>
And if you do not make an api request for exactly that url, can you show<br>
any one url that you do use when making an api request?<br>
<br>
What you will eventually want to add to your nginx config is something<br>
like<br>
<br>
location ^~ /apis/ {<br>
error_page 555 /dummyfile;<br>
fastcgi_pass <a href="http://127.0.0.1:9000" rel="noreferrer" target="_blank">127.0.0.1:9000</a>;<br>
include fastcgi.conf;<br>
fastcgi_param SCRIPT_FILENAME something;<br>
}<br>
<br>
but I am unable to guess what the "something" should be. Maybe it should<br>
always be "$document_root/index.php". And maybe different or other config<br>
is needed as well.<br>
<br> <br></blockquote><div><br></div><div>Hi Francis,</div><div><br></div>Yes we do api calls for those endpoints , for example - for this URL <a href="https://mydrupalsite.com/apis">https://mydrupalsite.com/apis</a>, we have defined an API at Drupal end, and on successful it return json response like below.<br>{<br> "message": "API created successfully",<br> "uuid": "9891655f-8174-4099-a471-321bee01fafd",<br> "apiName": "sanity4 Automation_Payments_API_02_10_2022",<br> "gbgf": "Wealth and Personal Banking (WPB)",<br> "apiVersion": "1.0.0"<br>}<br>And for <a href="https://mydrupalsite.com/apis/unique_id">https://mydrupalsite.com/apis/unique_id</a> also we have a specific API call , on success which returns a JSON response like below.<br>{<br> "message": "API updated successfully",<br> "uuid": "9891655f-8174-4099-a471-321bee01fafd",<br> "apiName": "TEST3TMETA-rbwm-200-sa-get-message-details-updated",<br> "gbgf": "RBWM",<br> "apiVersion": "1.0.0"<br>}<br><div>On 500 errors also we are handling at Drupal and sending JSON responses to specify the details about errors. </div><div><br></div><div>Please let me know if you need any additional information and I look forward to hearing from you. Thanks in advance.<br><br>Best Regards,<br><br>Kaushal<br></div></div></div>