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
Matt Griswold 57a4175c00 Support 202202 (#1125)
* New Field "Health Check" #512

* Add status_dashboard to fields #512

* RS Peer Checkbox also visible on IX Site #727

* Add "Management" search field to Advanced Search of Exchanges #506

* wrap correctly on mobile #881

* missing delete button for user #653

* Removed cruft from IX view template #881

* To force or not to force www, that is a question #916

* add health check fields to entity creation forms (fac, ix, net) (#512)

* status_dashboard should accept null values #512

* Sort usergroup names in https://peeringdb.com/cp/peeringdb_server/userpermission/xxxxx numerically #656

* fix issue with deleted entities showing up in search results #1042

* 2FA Backup Tokens language doesn't seem correct #908

* linting

* poetry relock

* fix user permission save trying to create a user

* add status_dashboard to mock data

* docs

* add api doc regen to gen_docs call
fix issue with run_tests if BASE_URL env var is set

* fix generate_schema typo

* linting

Co-authored-by: David Poarch <dpoarch@20c.com>
Co-authored-by: Stefan Pratter <stefan@20c.com>
2022-03-08 07:27:45 -06:00

1.1 KiB

Generated from data_views.py on 2022-03-07 17:01:26.860132

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.