Commit graph

91 commits

Author SHA1 Message Date
Jérémy Munsch
202db58877 Bug fix in authenticate when no token is provided 2021-08-25 09:24:01 +02:00
Jérémy Munsch
0e38fc9ad4 Fix Route service provider for $customer 2021-08-24 16:05:05 +02:00
Jérémy Munsch
5ae0aa33bd Apiv2 Customer optimize authenticate 2021-08-23 22:47:42 +02:00
Jérémy Munsch
98b84fbfdf Route service provider add comment 2021-08-23 22:45:18 +02:00
Jérémy Munsch
6c28c87781 APiv2 customer lastconnection on a job + refactorize login 2021-08-23 21:56:12 +02:00
Jérémy Munsch
985fd3dba5 Remove delay on service stat dispatch 2021-08-23 21:46:10 +02:00
Jérémy Munsch
aeaa44e8c6 Set correct prop check $customerInfo->exists on api v2 customer store 2021-08-23 21:41:05 +02:00
Jérémy Munsch
13b7228b6d Route Service provider better route bind $customer 2021-08-23 21:04:01 +02:00
Jérémy Munsch
50a7eb35ad CustomerInfo phpcs fix 2021-08-23 20:50:51 +02:00
Jérémy Munsch
e618e6fb46 Customer::info and Customer::login try to get loaded relations first 2021-08-23 20:50:51 +02:00
Jérémy Munsch
f940d7a71d Eloquent model cache for Brand and Service
composer require rennokki/laravel-eloquent-query-cache
2021-08-23 20:50:51 +02:00
Jérémy Munsch
cfa87b7924 phpcs fix AnswersController 2021-08-23 20:50:51 +02:00
Jérémy Munsch
59bf1f231a phpcs fix customer delete 2021-08-23 20:50:51 +02:00
Jérémy Munsch
2a1aa5f046 Add database job to increment service stats 2021-08-23 20:50:50 +02:00
Jérémy Munsch
b17a86975d Add cache control on API response 2021-08-23 19:34:49 +02:00
Jérémy Munsch
848fbe4cb1 Rollback de required sur Customer address, code postal et ville (dans le cas ou sur le projet on utilise pas forcément MesBR) pour être conforme RGPD 2021-08-23 14:29:10 +02:00
Jérémy Munsch
c0578f5d40 Api V2 Fix get questions answers 2021-08-20 16:46:07 +02:00
Jérémy Munsch
dd754cf6f9 Change http auth code to 401 in Exception handler 2021-08-19 12:25:00 +02:00
Jérémy Munsch
77b91a6c09 Fix answer api 2021-08-18 11:56:01 +02:00
Jérémy Munsch
eef979ec8e update generate client to remove copy translations 2021-08-18 08:47:52 +02:00
Jérémy Munsch
055b824ffa Set address as required 2021-08-18 08:43:44 +02:00
Jérémy Munsch
f8a61d0e4c storeCustomerAnswers Mise à jour sans supprimer les anciennes questions 2021-08-18 08:27:09 +02:00
Jérémy Munsch
4527bc01f6 Refactorisation \App\Models\Customer::getAnswers 2021-08-18 08:26:40 +02:00
Jérémy Munsch
443b649604 Handle http auth with bearer token 2021-08-16 18:47:31 +02:00
Jérémy Munsch
6ec8ed1114 Fix Api authenticate missing bearer token 2021-08-16 16:31:15 +02:00
Jérémy Munsch
c97abfb253 Store customer, remove required from address field 2021-08-16 13:20:26 +02:00
Jérémy Munsch
e3f7a7ebea handle empty api_token on getFromApiToken, getFromBearerToken and authenticateApi 2021-08-16 13:20:03 +02:00
Jérémy Munsch
3383402b4e Translate Api Errors labels to FR 2021-08-16 13:18:31 +02:00
Jérémy Munsch
03e7f59285 Remove translate in enums 2021-08-16 08:08:48 +02:00
Jérémy Munsch
3331669541 fix genreate client 2021-08-13 12:34:09 +02:00
Jérémy Munsch
420e56097c bump to kwaadpepper/enum 2.0.0 2021-08-13 12:20:02 +02:00
Jérémy Munsch
16d7bee469 Fix api response middleware for API V1 2021-08-12 15:56:13 +02:00
Jérémy Munsch
f59deac5fc Merge branch 'v2' into develop 2021-08-12 14:57:05 +02:00
Jérémy Munsch
899140445e Add AuthorizationException handling 2021-08-12 08:56:35 +02:00
Jérémy Munsch
787ee5a4c5 - tag 2.0.1
- Add Questions segementation
- Fix Customer delete Tests
2021-08-11 17:37:59 +02:00
Jérémy Munsch
642d3cce08 phpcs rmove unused imports 2021-08-10 12:09:49 +02:00
Jérémy Munsch
1566b704a7 API V1 Test ok + All test OK 2021-08-10 10:20:52 +02:00
Jérémy Munsch
df15ed1fe5 REmove dump code on Login Controller 2021-08-10 10:20:08 +02:00
Jérémy Munsch
7d0b86d134 Store hashed tokens (bearer and api) instead of clear 2021-08-09 17:35:28 +02:00
Jérémy Munsch
b3f56a5329 Change password requirement 8 char instead of 10 2021-08-09 17:12:40 +02:00
Jérémy Munsch
46a47e822d Some php doc 2021-08-09 08:55:39 +02:00
Jérémy Munsch
e6e8b94409 phpcs fix 2021-08-06 16:12:41 +02:00
Jérémy Munsch
260d5fd259 - Arcadia separate routes on v2
- fix optin v2
- customer validation password
- full working v2 tests
2021-08-06 15:57:48 +02:00
Jérémy Munsch
dbf910223d add missing validation exception message on enum 2021-08-06 09:46:11 +02:00
Jérémy Munsch
f03ae09e6a - fixes
- customer update prop test
2021-08-05 16:18:09 +02:00
Jérémy Munsch
6131b1a171 - working testing env
- use php artisan serve to run test + autokill
- autodebug if envirronement is testing
2021-08-05 15:00:28 +02:00
Jérémy Munsch
484f7b6f1b Fix api response middleware 2021-08-04 17:23:57 +02:00
Jérémy Munsch
6b56929222 Api error and Api response fix to prevent imbricate ApiV2 Responses 2021-08-04 17:15:06 +02:00
Jérémy Munsch
9118e43452 Fix client generate replace of occurence in php files 2021-08-04 15:31:53 +02:00
Jérémy Munsch
00639792c4 - Fix Handler reponse coherence with api response
- Add ApiErrorException to the client
2021-08-04 15:07:25 +02:00