flit-client
get many
get many of FlitClient, can retrive list using proerty of entity. refer entity description for detail request output can be csv or json. default is json. when output is csv, response body will be csv file, and use X-OUTPUT-CSV-COLUMNS header to specify columns to include. pagination will be applid. default is
{
"pageIndex": 1, //default is 1
"pageSize": 20 //default is 20, maximum is 50
}sorting will be applied. default is
{
"sortBy": "createdAt", //this can be any of sortable fields
"sortOrder": "DESC" //this can be ASC or DESC
}Query Parameters
uuid of client
email of client
business email of client
kakao, naver, google, apple, email
display name of client
120"createdAt""DESC"output format
"json"Header Parameters
API key for authentication
comma separated column names
Response Body
curl -X GET "https://loading/v1?uuid=string&email=string&businessEmail=string&channel=string&displayName=string&pageIndex=1&pageSize=20&sortBy=createdAt&sortOrder=DESC&output=json" \ -H "X-API-KEY: string" \ -H "X-OUTPUT-CSV-COLUMNS: string"{
"isSuccess": true,
"before": null,
"data": [
{
"uuid": "string",
"email": "string",
"businessEmail": "string",
"channel": "google",
"password": "string",
"displayName": "string",
"authCounter": 0,
"refreshToken": "string",
"lastLogin": "string",
"verifyBusinessAccount": "not-applied",
"passwordErrorCount": 0,
"cart": "string",
"coupons": [
[]
],
"isDeleted": false,
"favorites": [
[]
],
"agreedMarketing": true,
"agreedMarketingAt": 0,
"deviceToken": "string",
"quitAt": 0,
"quitReason": "string",
"isTutorialSkip": true,
"isAutoSendReceipt": true,
"isSubscribedPushForPlan": true,
"isSubscribedPushForPlanReset": true,
"eventRecord": "",
"job": null,
"avgTravelCountPerYear": null,
"gender": null,
"birthYear": null
}
],
"pagination": {
"pageIndex": 0,
"pageSize": 0,
"totalCount": 0
},
"timestamp": {
"begin": "string",
"end": "string"
},
"version": "string",
"url": "string",
"tracing": "string"
}execute business logic
execute business logic for FlitClient
Header Parameters
API key for authentication
post operation has following structure
{
command: string,
payload: any
}each of command has its own valid payload schema
{
command: "getmany",
payload: {
conditionOption: {
...
// as use for mongoose find
},
paginationOption: {
...
// as using for pagination
// for example
// pageIndex: 1, pageSize: 20
},
}
}this getmany command is for complicate query. when if search target fields are nested or array or need to find complicate condition, get method cannot represent all of logic. so when get method is not fit for certain condition, consider using this method
{
command: "totalcount",
payload: {
conditionOption: {
...
// as use for mongoose find
},
paginationOption: {
...
// as using for pagination
// for example
// pageIndex: 1, pageSize: 20
},
}
}this totalcount command is for counting documents. when client need to know only number of count, then do not need to download entity, for reduce network traffic, client should consider using this method. this two commands are applied all of msa entity controller classes
name of logic command
payload of command
Empty Object
Response Body
curl -X POST "https://loading/v1" \ -H "X-API-KEY: string" \ -H "Content-Type: application/json" \ -d '{ "command": "string", "payload": {} }'{
"isSuccess": true,
"data": null,
"timestamp": {
"begin": "string",
"end": "string"
},
"version": "string",
"url": "string",
"tracing": "string"
}update many
update many of FlitClient
Header Parameters
API key for authentication
array of
{
key: Partial<entity>, // condition of update target entity, similar to mongoose find
update: Partial<entity> // update target entity, similar to mongoose update
}so this request will update all matched in key condition's entities
Response Body
curl -X PATCH "https://loading/v1" \ -H "X-API-KEY: string" \ -H "Content-Type: application/json" \ -d '[ "string" ]'{
"isSuccess": true,
"before": null,
"data": [
{
"uuid": "string",
"email": "string",
"businessEmail": "string",
"channel": "google",
"password": "string",
"displayName": "string",
"authCounter": 0,
"refreshToken": "string",
"lastLogin": "string",
"verifyBusinessAccount": "not-applied",
"passwordErrorCount": 0,
"cart": "string",
"coupons": [
[]
],
"isDeleted": false,
"favorites": [
[]
],
"agreedMarketing": true,
"agreedMarketingAt": 0,
"deviceToken": "string",
"quitAt": 0,
"quitReason": "string",
"isTutorialSkip": true,
"isAutoSendReceipt": true,
"isSubscribedPushForPlan": true,
"isSubscribedPushForPlanReset": true,
"eventRecord": "",
"job": null,
"avgTravelCountPerYear": null,
"gender": null,
"birthYear": null
}
],
"pagination": {
"pageIndex": 0,
"pageSize": 0,
"totalCount": 0
},
"timestamp": {
"begin": "string",
"end": "string"
},
"version": "string",
"url": "string",
"tracing": "string"
}delete many
delete many of FlitClient,
Header Parameters
API key for authentication
array of uuid
Response Body
curl -X DELETE "https://loading/v1" \ -H "X-API-KEY: string" \ -H "Content-Type: application/json" \ -d '[ "string" ]'{
"isSuccess": true,
"before": null,
"data": [
"string"
],
"pagination": {
"pageIndex": 0,
"pageSize": 0,
"totalCount": 0
},
"timestamp": {
"begin": "string",
"end": "string"
},
"version": "string",
"url": "string",
"tracing": "string"
}create many
create many of FlitClient,
Header Parameters
API key for authentication
array of entity
Response Body
curl -X PUT "https://loading/v1" \ -H "X-API-KEY: string" \ -H "Content-Type: application/json" \ -d 'string'{
"isSuccess": true,
"before": null,
"data": [
{
"uuid": "string",
"email": "string",
"businessEmail": "string",
"channel": "google",
"password": "string",
"displayName": "string",
"authCounter": 0,
"refreshToken": "string",
"lastLogin": "string",
"verifyBusinessAccount": "not-applied",
"passwordErrorCount": 0,
"cart": "string",
"coupons": [
[]
],
"isDeleted": false,
"favorites": [
[]
],
"agreedMarketing": true,
"agreedMarketingAt": 0,
"deviceToken": "string",
"quitAt": 0,
"quitReason": "string",
"isTutorialSkip": true,
"isAutoSendReceipt": true,
"isSubscribedPushForPlan": true,
"isSubscribedPushForPlanReset": true,
"eventRecord": "",
"job": null,
"avgTravelCountPerYear": null,
"gender": null,
"birthYear": null
}
],
"pagination": {
"pageIndex": 0,
"pageSize": 0,
"totalCount": 0
},
"timestamp": {
"begin": "string",
"end": "string"
},
"version": "string",
"url": "string",
"tracing": "string"
}get one
get one of :id,
Path Parameters
uuid of entity
Header Parameters
API key for authentication
Response Body
curl -X GET "https://loading/v1/string" \ -H "X-API-KEY: string"{
"isSuccess": true,
"before": null,
"data": {
"uuid": "string",
"email": "string",
"businessEmail": "string",
"channel": "google",
"password": "string",
"displayName": "string",
"authCounter": 0,
"refreshToken": "string",
"lastLogin": "string",
"verifyBusinessAccount": "not-applied",
"passwordErrorCount": 0,
"cart": "string",
"coupons": [
[]
],
"isDeleted": false,
"favorites": [
[]
],
"agreedMarketing": true,
"agreedMarketingAt": 0,
"deviceToken": "string",
"quitAt": 0,
"quitReason": "string",
"isTutorialSkip": true,
"isAutoSendReceipt": true,
"isSubscribedPushForPlan": true,
"isSubscribedPushForPlanReset": true,
"eventRecord": "",
"job": null,
"avgTravelCountPerYear": null,
"gender": null,
"birthYear": null
},
"pagination": {
"pageIndex": 0,
"pageSize": 0,
"totalCount": 0
},
"timestamp": {
"begin": "string",
"end": "string"
},
"version": "string",
"url": "string",
"tracing": "string"
}