Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a FormData serializer #117

Open
brmzkw opened this issue Aug 31, 2015 · 0 comments
Open

Create a FormData serializer #117

brmzkw opened this issue Aug 31, 2015 · 0 comments

Comments

@brmzkw
Copy link

brmzkw commented Aug 31, 2015

Hi,

What do you think about adding the following serializer?

class FormDataSerializer(BaseSerializer):

    key = "formdata"
    content_types = ['application/x-www-form-urlencoded']

    def get_content_type(self):
        return self.content_types[0]

    def loads(self, data):
        return data

    def dumps(self, data):
        return data

I have to deal with a REST API which has one specific endpoint that doesn't expect JSON.

If you think adding such a serializer is worthwhile, I'll make a PR :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant