mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-16 07:26:35 +00:00
Fix python example in api generation template (#189)
This commit is contained in:
committed by
GitHub
parent
493803e20c
commit
94780de0f2
@@ -142,7 +142,7 @@ url = "<%- operation.fullPath %>"
|
||||
<% if(operation.requestBody?.content && operation.requestBody?.content['application/json']){ -%>
|
||||
payload = json.dumps(<%- JSON.stringify(operation.request.example, null, 2) %>)<% }; -%>
|
||||
|
||||
<% if(true){%>headers: { <% }; -%>
|
||||
<% if(true){%>headers = { <% }; -%>
|
||||
<% if(operation.requestBody?.content && operation.requestBody?.content['application/json']){ %>
|
||||
'Content-Type': 'application/json',<% }; -%>
|
||||
<% if(operation.responseList[0].content && operation.responseList[0].content['application/json']){ %>
|
||||
|
||||
Reference in New Issue
Block a user