Aarni Koskela
51a6c076e2
Allow customizing the SchemaGenerator class for docs
2017-04-18 14:14:04 +03:00
Tom Christie
d300c3c648
Merge pull request #5047 from kirberich/merge-vary-headers
...
Update existing vary headers in response instead of overwriting them.
2017-04-07 20:44:58 +01:00
Tom Christie
33290170e8
Merge pull request #5060 from jpadilla/encode
...
Update links after moving to encode org
2017-04-07 17:20:51 +01:00
Robert Kirberich
9ebd5a29e4
Update existing vary headers in response instead of overwriting them.
...
Previously, any existing vary headers would simply be wiped out by DRF. Using patch_vary_headers assures that existing headers remain.
2017-04-07 17:06:09 +01:00
José Padilla
c1f31492ae
Update links after moving to encode org
2017-04-07 10:28:35 -04:00
Tom Christie
bbe0df2916
Merge pull request #5053 from s-m-b/patch-1
...
Pass initkwargs stored on view to instance
2017-04-07 08:29:34 +01:00
Ian Cordasco
c2ee1b3033
Use overridden settings exception handler
...
Instead of using the api_settings exception handler, we use the
overridden settings attribute to find the correct handler.
Closes #5054
2017-04-06 14:05:29 -05:00
s-m-b
f1ca71ce21
Pass initkwargs stored on view to instance
2017-04-06 16:38:28 +04:00
htmis
4a54d9f474
Update Boolean field to more closely match python library
...
Python Reference:
distutils.util.strtobool(val)
Convert a string representation of truth to true (1) or false (0).
True values are y, yes, t, true, on and 1; false values are n, no, f, false, off and 0. Raises ValueError if val is anything else.
2017-03-29 20:21:18 -04:00
Xavier Ordoquy
d417c6d1b9
Fix parser names in docstring.
2017-03-29 07:57:14 +02:00
Ilya Beda
f27c551218
Fix typo at docstring
2017-03-29 12:51:01 +07:00
Ekluv
56fe0e4b3f
fix unique=True validation for ChoiceField
2017-03-28 00:38:21 +05:30
Tom Christie
0fdaf4f481
Merge pull request #5001 from jpadilla/docs-cleanup
...
JavaScript cleanup in API Docs.
2017-03-22 14:01:00 +00:00
Tom Christie
8e9cb1e614
Merge pull request #5014 from dczech/feature/decouple-bigautofield
...
Include URL path regexs in API schemas where valid.
2017-03-22 09:37:07 +00:00
Dariusz Czech
54d0901f38
Leave parameters with regex pattern as String
2017-03-21 15:15:20 +01:00
Dariusz Czech
9074e3e478
restored original formatting
2017-03-21 08:40:59 +01:00
Dariusz Czech
c7e2d1d976
Do not hint BigAutoField as integer (outside of range)
2017-03-20 22:21:07 +01:00
Tom Christie
7d64cf568a
Merge pull request #4998 from COCOLMAN/master
...
Ensure that pagination is not included in API schema when `page_size=None`.
2017-03-20 15:32:44 +00:00
José Padilla
9e18d005d1
Try to improve browser support
2017-03-17 22:21:14 -04:00
José Padilla
b0f2ec785e
Cleanup and refactor docs api.js script
2017-03-17 21:44:40 -04:00
José Padilla
d8507d3f9c
Move bootstrap modal data attrs to anchor
2017-03-17 21:44:11 -04:00
José Padilla
be0e196e65
Remove unused base.js script
2017-03-17 21:43:20 -04:00
José Padilla
7e76cd8695
Correctly set scheme in coreapi TokenAuthentication
2017-03-17 20:27:36 -04:00
sol HYUN
16aad89459
reverted to fix the issue without changing setting
2017-03-18 06:17:35 +09:00
sol HYUN
9c3edb0921
DEFAULT_PAGINATION_CLASS is changed to 'None'
...
because the default value was specified, it did not work properly in API
Document
2017-03-18 04:50:01 +09:00
Jeff Johnson
323f59091c
add content block and breadcrumbs_empty block to allow base.html to be reused
2017-03-16 09:03:45 -04:00
Tom Christie
3b466fabe7
Merge pull request #4973 from tomchristie/support-head-in-viewsets
...
Support HEAD in viewsets
2017-03-13 13:16:04 +00:00
Tom Christie
43b38964ea
Support HEAD in viewsets
2017-03-13 12:51:03 +00:00
Tom Christie
0173e9bd21
Use 'items' templatetag throughout.
2017-03-13 12:35:19 +00:00
Tom Christie
2df80c3c9d
Merge pull request #4688 from theosotr/feature-source
...
Support usage of 'source' in `extra_kwargs`.
2017-03-13 10:25:38 +00:00
Tom Christie
d508a3dd1e
Merge pull request #4967 from 0xKD/patch-2
...
Update coreapi.js version in JavaScript API docs.
2017-03-13 10:06:35 +00:00
Tom Christie
de9a8c4811
Fix mime type on schema.js endpoint. Closes #4968 .
2017-03-13 10:03:13 +00:00
Kedar
9e62bc51ec
Update coreapi.js version
2017-03-11 11:19:26 +05:30
Tom Christie
928f7cb40f
Version 3.6.2
2017-03-10 13:00:08 +00:00
Tom Christie
7a8fb262f2
Fallback to more widely supported JS feature sets. ( #4961 )
2017-03-10 12:07:15 +00:00
Tom Christie
9ccdc4366f
Merge branch 'master' of github.com:tomchristie/django-rest-framework
2017-03-10 10:59:39 +00:00
Tom Christie
9baa1fde15
Add 'mark_safe' in template tags. Closes #4952 . Closes #4953 .
2017-03-10 10:59:31 +00:00
Michael Palmer
81887bdc4e
Add glyphicon fonts to static docs ( #4951 )
...
* Fixes #4950 .
2017-03-10 10:37:31 +00:00
Tom Christie
f51bb5ac8b
Drop unneeded comment
2017-03-10 09:10:29 +00:00
Chris Carty
bc2c76a000
fixed issue on schemas.py where if model._meta.get_field(variable) failed model_field was not set to None and would reult in an error
2017-03-09 21:11:52 -05:00
Tom Christie
544b4b9948
Ensure 'markdown' dependancy is optional. Refs #4941 . ( #4947 )
2017-03-09 16:50:00 +00:00
Tom Christie
52db57a6e7
Version 3.6 ( #4943 )
2017-03-09 14:49:51 +00:00
Xavier Ordoquy
537df7a6ad
Extract APISchemaView and APIRootView out of the DefaultRouter. ( #4707 )
2017-03-07 13:39:08 +00:00
Tibo Beijen
cf5d401a0e
Allow required false and default ( #4692 )
...
* Default value will now be used when serializing if key or attribute is missing.
2017-03-07 13:19:19 +00:00
Tom Christie
68d2020112
Live API documentation ( #4755 )
2017-03-03 15:24:37 +00:00
Tim Watts
8df340908b
Add failing tests and fix for dict that have a key items
#4931 ( #4932 )
2017-03-03 09:23:09 +00:00
tdruez
06a1e12fd8
Fixed Permissions.get_required_object_permissions for #4927
2017-02-28 17:51:32 +01:00
Ran Benita
7a408f6cd2
Guard against the possible misspelling readonly_fields
in model serializers
...
Fixes #4897 .
2017-02-22 13:27:23 +02:00
Lanrik
5986f95c8d
Rearrange code ( #4908 )
...
Minor refactor. Move assignment to after `None` check.
2017-02-20 09:48:19 +00:00
Pavlin Gergov
eacb93d453
Update _not_authenticated's docstring ( #4906 )
2017-02-20 09:33:54 +00:00