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
In this response you see the top level link object for the document and the link object for the specific object in the data section, which are the same. This redundancy is more useful in GET requests for multiple resources, where the document-level links differ from the resource-specific links.
My suggestion for this is to remove the links object in the data section for responses to get one API calls.
The text was updated successfully, but these errors were encountered:
Version Information
0.14.3
Hashcat
No response
Description
Currently when you do a get one API call you will get the same links object twice in the response:
For example the GET call to: 'http://localhost:8080/api/v2/ui/crackertypes/1' will return:
{
"jsonapi": {
"version": "1.1",
"ext": [
"https://jsonapi.org/profiles/ethanresnick/cursor-pagination"
]
},
"links": {
"self": "/api/v2/ui/crackertypes/1"
},
"data": {
"type": "crackerBinaryType",
"id": 1,
"attributes": {
"typeName": "hashcat",
"isChunkingAvailable": true
},
"links": {
"self": "/api/v2/ui/crackertypes/1"
},
"relationships": {
"crackerVersions": {
"links": {
"self": "/api/v2/ui/crackertypes/1/relationships/crackerVersions",
"related": "/api/v2/ui/crackertypes/1/crackerVersions"
}
},
"tasks": {
"links": {
"self": "/api/v2/ui/crackertypes/1/relationships/tasks",
"related": "/api/v2/ui/crackertypes/1/tasks"
}
}
}
}
}
In this response you see the top level link object for the document and the link object for the specific object in the data section, which are the same. This redundancy is more useful in GET requests for multiple resources, where the document-level links differ from the resource-specific links.
My suggestion for this is to remove the links object in the data section for responses to get one API calls.
The text was updated successfully, but these errors were encountered: