Thanks Marcus for the response. It was very helpful.

Thanks & Regards,
Saurav Kumar Jha

On Tue, Jul 18, 2023 at 2:02 AM Christie, Marcus Aaron <machr...@iu.edu>
wrote:

> Hi Saurav,
>
>
>
> The REST API is mapped to the Airavata API in
> django_airavata/apps/api/views.py. For the example you mentioned, you can
> see in the following link the implementation of GET/POST/PUT/DELETE
> /api/groups:
>
>
>
>
> https://github.com/apache/airavata-django-portal/blob/master/django_airavata/apps/api/views.py#L79-L141
>
>
>
>
>
> *From: *saurav kumar jha <imsauravgaurav...@gmail.com>
> *Date: *Wednesday, July 12, 2023 at 1:48 PM
> *To: *dev@airavata.apache.org <dev@airavata.apache.org>
> *Subject: *Re: airavata api endpoint handler/controller implementation
>
> Hi Suresh,
>
>
>
> Thanks for the response, it was very helpful.
>
>
> Now, I am able to understand interface definitions, handler function
> implementations etc., but couldn't understand *how an endpoint (for
> example /api/groups) is mapped to a particular function (for
> example getGatewayGroups) ? *
>
> Thanks & Regards,
>
> Saurav Kumar Jha
>
>
>
> On Mon, Jul 10, 2023 at 11:15 PM Suresh Marru <sma...@apache.org> wrote:
>
> Hi Saurav,
>
>
>
> You have to look into Thrift API descriptions
> https://github.com/apache/airavata/tree/develop/thrift-interface-descriptions
> <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fairavata%2Ftree%2Fdevelop%2Fthrift-interface-descriptions&data=05%7C01%7Cmachrist%40iu.edu%7Ce916c5c40af14e87716508db830029f7%7C1113be34aed14d00ab4bcdd02510be91%7C0%7C0%7C638247808952165639%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=6P0MjCupHokKacRGDOE3ZevsCXtFYnIxT6SBA4no3sk%3D&reserved=0>
> - follow the handlers from -
> https://github.com/apache/airavata/blob/develop/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
> <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fairavata%2Fblob%2Fdevelop%2Fairavata-api%2Fairavata-api-server%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fairavata%2Fapi%2Fserver%2Fhandler%2FAiravataServerHandler.java&data=05%7C01%7Cmachrist%40iu.edu%7Ce916c5c40af14e87716508db830029f7%7C1113be34aed14d00ab4bcdd02510be91%7C0%7C0%7C638247808952165639%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=KkhVgg7Xf6ovOx4DYi2SmPSUsBdg%2BB0rYb9OnZ5y%2Fcg%3D&reserved=0>
>
>
>
> If you haven’t done it, I encourage you to build a simple Apache Thrift
> example with Java server and Python clients so it will give you the right
> context to follow the code.
>
>
>
> Suresh
>
>
>
> On Jul 10, 2023, at 1:19 PM, saurav kumar jha <imsauravgaurav...@gmail.com>
> wrote:
>
>
>
> Hi Community,
>
>
>
> For an api request made by airavata-django-portal , for example on
> /api/groups ( https://testdrive.airavata.org
> <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftestdrive.airavata.org%2F&data=05%7C01%7Cmachrist%40iu.edu%7Ce916c5c40af14e87716508db830029f7%7C1113be34aed14d00ab4bcdd02510be91%7C0%7C0%7C638247808952165639%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=djqf7QTeL63XlNiHRm1%2F3tMyCVIELG7htIG4Jc6WsRc%3D&reserved=0>
> */*api/groups/?limit=10&offset=10 ) , *where can I find corresponding
> controller or handler function in airavata code
> <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fairavata%2Ftree%2Fdevelop&data=05%7C01%7Cmachrist%40iu.edu%7Ce916c5c40af14e87716508db830029f7%7C1113be34aed14d00ab4bcdd02510be91%7C0%7C0%7C638247808952165639%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=bXV0Hl3iFuGljyVst4WfCjjnmvEtTPhSogKC9Ycumhs%3D&reserved=0>
> where it is being exposed as an endpoint or handled?*
>
> I need this because for "User groups created within a given period",  I
> want to load the creation date of groups along with other details using an
> api call.
> In one of the implementations, the date is not being fetched, so I wanted
> to look at the implementation.
>
> Thanks & Regards,
>
> Saurav Kumar Jha
>
>
>
>

Reply via email to