Hello, I have a web service (actually a REST API based on Django rest frameork) that uses the HTTP OPTIONS [1] method to describe the structure of a particular resource. As each resource may have a different structure, I need to dynamically get the structure of the resource by using the OPTIONS method (see [2]).
However, I can't not find the OPTIONS method on angularjs $http service. Any advice on how to launch an OPTIONS request using angular? Thanks in advance, César Martínez [1] https://tools.ietf.org/html/rfc2616#section-9.2 [2] For instance, launching an OPTIONS HTTP request to 'http://blahblah/api/inventories/' will produce the following response: { "name": "Inventory List", "description": "", "renders": [ "application/json", "text/html" ], "parses": [ "application/json", "application/x-www-form-urlencoded", "multipart/form-data" ], "actions": { "POST": { "id": { "type": "integer", "required": false, "read_only": true, "label": "Id" }, "created_by": { "type": "string", "required": false, "read_only": true, "label": "Created by", "max_length": 150 }, "created_at": { "type": "string", "required": false, "read_only": true, "label": "Created at", "max_length": 150 }, "updated_at": { "type": "string", "required": false, "read_only": true, "label": "Updated at", "max_length": 150 }, "status": { "type": "string", "required": true, "read_only": false, "label": "Status", "max_length": 2 } } }} -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
