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
> - 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
>
> 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*/*api/groups/?limit=10&offset=10
> ) , *where can I find corresponding controller or handler function in
> airavata code <https://github.com/apache/airavata/tree/develop> 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