Skip to content

Commit

Permalink
Merge pull request #662 from wri/feat/TM-1641-spa
Browse files Browse the repository at this point in the history
[TM-1641] User locale switching has moved to v3.
  • Loading branch information
roguenet authored Jan 27, 2025
2 parents bd78e75 + 33b96a3 commit f1b4a8b
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 94 deletions.
22 changes: 0 additions & 22 deletions app/Http/Controllers/V2/UserLocaleController.php

This file was deleted.

20 changes: 0 additions & 20 deletions app/Http/Requests/V2/UserLocaleRequest.php

This file was deleted.

22 changes: 0 additions & 22 deletions openapi-src/V2/paths/Users/post-v2-users-locale.yml

This file was deleted.

3 changes: 0 additions & 3 deletions openapi-src/V2/paths/_index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2808,9 +2808,6 @@
/v2/site-polygon/{uuid}/make-active:
put:
$ref: './Polygons/put-v2-site-polygon-uuid-make-active.yml'
/v2/users/locale:
patch:
$ref: './Users/post-v2-users-locale.yml'
/v2/terrafund/clip-polygons/polygon/{uuid}:
post:
$ref: './Terrafund/post-v2-terrafund-clip-polygons-polygon-uuid.yml'
Expand Down
24 changes: 0 additions & 24 deletions resources/docs/swagger-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99259,30 +99259,6 @@ paths:
type: boolean
version_name:
type: string
/v2/users/locale:
patch:
summary: Updates user locale
operationId: post-v2-users-locale
tags:
- V2 Locale
parameters:
- in: body
name: locale
required: true
description: 'locale used could be one of en-US,es-MX,fr-FR,pt-BR'
schema:
type: object
properties:
locale:
type: string
responses:
'200':
description: OK
schema:
type: object
properties:
message:
type: string
'/v2/terrafund/clip-polygons/polygon/{uuid}':
post:
summary: Clip Overlapping Polygons by Polygon
Expand Down
3 changes: 0 additions & 3 deletions routes/api_v2.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@
use App\Http\Controllers\V2\User\CompleteActionController;
use App\Http\Controllers\V2\User\IndexMyActionsController;
use App\Http\Controllers\V2\User\UpdateMyBannersController;
use App\Http\Controllers\V2\UserLocaleController;
use App\Http\Controllers\V2\Workdays\GetWorkdaysForEntityController;
use App\Http\Middleware\ModelInterfaceBindingMiddleware;
use App\Models\V2\AuditableModel;
Expand Down Expand Up @@ -792,5 +791,3 @@ function () {
});

Route::get('/type-entity', EntityTypeController::class);

Route::patch('/users/locale', UserLocaleController::class);

0 comments on commit f1b4a8b

Please sign in to comment.