You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A very interesting question, I have not tried that yet, neither I have its solution at this time.But I will definitely look into it and update the doc.
I have used your implementation and implemented function based rest api. So far it works with type string, integer, file.
However for certain types I am unable to get it working in the swagger form.
Namely:
How do I get this types working ?
@api_view(['POST'])
def edit_company(request):
# ----- YAML below for Swagger -----
"""
description: edit_company
parameters:
- name: token
type: string - ok
required: true
location: form
- name: company_id
type: integer - ok
required: true
location: form
- name: date_established
type: date - not working (it shows undefined)
required: true
location: form
- name: location_lon
type: float - not working (it shows undefined)
required: true
location: form
- name: password
type: password - not working (it shows undefined)
required: true
location: form
"""
The text was updated successfully, but these errors were encountered: