VATUSA / api

VATUSA's RESTful API for facilities
https://api.vatusa.net
MIT License
3 stars 10 forks source link

[FEAT] Visitors without existing records at VATUSA #78

Open asherrobinson opened 2 years ago

asherrobinson commented 2 years ago

Contact Details

wm@nyartcc.org

Is your feature request related to a problem? If so, please describe.

Sort of - We are currently unable to add a visitor to our facility's visiting roster if they aren't known to VATUSA already. Examples include visiting international controllers who's first interaction with the USA division is to apply for visitation with us.

What is your new feature idea or request?

When an attempt is made to add a CID not known to VATUSA to a facilities visiting roster, perform whatever checks might be necessary, pull their VATSIM data via API, and create an account on the VATUSA side and allow them to be added to the facility as a visitor.

Here's an example of a current controller who's been accepted for visitation at ZNY:

VATSIM Data
{
    "cid": "1511790",
    "name_first": "Joshua",
    "name_last": "Clark",
    "name_full": "Joshua Clark",
    "email": "***",
    "country_name": null,
    "country_id": "NZ",
    "country_state": "Wellington",
    "controller_rating_id": 5,
    "controller_rating_long": null,
    "controller_rating_short": "C1",
    "pilot_rating_id": 7,
    "pilot_rating_long": null,
    "pilot_rating_short": null,
    "region": "APAC",
    "division_id": null,
    "division_name": "NZ",
    "sub_division": "",
    "reg_date": "2020-08-19T01:57:08",
    "susp_date": null,
    "last_rating_change": "2021-08-31T00:58:50"
}
VATUSA Data
false