Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use date, float, password types #5

Open
axilaris opened this issue Dec 10, 2017 · 2 comments
Open

how to use date, float, password types #5

axilaris opened this issue Dec 10, 2017 · 2 comments

Comments

@axilaris
Copy link

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

@m-haziq
Copy link
Owner

m-haziq commented Dec 11, 2017

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.

@axilaris
Copy link
Author

thanks

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

No branches or pull requests

2 participants