Dhaval Mehta
64a4828a06
remove tag generation from viewset
2020-02-20 18:14:28 +05:30
Dhaval Mehta
48c02dd53a
improve error message
2020-02-19 23:22:05 +05:30
Dhaval Mehta
f438f14d13
add test case for method override use case
2020-02-19 23:18:48 +05:30
Dhaval Mehta
95831b5be1
add guidance for overriding get_tags method
2020-02-19 22:49:45 +05:30
Dhaval Mehta
22da4772c8
change _get_tags to get_tags
2020-02-19 22:20:32 +05:30
Dhaval Mehta
d77afd56a8
improve documentation
2020-02-19 22:18:12 +05:30
Dhaval Mehta
4229234318
sync documentation with implementation.
2020-02-19 22:13:47 +05:30
Dhaval Mehta
8d3051d3a3
add better example in comments
2020-02-19 22:12:36 +05:30
Dhaval Mehta
cc2a8a5a35
remove test cases for tag objects
2020-02-19 01:44:42 +05:30
Dhaval Mehta
912f22a46a
change tag name style to url path style
2020-02-19 01:38:37 +05:30
Dhaval Mehta
56178ed2a4
remove support for dict tags
2020-02-19 01:37:06 +05:30
Dhaval Mehta
31a1eb14eb
add test case for tag generation from view-set
2020-02-13 00:26:55 +05:30
Dhaval Mehta
ee97de3269
improve documentation
2020-02-13 00:23:18 +05:30
Dhaval Mehta
10cdd2bde3
improve documentation
2020-02-13 00:20:07 +05:30
Dhaval Mehta
b0f11cdd29
fix changes given by kevin-brown
2020-02-13 00:11:59 +05:30
Dhaval Mehta
9c3a632e29
minor improvement in documentation
2020-02-09 20:03:41 +05:30
Dhaval Mehta
4b4f1c1320
add test cases for tag generation
2020-02-09 19:35:09 +05:30
Dhaval Mehta
05d8a7b5c9
add ExampleTagsViewSet view
2020-02-09 19:34:24 +05:30
Dhaval Mehta
25f1425708
remove APIView name check
2020-02-09 18:31:40 +05:30
Dhaval Mehta
87444708fa
remove extra line
2020-02-09 18:30:58 +05:30
Dhaval Mehta
1baeb24f8a
fix grammatical error
2020-02-09 18:11:53 +05:30
Dhaval Mehta
ac145a48a4
add documentation for tags
2020-02-09 18:08:14 +05:30
Dhaval Mehta
a5eec91196
improve tag generation from viewset name
2020-02-09 13:14:52 +05:30
Dhaval Mehta
44c1c25bde
add support for tag objects
2020-02-09 13:14:26 +05:30
Dhaval Mehta
bb339f4947
FIX existing test cases
2020-02-07 01:28:51 +05:30
Dhaval Mehta
d4e9b6eadb
add tag generation logic
2020-02-07 01:28:33 +05:30
Thorsten
4137ef41ef
Disable yaml aliases for schema generation. ( #7131 )
2020-02-03 14:41:47 +01:00
Kentalot
79d37bce4c
OpenAPI: Include type key in schema object properties dict. ( #7169 )
2020-01-30 12:14:17 +01:00
Dhaval Mehta
bc4d52558b
Schemas: Add mapping of type for ChoiceField. ( #7161 )
2020-01-29 19:15:56 +01:00
Stella
160f912a60
Schemas: Handle default=false for boolean fields ( #7165 )
2020-01-29 10:20:51 +01:00
William S. Vincent
d21b8eb084
update Django for APIs book to 3.0 edition ( #7164 )
2020-01-28 14:05:32 +00:00
Fábio Domingues
d22daf4e05
OpenAPI: Use _get_serializer() in _get_operation_id() ( #7160 )
2020-01-26 19:13:08 +01:00
Fábio Domingues
e4a26ad58a
Corrected _get_serializer() argument order. ( #7156 )
2020-01-23 15:53:47 +01:00
Kevin Brown
f8f8b3a1f1
Adjust test for ListField(IntegerField)
...
The `maximum` is valid here within the schema but it was not
previously being included because we were not copying over the
entire schema for the generated `IntegerField` previously.
2020-01-21 20:45:07 +01:00
Kevin Brown
98c8af5291
ListField
mapping should map all options for the child
...
Previously it was only mapping the `type` and `format`, even though
for some field types (like a `MultipleChoiceField`) we map more
than just these. And for some fields (like a `ChoiceField`) we do
not map the `type` at all.
2020-01-21 20:45:07 +01:00
Kevin Brown
b1048984a7
Add failing test for ListField
schema generation
...
The `ListField` was generating a schema that contained `type=None`
when a `ChoiceField` was the child, since we are not currently able
to introspect the type of a `ChoiceField`.
2020-01-21 20:45:07 +01:00
Carlton Gibson
496947be3a
Inline unnecessary method in OpenAPI schema generator.
2020-01-21 20:05:13 +01:00
Carlton Gibson
3b88312c33
Call get_schema(), rather than sub-method in schema tests.
2020-01-21 20:05:13 +01:00
Carlton Gibson
d0b9577605
Return valid OpenAPI schema even when empty.
2020-01-21 20:05:13 +01:00
David Runge
7bd730124c
MANIFEST.in: Adding tests to sdist tarball. ( #7145 )
2020-01-15 20:18:25 +00:00
Jonathan Longe
62193e0378
Add permissions to quickstart tutorial ( #7113 )
2020-01-15 11:58:31 -08:00
Ryan P Kilby
5f3f2ef106
Add note that APISettings is an internal class ( #7144 )
2020-01-15 10:52:29 +00:00
Danny
442a206502
Fix full-text search docs ( #7133 )
2020-01-10 22:38:29 -08:00
Sebastian Pipping
373e521f36
Make CharField prohibit surrogate characters ( #7026 ) ( #7067 )
...
* CharField: Detect and prohibit surrogate characters
* CharField: Cover handling of surrogate characters
2020-01-06 14:12:21 +00:00
Alex ⚡
165da5be0c
Documentation: make codeblocks easier to read. ( #6896 )
2020-01-03 14:42:29 +00:00
phankiewicz
a9e55334e7
Add X-CSRFToken HTTP header in swagger-ui example ( #6968 )
2020-01-03 13:59:32 +00:00
Frederico Lima
25ac7ba450
Add third party lib drf-viewset-profiler ( #6993 )
2020-01-03 13:53:09 +00:00
Tom Christie
430a567258
Update openapi.py
2020-01-03 13:50:26 +00:00
Noam
ced37a56cb
Avoid outputting callable defaults to schema. ( #7105 )
2020-01-03 13:49:46 +00:00
Bart
07376f128c
Grammar fix ( #6933 )
2020-01-03 13:36:43 +00:00