mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
475 B
15 lines
475 B
from rest_framework import filters |
|
from rest_framework.compat import coreapi, coreschema |
|
|
|
|
|
class AuthKeyQueryDeclaration(filters.BaseFilterBackend): |
|
def get_schema_fields(self, view): |
|
return [ |
|
coreapi.Field( |
|
name='authkey', location='query', required=True, type='string', |
|
schema=coreschema.String( |
|
title='authkey', |
|
description='authkey' |
|
) |
|
) |
|
]
|
|
|