mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-24 18:44:00 +03:00
4 lines
136 B
JavaScript
4 lines
136 B
JavaScript
var codec = new window.coreapi.codecs.CoreJSONCodec()
|
|
var coreJSON = window.atob('{{ schema }}')
|
|
window.schema = codec.decode(coreJSON)
|