-
Notifications
You must be signed in to change notification settings - Fork 20
Description
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:
- date
- float
- password
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
"""