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

Why is my response not complete when running pytest #1193

Closed Unanswered
miazocool asked this question in Q&A
Discussion options

Hello, when running pytest, my get request only display this information
Attributes and relationships fields are missing

{'data': [{'id': '3f70944c-c681-4ca7-bc19-7fb217613cbd', 'type': 'Project'},
{'id': '86a3de70-2398-49dc-b4ae-c87beb6f2fe8', 'type': 'Project'}],
'links': {'self': 'http://testserver/api/v1/groups/5/relationships/projects'}}

This is the full response when calling from thunderclient

{
"data": [
{
"type": "Project",
"id": "07233108-b105-4eaa-8192-636aba91f8d0",
"attributes": {
"name": "TESTPROJECT",
"code": "TESTPROJECT_CODE_TWO",
"description": "This is a test a project"
},
"relationships": {
"groups": {
"meta": {
"count": 1
},
"data": [
{
"type": "Group",
"id": "1"
}
],
"links": {
"self": "http://localhost:8000/api/v1/projects/07233108-b105-4eaa-8192-636aba91f8d0/relationships/groups",
"related": "http://localhost:8000/api/v1/projects/07233108-b105-4eaa-8192-636aba91f8d0/groups"
}
}
},
"links": {
"self": "http://localhost:8000/api/v1/projects/07233108-b105-4eaa-8192-636aba91f8d0"
}
}
]

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

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