* fix next redirect when using U2F 2FA auth (#1191) * Added self identifier to API * fix migrations hierarchy after merging in previous support branch * campus object Co-authored-by: Stefan Pratter <stefan@20c.com> * fix out of bound error message add city / country to campus view * fix tests * relock poetry * linting * linting * fix docs regen * regen docs * linting * refactor self entity view to support carrier and campus object types and also make it easier to support additional object types in the future * remove debug message --------- Co-authored-by: Gajanan Patil <dipaksavaliya.python@gmail.com>
1.1 KiB
Generated from data_views.py on 2023-02-14 15:33:37.135106
peeringdb_server.data_views
This holds JSON views for various data sets.
These are needed for filling form-selects for editable mode in UX.
Functions
asns
def asns(request)
Return a JSON response with a list of asns that the user's organizations own to use for selecting asn in netixlan creation.
countries
def countries(request)
Return all valid countries and their country codes.
countries_w_blank
def countries_w_blank(request)
Return all valid countries and their country codes with a blank field.
facilities
def facilities(request)
Return all valid facilities with id and name.
my_organizations
def my_organizations(request)
Return a JSON response with a list of organization names and ids that the requesting user is a member of.
organizations
def organizations(request)
Return a JSON response with a list of organization names and ids. This is currently only used by the org-merge-tool which is only available to site administrators.
sponsorships
def sponsorships(request)
Return all sponsorships.