Skip to content

how to use date, float, password types #5

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions