mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-12-01 14:04:02 +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)
|