-
Notifications
You must be signed in to change notification settings - Fork 300
-
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.