Comments (4)
What Response header fileds should be implemented for HTTP OPTONS requests?
Allow (GET, HEAD, OPTIONS, PUT, POST, DELETE, )
......
Other HTTP Response header fields
from django-rest-framework.
Okay, so I'm thinking that most of the information will be in the response body.
Something along these lines:
{
'name': 'MyExample',
'description': 'This is my example resource',
'fields': {'foo': 'IntegerField', 'bar': 'CharField'}
'renders': ['application/json', 'application/xml'],
'parses': ['application/json', 'application/xml']
}
And possibly some other information (perhaps even listing the permissions.)
In terms of header fields I really can't think of anything other than the standard 'Allow'.
The acid test of if the OPTIONS support is good enough might be if someone would be able to implement the browse-able API using a 3rd party AJAX client.
from django-rest-framework.
See discussion on the list: https://groups.google.com/d/topic/django-rest-framework/Eap5nELLt1I/discussion
from django-rest-framework.
Done.
from django-rest-framework.
Related Issues (20)
- serializer.JSONField dose not save the decoded data when doing the to_internal_value HOT 6
- ImportError: cannot import name 'ugettext_lazy' in Django 4.2 (LTS) with drf_secure_token HOT 2
- Django IntegerField Enumeration does not correctly convert the __empty__ value in a ChoiceField HOT 1
- Handling PUT & PATCH request in Class based Testing HOT 4
- More Concise way to Update Instances!! HOT 30
- `default` value for field gets deepcopied causing sentinels to get copied HOT 1
- ViewSet called on detail delete handler on an action matched url with no delete allowed HOT 2
- can't upload a .m4a file in post method HOT 1
- Breaking change: DateTimeField validation parsing HOT 5
- list in ListModelMixin could overwrite the builtins list method of python and causes error HOT 4
- Not possible to override serializer_field_mappings with a field that has choices (for example a from ChoiceField derived field) HOT 3
- Long rendering of ForeignKey fields HOT 3
- input type="date" validation message incorrect HOT 2
- Release the new version 3.15 HOT 1
- rest_framework.urls doesn't work with LogoutView in Django 5.0 HOT 11
- Decorator method @permission_classes is usable in python 3.10.12 HOT 1
- StaticHTMLRenderer cannot handle ValidationError HOT 2
- from django.utils.translation import ugettext_lazy as _ HOT 5
- Update method ignoring partial flag on serializer (updates all fields) HOT 4
- Security issue: There's a minute chance an existing token gets overwritten.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-rest-framework.