Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

301 Moved Permanently Response #1

Closed
@kieranhall

Description

The RESTAdapter doesn't append a slash "/" to the end of collection requests, which Django REST is expecting. I have worked around the problem by overwriting the buildURL method of the RESTAdapter using the following:

buildURL: function(type, id) {
 var url = this._super(type, id);
 if (url.charAt(url.length -1) !== '/') {
 url += '/';
 }
 return url;
}

Is it possible to change the API behaviour within the scope of this package? If not, then it would seem this RESTAdapter change is required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /