@@ -42,8 +42,20 @@ private function validateRequest(Request $request)
4242 * path="/api/v1/airlines/list",
4343 * operationId="getAirlinesList",
4444 * tags={"Airlines"},
45- * summary="Get list of airlines",
46- * description="Returns list of airlines",
45+ * summary="List Airlines",
46+ * description="Get List of Airlines
47+
48+ This provides an example
49+ of using Query operations
50+ in Couchbase to retrieve a list of airlines.
51+
52+ Query operations
53+ are unique to Couchbase and allow you to search, transform, and analyze data in your documents
54+
55+ Code:
56+ [app/Http/Controllers/AirlineController.php](https://github.com/couchbase-examples/php-laravel-quickstart/blob/main/app/Http/Controllers/AirlineController.php)
57+
58+ Method: index",
4759 * @OA\Parameter(
4860 * name="offset",
4961 * in="query",
@@ -111,8 +123,20 @@ public function index(Request $request)
111123 * path="/api/v1/airlines/{id}",
112124 * operationId="getAirlineById",
113125 * tags={"Airlines"},
114- * summary="Get airline information",
115- * description="Returns airline data",
126+ * summary="Get Document",
127+ * description="Get Airline with specified ID
128+
129+ This provides an example
130+ of using Key Value operations
131+ in Couchbase to retrieve a document with specified ID.
132+
133+ Key Value operations
134+ are unique to Couchbase and provide very high speed get/set/delete operations
135+
136+ Code:
137+ [app/Http/Controllers/AirlineController.php](https://github.com/couchbase-examples/php-laravel-quickstart/blob/main/app/Http/Controllers/AirlineController.php)
138+
139+ Method: show",
116140 * @OA\Parameter(
117141 * name="id",
118142 * in="path",
@@ -155,8 +179,20 @@ public function show($id)
155179 * path="/api/v1/airlines/{id}",
156180 * operationId="createAirline",
157181 * tags={"Airlines"},
158- * summary="Create a new airline",
159- * description="Create a new airline",
182+ * summary="Create Document",
183+ * description="Create Airline with specified ID
184+
185+ This provides an example
186+ of using Key Value operations
187+ in Couchbase to create a document with specified ID.
188+
189+ Key Value operations
190+ are unique to Couchbase and provide very high speed get/set/delete operations
191+
192+ Code:
193+ [app/Http/Controllers/AirlineController.php](https://github.com/couchbase-examples/php-laravel-quickstart/blob/main/app/Http/Controllers/AirlineController.php)
194+
195+ Method: store",
160196 * @OA\Parameter(
161197 * name="id",
162198 * in="path",
@@ -206,8 +242,20 @@ public function store(Request $request, $id)
206242 * path="/api/v1/airlines/{id}",
207243 * operationId="updateAirline",
208244 * tags={"Airlines"},
209- * summary="Update an existing airline or create a new one if it does not exist",
210- * description="Update an existing airline or create a new one if it does not exist",
245+ * summary="Update Document",
246+ * description="Update Airline with specified ID
247+
248+ This provides an example
249+ of using Key Value operations
250+ in Couchbase to update a document with specified ID.
251+
252+ Key Value operations
253+ are unique to Couchbase and provide very high speed get/set/delete operations
254+
255+ Code:
256+ [app/Http/Controllers/AirlineController.php](https://github.com/couchbase-examples/php-laravel-quickstart/blob/main/app/Http/Controllers/AirlineController.php)
257+
258+ Method: update",
211259 * @OA\Parameter(
212260 * name="id",
213261 * in="path",
@@ -217,7 +265,7 @@ public function store(Request $request, $id)
217265 * )
218266 * ),
219267 * @OA\RequestBody(
220- * description="Airline object that needs to be updated or created ",
268+ * description="Airline object that needs to be updated",
221269 * required=true,
222270 * @OA\JsonContent(ref="#/components/schemas/Airline")
223271 * ),
@@ -226,8 +274,8 @@ public function store(Request $request, $id)
226274 * description="Successful operation"
227275 * ),
228276 * @OA\Response(
229- * response=201 ,
230- * description="Resource created successfully "
277+ * response=404 ,
278+ * description="Not Found "
231279 * ),
232280 * @OA\Response(
233281 * response=422,
@@ -268,11 +316,23 @@ public function update(Request $request, $id)
268316
269317 /**
270318 * @OA\Delete(
271- * path="/api/v1/airlines /{id}",
319+ * path="/api/v1/airline /{id}",
272320 * operationId="deleteAirline",
273321 * tags={"Airlines"},
274- * summary="Delete an airline",
275- * description="Delete an airline",
322+ * summary="Delete Document",
323+ * description="Delete Airline with specified ID
324+
325+ This provides an example
326+ of using Key Value operations
327+ in Couchbase to delete a document with specified ID.
328+
329+ Key Value operations
330+ are unique to Couchbase and provide very high speed get/set/delete operations
331+
332+ Code:
333+ [app/Http/Controllers/AirlineController.php](https://github.com/couchbase-examples/php-laravel-quickstart/blob/main/app/Http/Controllers/AirlineController.php)
334+
335+ Method: deleteAirline",
276336 * @OA\Parameter(
277337 * name="id",
278338 * in="path",
@@ -317,8 +377,20 @@ public function destroy($id)
317377 * path="/api/v1/airlines/to-airport/{destinationAirportCode}",
318378 * operationId="getAirlinesToAirport",
319379 * tags={"Airlines"},
320- * summary="Get airlines flying to a destination airport",
321- * description="Returns list of airlines flying to a specific airport",
380+ * summary="List Airlines to Airport",
381+ * description="Get Airlines flying to specified Airport
382+
383+ This provides an example
384+ of using Query operations
385+ in Couchbase to find airlines flying to a specific airport.
386+
387+ Query operations
388+ are unique to Couchbase and allow you to search, transform, and analyze data in your documents
389+
390+ Code:
391+ [app/Http/Controllers/AirlineController.php](https://github.com/couchbase-examples/php-laravel-quickstart/blob/main/app/Http/Controllers/AirlineController.php)
392+
393+ Method: toAirport",
322394 * @OA\Parameter(
323395 * name="destinationAirportCode",
324396 * in="path",
0 commit comments