#define schema for api

7 messages · Page 1 of 1 (latest)

misty bluff
#

Hello im reading the custom-bussines-logic document, but im still trying to understand how to create the schema.

const responseBody = {
direcciones: recptorDirList,
actividadesEconomicas: recptorActecoList,
};

that is my response body,

EchoResponse: a.customType({
direcciones: a.json(),
actividadesEconomicas: a.json()
}),

is this correct?

how to test the function locally or only with sandbox ?

neat pecan
misty bluff
#

@neat pecan actually not wrong, that is the way is done, i already done it 🙂

#

defininng lambda functions on gen 2 is via custom types 🙂

#

on the SCHEMA it self 🙂

neat pecan
#

Oh well, sorry your question was confusing. You were asking about defining schema for an API now you are talking about Lambda functions

#

My bad