Skip to content
Back

Custom Response structure

  • 1
  • Databases
Hemish11
11 Jun, 2023, 18:03

I want to create a custom response structure for the API call i do to the server, like i want it to use uid instead of $id and also i dont want it to include the permissions array, how can I do so?

TL;DR
User wants to create a custom response structure for an API call to the server. They want to use 'uid' instead of '$id' and remove the permissions array. A possible solution is to use Appwrite Functions or something between the app and Appwrite.
Drake
11 Jun, 2023, 18:13

You could use Appwrite Functions or put something between your app and Appwrite.

Why do you want this custom response structure?

Hemish11
12 Jun, 2023, 04:07

Well, I will be using rest api to access the server, so I will be needing it

Hemish11
12 Jun, 2023, 04:07

It would be better and also is it possible to remove the permissions from it?

Hemish11
12 Jun, 2023, 04:08

Or for that also I need to create function

Drake
12 Jun, 2023, 14:29

sure...but why do you need it to be in that format?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more