liberu-real-estate / real-estate-laravel

Estate agency application written in Laravel 11 / PHP 8.3 using Filament 3
https://www.facebook.com/liberusoftware
25 stars 7 forks source link

Rightmove portal api #34

Closed curtisdelicata closed 1 month ago

curtisdelicata commented 1 year ago
Checklist - [X] Create `app/Http/Controllers/RightmoveApiController.php` ✓ https://github.com/liberu-real-estate/real-estate-laravel/commit/578c089813fe887bb8a6bc5b5575744b7b4c5cfb [Edit](https://github.com/liberu-real-estate/real-estate-laravel/edit/sweep/rightmove_portal_api/app/Http/Controllers/RightmoveApiController.php) - [X] Running GitHub Actions for `app/Http/Controllers/RightmoveApiController.php` ✓ [Edit](https://github.com/liberu-real-estate/real-estate-laravel/edit/sweep/rightmove_portal_api/app/Http/Controllers/RightmoveApiController.php) - [X] Modify `routes/api.php` ✓ https://github.com/liberu-real-estate/real-estate-laravel/commit/2819296ac200376d8de2bbb4e99afc60355d2dd6 [Edit](https://github.com/liberu-real-estate/real-estate-laravel/edit/sweep/rightmove_portal_api/routes/api.php) - [X] Running GitHub Actions for `routes/api.php` ✓ [Edit](https://github.com/liberu-real-estate/real-estate-laravel/edit/sweep/rightmove_portal_api/routes/api.php) - [X] Modify `app/Providers/RouteServiceProvider.php` ! No changes made [Edit](https://github.com/liberu-real-estate/real-estate-laravel/edit/sweep/rightmove_portal_api/app/Providers/RouteServiceProvider.php#L30-L37) - [X] Running GitHub Actions for `app/Providers/RouteServiceProvider.php` ✗ [Edit](https://github.com/liberu-real-estate/real-estate-laravel/edit/sweep/rightmove_portal_api/app/Providers/RouteServiceProvider.php#L30-L37)
sweep-ai[bot] commented 4 months ago

🚀 Here's the PR! #55

See Sweep's progress at the progress dashboard!
💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID: aae1915a51)

[!TIP] I'll email you at genealogysoftwareuk@gmail.com when I complete this pull request!


Actions (click)

GitHub Actions✓

Here are the GitHub Actions logs prior to making any changes:

Sandbox logs for 82ba322
Checking app/Providers/RouteServiceProvider.php for syntax errors... ✅ app/Providers/RouteServiceProvider.php has no syntax errors! 1/1 ✓
Checking app/Providers/RouteServiceProvider.php for syntax errors...
✅ app/Providers/RouteServiceProvider.php has no syntax errors!

Sandbox passed on the latest main, so sandbox checks will be enabled for this issue.


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/liberu-real-estate/real-estate-laravel/blob/400c2a43e2cad2405c4b9065f6affebf9bc00f5d/routes/api.php#L1-L18 https://github.com/liberu-real-estate/real-estate-laravel/blob/400c2a43e2cad2405c4b9065f6affebf9bc00f5d/app/Providers/RouteServiceProvider.php#L1-L39

Step 2: ⌨️ Coding

Ran GitHub Actions for 578c089813fe887bb8a6bc5b5575744b7b4c5cfb:

--- 
+++ 
@@ -17,3 +17,10 @@
 Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
     return $request->user();
 });
+Route::middleware('auth:sanctum')->group(function () {
+    Route::prefix('rightmove')->group(function () {
+        Route::get('/properties', [\App\Http\Controllers\RightmoveApiController::class, 'fetchProperties']);
+        Route::post('/listings', [\App\Http\Controllers\RightmoveApiController::class, 'createListing']);
+        Route::put('/listings/{listingId}', [\App\Http\Controllers\RightmoveApiController::class, 'updateListing']);
+    });
+});

Ran GitHub Actions for 2819296ac200376d8de2bbb4e99afc60355d2dd6:


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/rightmove_portal_api.


🎉 Latest improvements to Sweep:
  • New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
  • Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request.Something wrong? Let us know.

This is an automated message generated by Sweep AI.