Nicolas Delaby
f05889292a
Add type inspection for PrimaryKeyRelatedField ( #26 )
...
Guess the type for PrimaryKeyRelatedField from the related ModelField.
2017-12-22 21:00:13 +01:00
Cristi Vîjdea
8a8a9faeeb
Fix swagger Try it out and make endpoints work
2017-12-21 17:20:46 +01:00
Cristi Vîjdea
06a461ec09
Merge pull request #21 from h-hirokawa/file-field-response
...
Add support for FileField response.
2017-12-18 13:16:21 +01:00
h-hirokawa
16b697b40d
Add a field to ArticleSerializer in testproj for coverage.
2017-12-18 19:31:32 +09:00
h-hirokawa
8a0d5a964d
Add support for serializers.FileField response.
2017-12-18 19:03:40 +09:00
Cristi Vîjdea
8a5be407e2
Document exotic usages of swagger_auto_schema
...
method_decorator works out of the box so might as well document an example
2017-12-16 20:38:40 +01:00
Cristi Vîjdea
a2c21539f7
Prepare release 1.0.4
2017-12-16 18:18:21 +01:00
Cristi Vîjdea
73bd7a136d
Add query_serializer argument to swagger_auto_schema ( #17 )
...
Closes #16 .
2017-12-16 15:37:42 +01:00
Cristi Vîjdea
f6a535eb45
Do not attempt to generate a response schema for form-only requests
...
It would probably fail because Schema objects cannot represent files
2017-12-15 11:14:47 +01:00
Cristi Vîjdea
8883894775
Add more tests and cleanup coverage reports ( #13 )
...
Closes #11
2017-12-12 17:30:58 +01:00
Cristi Vîjdea
bfced82ae4
Add suport for Response schemas ( #10 )
...
Schemas generated from Serializers will now be added to the `definitions` section by default, and used as `$ref` objects where needed.
The Schema definition name is based on the serializer class name, and can be overriden by specifying a `__ref_name__` property on the Serializer. If this property is set to None, the schema will not be added to `definitions` and will be forced inline.
Closes #6 , #7 .
2017-12-10 03:06:49 +01:00