Skip to content

Commit

Permalink
[PAPI-DEV] Update link references for meta object (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajki authored Aug 28, 2024
1 parent c9f1ee9 commit 7a51f2b
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions common-components-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://api.personio.de"
}
],
"paths": null,
"paths": {},
"components": {
"responses": {
"NotFoundResponse": {
Expand All @@ -33,10 +33,14 @@
"links": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"$ref": "#/components/schemas/LinkObject"
},
"example": {
"self": "https://api.personio.de/v2/person?cursor=<current-cursor>"
"links": {
"self": {
"href": "https://api.personio.de/v2/person?cursor=<current-cursor>"
}
}
}
}
}
Expand All @@ -51,20 +55,7 @@
"description": "The id of the created resource."
},
"_meta": {
"readOnly": true,
"type": "object",
"properties": {
"links": {
"type": "object",
"properties": {
"self": {
"type": "string",
"format": "uri",
"example": "https://api.personio.de/v2/persons/some-person-id"
}
}
}
}
"$ref": "#/components/schemas/MetaObject"
}
}
},
Expand Down Expand Up @@ -206,6 +197,18 @@
}
}
]
},
"LinkObject": {
"description": "This objects represents a hyperlink.",
"type": "object",
"readOnly": true,
"properties": {
"href": {
"type": "string",
"format": "uri"
}
},
"additionalProperties": true
}
},
"parameters": {
Expand Down

0 comments on commit 7a51f2b

Please sign in to comment.