You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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"
}
}
]
Beta Was this translation helpful? Give feedback.
All reactions