1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00
Files
peeringdb-peeringdb/docs/dev/modules/data_views.py.md
Stefan Pratter 3ee0d1ea5e Support 202205 (#1188)
* Add "Last login" to https://peeringdb.com/cp/peeringdb_server/user/ #879

* Bug in renumbering tool #660

* Add the IX name and id to IX-F Import Emails #963

* Use username to create deskpro person when no first-name / last-name data exists #1057

* Organization merge tool usergroup issues #930

* Exempt superusers (PeeringDB Admin Committee & Operations Committee admins) from throttling #1172

* add missing migration for #1172

* linting

* poetry relock

* adapt to django-two-factor-auth template-tag renaming changes

* increase default for DATA_QUALITY_MAX_SPEED to 5Tb

* regenerate docs

* fix api test for netixlan max speed validation

* pdb_api_cache command needs to disable CSRF_USE_SESSIONS before it runs

Co-authored-by: David Poarch <dpoarch@20c.com>
2022-06-15 07:23:26 -05:00

1.1 KiB

Generated from data_views.py on 2022-06-14 09:38:55.484251

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.