Tom Christie
f36ff9b08b
Add Retool as a new premium sponsor ( #6977 )
2019-10-07 14:21:58 +01:00
Francisco Couzo
37dcd55370
Fix bug in escape_curly_brackets ( #6909 )
2019-10-04 13:50:19 -07:00
mehrab
b4db2dfacf
Fixed no-cls-argument on staticmethod __new__
( #6960 )
2019-10-04 12:40:09 -07:00
Konstantinos Tselepakis
30e56f62ba
Fix nested write of non-relational fields ( #6916 )
2019-10-03 09:33:37 -07:00
Xavier Ordoquy
0dac98d215
Merge pull request #6953 from felixxm/import-FieldDoesNotExist
...
Fixed import of FieldDoesNotExist exception.
2019-09-29 08:53:20 +02:00
Mariusz Felisiak
75afe48b6c
Fixed import of FieldDoesNotExist exception.
2019-09-28 20:52:22 +02:00
Ted Stoychev
60f9c12900
Fixed broken link in documentation ( #6937 )
2019-09-27 09:47:51 -07:00
Yezy Ilomo
5b990d4092
Add django-restql to 3rd party packages in docs ( #6947 )
2019-09-24 00:22:25 -07:00
Oxan van Leeuwen
2664e65019
Add djangorestframework-dataclasses to 3rd party package docs ( #6939 )
2019-09-18 11:21:32 -07:00
napsterv
7a3b7d2001
Fixed method signature in docs ( #6931 )
2019-09-16 10:47:29 -07:00
Tom Christie
89ac0a1c7e
Version 3.10.3 ( #6908 )
...
* Version 3.10.3
* Version 3.10.3 release notes
2019-09-04 14:28:25 +01:00
Tom Christie
4b30b32014
Default OpenAPI version to the empty string ( #6907 )
2019-09-04 12:53:50 +01:00
Pramod Pujara
c0cf37e35d
Update tutorial links ( #6890 )
2019-09-03 11:21:53 -07:00
Yann Savary
e57c1505fc
Replaced 'TODO' hardcoded version info by a parameter with default '0.1.0' ( #6899 )
2019-09-03 16:07:30 +02:00
Peter J. Farrell
b3f032fb8f
Fixed #6875 -- Made OpenAPI Schema operationId casing consistent. ( #6876 )
2019-09-03 16:05:43 +02:00
Dima Knivets
1cc4be47b4
Fixed min/max attributes for serializers.ListField ( #6866 )
2019-09-03 15:43:54 +02:00
Reupen Shah
f8c16441fa
Add support for pagination in OpenAPI response schemas ( #6867 )
...
Refs #6846
This provides a way for pagination classes to add pagination properties (`count`, `next`, `results` etc.) to OpenAPI response schemas.
A new method `get_paginated_response_schema()` has been added to `BasePagination`. This method is intended to mirror `get_paginated_response()` (which takes a `list` and wraps it in a `dict`).
Hence, `get_paginated_response_schema()` takes an unpaginated response schema (of type `array`) and wraps that with a schema object of type `object` containing the relevant properties that the pagination class adds to responses.
The default implementation of `BasePagination.get_paginated_response_schema()` simply passes the schema through unmodified, for backwards compatibility.
2019-09-03 15:25:44 +02:00
Min ho Kim
ec1b14174f
Fixed typos ( #6872 )
2019-08-14 14:39:45 -07:00
Christopher Grebs
5a8736ae45
Handle 'None' return value of wait() properly during throttling. ( #6837 )
2019-08-12 11:36:05 -07:00
Dima Knivets
a142467586
Fixed incorrect OpenAPI response schema generation for a DELETE method in generic views ( #6860 )
2019-08-09 15:02:41 +02:00
Chris Vigelius
f7dc6b5656
OpenAPI: Added required description to responses. ( #6850 )
2019-08-07 22:09:27 +02:00
Chris Vigelius
0ebfbfdf81
OpenAPI: only include non-empty required property. ( #6851 )
...
Closes #6834
2019-08-07 21:40:21 +02:00
Gregory N. Schmit
335054a5d3
replace force_text with force_str
2019-08-07 21:05:24 +02:00
Reupen Shah
b45ff07294
Use an array type for list view response schemas
...
This is the first part of #6846 .
Previously, the response schema for list views was an object representing a single item. However, list views return a list of items, and hence it should be an array.
Further work will need to be done to support how pagination classes modify list responses.
There should be no change for views not determined to be list views.
2019-08-07 20:40:22 +02:00
Reupen Shah
a3f244d85e
Move AutoSchema serializer instantiation to common method
2019-08-07 20:40:22 +02:00
zeroohub
7e1c4be7ce
Avoided double call for remote url in FileField.to_representation. ( #6841 )
2019-08-06 12:31:46 +02:00
Greg Schmit
0cc09f0c0d
Add drf-action-sreializer to third party packages ( #6845 )
2019-07-30 12:37:49 -07:00
Ryan P Kilby
bcf196d0ac
Remove outdated note about read_only+default ( #6847 )
2019-07-29 15:10:57 -07:00
Min ho Kim
0e1c5d3132
Fix typos ( #6835 )
2019-07-25 10:04:01 -07:00
Chris Vigelius
ca727872c8
OpenAPI schemas: Ensure lazy field descriptions are converted to str(). ( #6832 )
2019-07-25 15:30:20 +02:00
Daniel Alvarez
659375ffe6
Fixed a typo on the ExampleValidatedAPIView
...
Cherry-picked from #6819
2019-07-24 11:13:30 +02:00
Carlton Gibson
1b66d1b819
Move serializer field introspection tests to correct test case.
...
From SchemaGenerator tests to Operation Introspection.
2019-07-24 11:13:30 +02:00
Carlton Gibson
de26af4295
Move determine_path_prefix() logic into CoreAPI module.
2019-07-24 11:13:30 +02:00
Carlton Gibson
e309a4f0b8
Fix OpenAPI path generation with common prefixes.
...
Closes #6675 . Closes #6823 .
2019-07-24 11:13:30 +02:00
Carlton Gibson
30a21a98dc
Add test for OpenAPI SchemaGenerator url argument.
2019-07-24 11:13:30 +02:00
Carlton Gibson
178a2dc786
Correct OpenAPI test for common prefixes.
2019-07-24 11:13:30 +02:00
Daniel Alvarez
2138f558ce
Added mapping of ListField.child type for OpenAPI Schemas.
2019-07-24 11:09:57 +02:00
Muammar ibn Faisal
f7c3220fdb
Ability to specify urlconf in include_docs_urls added ( #6824 )
...
There is a problem in the current implementation that if one exports docs via `include_docs_urls` he will be using `ROOT_URLCONF` (https://github.com/encode/django-rest-framework/blob/master/rest_framework/schemas/generators.py#L73 ), which is a big problem, if one is working with subdomains and he has sets of disjoint URLs.
This simple fix allows to pass through forgotten `urlconf` parameter.
2019-07-23 12:06:03 +01:00
Bary Levi
ea2ebf61cb
fix quote was outside of inline code ( #6830 )
2019-07-22 13:02:17 +01:00
linchiwei123
da1c6d4129
Fix indent ( #6825 )
2019-07-18 23:09:04 -07:00
Tom Christie
044252af1c
Version 3.10.1 ( #6817 )
...
* Ensure that requiring 'uritemplate' does not also require 'coreapi'
* Don't include autocomplete fields on TokenAuth admin
* Version 3.10.1
2019-07-17 14:17:45 +01:00
Carlton Gibson
9114034856
Update Django Filter dependency for OpenAPI schema support. ( #6812 )
2019-07-17 06:29:28 +02:00
Carlton Gibson
4991e4dbbe
Merge pull request #6813 from dalvtor/fix-schemas-docs
...
Fixes import in the schemas documentation
2019-07-16 23:03:13 +02:00
Daniel Alvarez
316526d877
Fixes import in the schemas documentation
2019-07-16 21:32:19 +01:00
Ryan P Kilby
0cb2523927
Update docs search plugin ( #6810 )
2019-07-16 13:00:45 -07:00
Tom Christie
a4c2d4f0d5
Fix side nav in project docs
2019-07-16 09:31:29 +01:00
Tom Christie
908516f2bd
Fix pagination docs meta information
2019-07-15 20:14:59 +01:00
Ryan P Kilby
0cb6b63bde
Use 'url' template filter in docs ( #6805 )
2019-07-15 20:11:49 +01:00
Tom Christie
6499378fc3
3.10 release notes tweaks
2019-07-15 12:38:28 +01:00
Tom Christie
9eaf49dab9
Version 3.10 ( #6802 )
...
* 3.10 release notes
* Version number -> 3.10
* Update translations
* Update 3.10 release docs
* Update release notes
* Delete symlink
2019-07-15 12:31:09 +01:00