Database editor

Want to post something that doesn't quite fit into the other forums? This is the place for that.
Post Reply
kiwikieran
Posts: 61
Joined: Sat Jan 20, 2018 8:50 pm

Database editor

Post by kiwikieran » Thu Aug 23, 2018 12:20 am

Hey all,
I am wanting to make my own interface to edit/add aircraft to the database.
Just wanting to know how VRS sends the info over to the database?
Looks like it uses AJAX to get JSON with the details but not sure what it is using to send it back and update it.
Any help would be appreciated thanks.

agw
Posts: 2146
Joined: Fri Feb 17, 2012 3:20 am

Re: Database editor

Post by agw » Thu Sep 13, 2018 10:13 pm

Sorry for the delay in replying. It sends a POST back with the data to be saved sent as JSON in the post body. You can see the call to send the save in the source for the database editor:

https://github.com/vradarserver/vrs/blo ... r/index.ts

At time of writing it's line 106, "SaveButton_Clicked".

kiwikieran
Posts: 61
Joined: Sat Jan 20, 2018 8:50 pm

Re: Database editor

Post by kiwikieran » Sat Sep 15, 2018 5:47 am

No worries,
Thanks :)

Post Reply