Fix swagger Try it out and make endpoints work

This commit is contained in:
Cristi Vîjdea committed 2017-12-21 17:20:46 +01:00
1 parent 7683a28816
commit 8a8a9faeeb
7 files changed
+51 -12

No files matched your search

@@ -163,7 +163,14 @@
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
layout: "StandaloneLayout",
filter: true,
requestInterceptor: function(request) {
console.log(request);
var headers = request.headers || {};
headers["X-CSRFToken"] = document.querySelector("[name=csrfmiddlewaretoken]").value;
return request;
}
};
var swaggerSettings = {};