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:
Dan Brown 2022-06-07 14:27:45 +01:00
parent 7c597a05f6
commit 3f271ebecb
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
6 changed files with 8 additions and 15 deletions

View File

@ -37,7 +37,7 @@ class BookApiController extends ApiController
$books = Book::visible();
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',
]);
}

View File

@ -44,7 +44,7 @@ class BookshelfApiController extends ApiController
$shelves = Bookshelf::visible();
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',
]);
}

View File

@ -9,8 +9,7 @@
"updated_at": "2019-12-11T20:57:31.000000Z",
"created_by": 1,
"updated_by": 1,
"owned_by": 1,
"image_id": 3
"owned_by": 1
},
{
"id": 2,
@ -21,8 +20,7 @@
"updated_at": "2019-12-11T20:57:23.000000Z",
"created_by": 4,
"updated_by": 3,
"owned_by": 3,
"image_id": 34
"owned_by": 3
}
],
"total": 14

View File

@ -7,6 +7,5 @@
"updated_at": "2020-01-12T14:16:10.000000Z",
"created_by": 1,
"updated_by": 1,
"owned_by": 1,
"image_id": 452
"owned_by": 1
}

View File

@ -9,8 +9,7 @@
"updated_at": "2020-04-10T13:00:45.000000Z",
"created_by": 4,
"updated_by": 1,
"owned_by": 1,
"image_id": 31
"owned_by": 1
},
{
"id": 9,
@ -21,8 +20,7 @@
"updated_at": "2020-04-10T13:00:58.000000Z",
"created_by": 4,
"updated_by": 1,
"owned_by": 1,
"image_id": 28
"owned_by": 1
},
{
"id": 10,
@ -33,8 +31,7 @@
"updated_at": "2020-04-10T13:00:53.000000Z",
"created_by": 4,
"updated_by": 1,
"owned_by": 4,
"image_id": 30
"owned_by": 4
}
],
"total": 3

View File

@ -6,7 +6,6 @@
"created_by": 1,
"updated_by": 1,
"owned_by": 1,
"image_id": 501,
"created_at": "2020-04-10T13:24:09.000000Z",
"updated_at": "2020-04-10T13:48:22.000000Z"
}