We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Galera, fiz o GET de users na API, mas ele não esta retornando o Json certo. Ele esta vindo cheio de ''. Segue um exemplo do código:
if request.method == 'GET': users = Users.objects.all() if len(users) == 0: return Response({}, status=status.HTTP_404_NOT_FOUND) else: serializer = serializers.serialize('json', users) return Response(serializer, status=status.HTTP_200_OK)
E do Json:
"[{\"model\": \"users.users\", \"pk\": 1, \"fields\": {\"userName\": \"Anthony Powell\", \"userEmail\": \"[email protected]\", \"userPassword\": \"d@q0XHNatz\", \"userImage\": \"Blanditiis voluptatum eum nemo nemo. Molestiae aspernatur assumenda minima itaque error. Blanditiis error pariatur earum optio laboriosam.\"}}, {\"model\": \"users.users\", \"pk\": 2, \"fields\": {\"userName\": \"Sara Sanders\", \"userEmail\": \"[email protected]\", \"userPassword\": \"LY+D3AIgG(\", \"userImage\": \"Quia distinctio consequuntur commodi sequi veritatis rem ipsa. Sed earum quos. Ducimus impedit corrupti exercitationem fugiat nesciunt.\"}}, {\"model\": \"users.users\", \"pk\": 3, \"fields\": {\"userName\": \"Cynthia Holland\", \"userEmail\": \"[email protected]\", \"userPassword\": \"(2SAE#C%h#\", \"userImage\": \"Maxime dignissimos aliquid minus doloribus. Omnis consectetur enim. Aperiam fuga sequi voluptatibus non.\\nTenetur qui recusandae harum minus eum doloremque. A aliquid ipsum ducimus ea.\"}}, {\"model\": \"users.users\", \"pk\": 4, \"fields\": {\"userName\": \"Kimberly Graham\", \"userEmail\": \"[email protected]\", \"userPassword\": \"_1Lsh+1lfm\", \"userImage\": \"Ipsam asperiores sapiente velit blanditiis qui asperiores quo. Cupiditate voluptate inventore assumenda perferendis.\"}}, {\"model\": \"users.users\", \"pk\": 5, \"fields\": {\"userName\": \"Monica Perez\", \"userEmail\": \"[email protected]\", \"userPassword\": \"xc7X%Kecf*\", \"userImage\": \"Distinctio commodi laborum earum. Culpa odit est magni. Laboriosam distinctio deleniti similique ad reprehenderit.\\nIpsam quo ab dolorem quidem explicabo natus.\"}}, {\"model\": \"users.users\", \"pk\": 6, \"fields\": {\"userName\": \"Karen Barnett\", \"userEmail\": \"[email protected]\", \"userPassword\": \"!9qURt5e)L\", \"userImage\": \"Corporis consequuntur recusandae unde illum perferendis. Explicabo ipsa veritatis dolor.\\nAd a animi numquam molestias perferendis. Est sequi consectetur dolore eveniet. Eveniet nemo asperiores quia.\"}}, {\"model\": \"users.users\", \"pk\": 7, \"fields\": {\"userName\": \"Heidi Lewis\", \"userEmail\": \"[email protected]\", \"userPassword\": \"%!VWydxy47\", \"userImage\": \"Explicabo veritatis laudantium. Numquam sit ipsa hic perspiciatis minus labore.\"}}, {\"model\": \"users.users\", \"pk\": 8, \"fields\": {\"userName\": \"Trevor Martin\", \"userEmail\": \"[email protected]\", \"userPassword\": \"4^eI$Fw!)E\", \"userImage\": \"Voluptatibus perspiciatis tempore eius quisquam labore consequatur. Delectus porro eum beatae quasi impedit praesentium. Illum numquam tenetur inventore mollitia delectus.\"}}, {\"model\": \"users.users\", \"pk\": 9, \"fields\": {\"userName\": \"Joshua Simmons\", \"userEmail\": \"[email protected]\", \"userPassword\": \"a9DA+aF)&f\", \"userImage\": \"Quam est praesentium autem. Deleniti commodi inventore. Enim harum numquam officia sunt facere cum quia.\\nConsectetur laudantium magnam quod soluta inventore ex. Quod laborum quidem quos.\"}}, {\"model\": \"users.users\", \"pk\": 10, \"fields\": {\"userName\": \"Steven Reed\", \"userEmail\": \"[email protected]\", \"userPassword\": \"!rc7P^yw!W\", \"userImage\": \"Repellendus debitis repudiandae sint. Vel hic quisquam hic. Deserunt atque perferendis pariatur nisi.\\nSapiente id quae maxime dolorem vel non. Reiciendis distinctio ut aut cupiditate aut.\"}}]"
Para maiores informações, o código completo se encontra na US#02-UserSignUp.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Galera, fiz o GET de users na API, mas ele não esta retornando o Json certo. Ele esta vindo cheio de ''. Segue um exemplo do código:
E do Json:
Para maiores informações, o código completo se encontra na US#02-UserSignUp.
The text was updated successfully, but these errors were encountered: