resources
Returns a resource by its ID
Changed onTakes in a valid resource ID and returns the resource related to it.
get/api/v1/resources/{resourceId}
Request
- The document declares no server URL.
- Auth: none declared
Path parameters
resourceIdstring required
Example:cln2u09xo0037s6wvbf6t9jfg
ID of the resource to be retrieved.
Response
Resource found
Example response
{
"title": "My Resource in Javascript",
"slug": "my-resource-in-javascript",
"description": "Lorem ipsum javascript",
"url": "https://tutorials.cat/learn/javascript",
"categoryId": "clocr0bi20000h8vwipfbazso",
"topics": [
{
"topic": {
"name": "React Props",
"slug": "react-props"
}
}
],
"voteCount": {
"upvote": 14,
"downvote": 2,
"total": 12
}
}Changes
- info
api operation id
getResourcesByIdwas added
- info
- breaking
removed the required property
from the response with the status - info
added the required property
/to the response with the status
- breaking