Skip to content

how to use date, float, password types #5

@axilaris

Description

@axilaris

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
"""

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions