Skip to content

Commit 05b77e6

Browse files
committed
- Fixed docs
1 parent 9fd5543 commit 05b77e6

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docs/generating-api-docs/adding-additional-fields.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ public static function apiDocAdditionalIndexQueryParameters(): array
1818
return [
1919
'lat' => [
2020
'type' => 'number',
21-
'description' => 'Latitude to calculate distance from.'
22-
'example' => 4.174446111
21+
'description' => 'Latitude to calculate distance from.',
22+
'example' => 4.174446111,
2323
],
2424

2525
'lng' => [
2626
'type' => 'number',
27-
'description' => 'Longitude to calculate distance from.'
28-
'example' => 73.5097
27+
'description' => 'Longitude to calculate distance from.',
28+
'example' => 73.5097,
2929
],
3030
];
3131
}
@@ -43,14 +43,14 @@ public static function apiDocAdditionalShowQueryParameters(): array
4343
return [
4444
'lat' => [
4545
'type' => 'number',
46-
'description' => 'Latitude to calculate distance from.'
47-
'example' => 4.174446111
46+
'description' => 'Latitude to calculate distance from.',
47+
'example' => 4.174446111,
4848
],
4949

5050
'lng' => [
5151
'type' => 'number',
52-
'description' => 'Longitude to calculate distance from.'
53-
'example' => 73.5097
52+
'description' => 'Longitude to calculate distance from.',
53+
'example' => 73.5097,
5454
],
5555
];
5656
}

docs/generating-api-docs/customizing-api-docs-metadata.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function apiDocFilterMetadata(): array
2626
'search' => [
2727
'type' => 'string',
2828
'description' => 'Search products by name.',
29-
]
29+
],
3030
];
3131
}
3232
```
@@ -40,7 +40,7 @@ Use this method to describe what your resource is.
4040
// in ProductsController.php
4141
public static function apiDocGroupDescription(): string
4242
{
43-
return 'Endpoints for listing and viewing products'.;
43+
return 'Endpoints for listing and viewing products.';
4444
}
4545
```
4646

0 commit comments

Comments
 (0)