mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-23 07:50:36 +08:00
Removed image_id
property from books & shelves api docs
This was either not provided or not provided for the last 18 months. Likely not providing much value as-is so removing. Closes #3474
This commit is contained in:
parent
7c597a05f6
commit
3f271ebecb
|
@ -37,7 +37,7 @@ class BookApiController extends ApiController
|
||||||
$books = Book::visible();
|
$books = Book::visible();
|
||||||
|
|
||||||
return $this->apiListingResponse($books, [
|
return $this->apiListingResponse($books, [
|
||||||
'id', 'name', 'slug', 'description', 'created_at', 'updated_at', 'created_by', 'updated_by', 'owned_by', 'image_id',
|
'id', 'name', 'slug', 'description', 'created_at', 'updated_at', 'created_by', 'updated_by', 'owned_by',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ class BookshelfApiController extends ApiController
|
||||||
$shelves = Bookshelf::visible();
|
$shelves = Bookshelf::visible();
|
||||||
|
|
||||||
return $this->apiListingResponse($shelves, [
|
return $this->apiListingResponse($shelves, [
|
||||||
'id', 'name', 'slug', 'description', 'created_at', 'updated_at', 'created_by', 'updated_by', 'owned_by', 'image_id',
|
'id', 'name', 'slug', 'description', 'created_at', 'updated_at', 'created_by', 'updated_by', 'owned_by',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
"updated_at": "2019-12-11T20:57:31.000000Z",
|
"updated_at": "2019-12-11T20:57:31.000000Z",
|
||||||
"created_by": 1,
|
"created_by": 1,
|
||||||
"updated_by": 1,
|
"updated_by": 1,
|
||||||
"owned_by": 1,
|
"owned_by": 1
|
||||||
"image_id": 3
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 2,
|
"id": 2,
|
||||||
|
@ -21,8 +20,7 @@
|
||||||
"updated_at": "2019-12-11T20:57:23.000000Z",
|
"updated_at": "2019-12-11T20:57:23.000000Z",
|
||||||
"created_by": 4,
|
"created_by": 4,
|
||||||
"updated_by": 3,
|
"updated_by": 3,
|
||||||
"owned_by": 3,
|
"owned_by": 3
|
||||||
"image_id": 34
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"total": 14
|
"total": 14
|
||||||
|
|
|
@ -7,6 +7,5 @@
|
||||||
"updated_at": "2020-01-12T14:16:10.000000Z",
|
"updated_at": "2020-01-12T14:16:10.000000Z",
|
||||||
"created_by": 1,
|
"created_by": 1,
|
||||||
"updated_by": 1,
|
"updated_by": 1,
|
||||||
"owned_by": 1,
|
"owned_by": 1
|
||||||
"image_id": 452
|
|
||||||
}
|
}
|
|
@ -9,8 +9,7 @@
|
||||||
"updated_at": "2020-04-10T13:00:45.000000Z",
|
"updated_at": "2020-04-10T13:00:45.000000Z",
|
||||||
"created_by": 4,
|
"created_by": 4,
|
||||||
"updated_by": 1,
|
"updated_by": 1,
|
||||||
"owned_by": 1,
|
"owned_by": 1
|
||||||
"image_id": 31
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 9,
|
"id": 9,
|
||||||
|
@ -21,8 +20,7 @@
|
||||||
"updated_at": "2020-04-10T13:00:58.000000Z",
|
"updated_at": "2020-04-10T13:00:58.000000Z",
|
||||||
"created_by": 4,
|
"created_by": 4,
|
||||||
"updated_by": 1,
|
"updated_by": 1,
|
||||||
"owned_by": 1,
|
"owned_by": 1
|
||||||
"image_id": 28
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 10,
|
"id": 10,
|
||||||
|
@ -33,8 +31,7 @@
|
||||||
"updated_at": "2020-04-10T13:00:53.000000Z",
|
"updated_at": "2020-04-10T13:00:53.000000Z",
|
||||||
"created_by": 4,
|
"created_by": 4,
|
||||||
"updated_by": 1,
|
"updated_by": 1,
|
||||||
"owned_by": 4,
|
"owned_by": 4
|
||||||
"image_id": 30
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"total": 3
|
"total": 3
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
"created_by": 1,
|
"created_by": 1,
|
||||||
"updated_by": 1,
|
"updated_by": 1,
|
||||||
"owned_by": 1,
|
"owned_by": 1,
|
||||||
"image_id": 501,
|
|
||||||
"created_at": "2020-04-10T13:24:09.000000Z",
|
"created_at": "2020-04-10T13:24:09.000000Z",
|
||||||
"updated_at": "2020-04-10T13:48:22.000000Z"
|
"updated_at": "2020-04-10T13:48:22.000000Z"
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user