1. mathews rutto
  2. SnapDevelop
  3. Thursday, 11 January 2024 20:15 PM UTC

Greetings All,

how do i create an API end Point which will return the following output. I have the database already storing the below data.

 

{
    "membershipNumber" : "1234567",
    "phoneNumber" : "265997655406",
    "emailAddress" : "henry.sauzande@angledimension.com",
    "firstName" : "Henry",
    "otherNames" : "Alfred",
    "lastName" : "Sauzande",
    "gender" : "MALE",
    "hasDependents" : true,
    "dateOfBirth" : "1990-01-01T00:00:00.000z",
    "schemeType" : "EXE",
    "membershipStatus" : "ACTIVE",
    "lastRenewalDate" : "2023-12-01T00:00:00.000z",
    "dependents" : [
        {
            "fistName" : "Gillian",
            "lastName" : "Sauzande",
            "dateOfBirth" : "1990-01-01T00:00:00.000z",
            "gender" : "FEMALE",
            "suffixNumber" : "02"
        },
        {
            "fistName" : "Aira",
            "lastName" : "Sauzande",
            "dateOfBirth" : "2020-04-27T00:00:00.000z",
            "gender" : "FEMALE",
            "suffixNumber" : "03"
        },
        {
            "fistName" : "Aiden",
            "lastName" : "Sauzande",
            "dateOfBirth" : "2023-08-23T00:00:00.000z",
            "gender" : "MALE",
            "suffixNumber" : "04"
        }
    ]
}

Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Thursday, 11 January 2024 21:36 PM UTC
  2. SnapDevelop
  3. # 1

Hi Mathews,

I recommend taking a look at this guide, it might help as a quick introduction.
If you would like a more familiar workflow, you can create a Web API from a DataWindow like this.

Regards,
Francisco

Comment
  1. mathews rutto
  2. Friday, 12 January 2024 04:39 AM UTC
Hi,

Must i appreciated. I have followed the guide it has been helpful.

Now do create and return an array within and array?
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.