2023-04-12 14:41:30 +03:00
|
|
|
Generated from data_views.py on 2023-04-12 10:09:44.563425
|
2021-10-15 03:25:38 -05:00
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
|
2023-04-12 14:41:30 +03:00
|
|
|
---
|
|
|
|
|
## campus_facilities
|
|
|
|
|
`def campus_facilities(request)`
|
|
|
|
|
|
|
|
|
|
Returns a JSON response with a dict of facilities that are part
|
|
|
|
|
of a campus
|
|
|
|
|
|
2021-10-15 03:25:38 -05:00
|
|
|
---
|
|
|
|
|
## 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.
|
|
|
|
|
|
2023-05-16 21:04:05 +03:00
|
|
|
---
|