@ -141,7 +141,7 @@ class RestApi { 
			
		
	
		
		
			
				
					            DPRINTLN ( DBG_VERBOSE ,  " onApiPostBody " ) ;             DPRINTLN ( DBG_VERBOSE ,  " onApiPostBody " ) ;  
			
		
	
		
		
			
				
					
 
			
		
	
		
		
			
				
					            if ( 0  = =  index )  {             if ( 0  = =  index )  {  
			
		
	
		
		
			
				
					
					                if ( NULL ! =  mTmpBuf )                 if ( nullptr ! =  mTmpBuf )  
			
				
				
			
		
	
		
		
	
		
		
			
				
					                    delete [ ]  mTmpBuf ;                     delete [ ]  mTmpBuf ;  
			
		
	
		
		
			
				
					                mTmpBuf  =  new  uint8_t [ total + 1 ] ;                 mTmpBuf  =  new  uint8_t [ total + 1 ] ;  
			
		
	
		
		
			
				
					                mTmpSize  =  total ;                 mTmpSize  =  total ;  
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -154,11 +154,14 @@ class RestApi { 
			
		
	
		
		
			
				
					
 
			
		
	
		
		
			
				
					            DynamicJsonDocument  json ( 1000 ) ;             DynamicJsonDocument  json ( 1000 ) ;  
			
		
	
		
		
			
				
					
 
			
		
	
		
		
			
				
					            AsyncJsonResponse *  response  =  new  AsyncJsonResponse ( false ,  200 ) ;  
			
		
	
		
		
			
				
					            JsonObject  root  =  response - > getRoot ( ) ;  
			
		
	
		
		
			
				
					            DeserializationError  err  =  deserializeJson ( json ,  reinterpret_cast < const  char * > ( mTmpBuf ) ,  mTmpSize ) ;             DeserializationError  err  =  deserializeJson ( json ,  reinterpret_cast < const  char * > ( mTmpBuf ) ,  mTmpSize ) ;  
			
		
	
		
		
			
				
					            if ( ! json . is < JsonObject > ( ) )  
			
		
	
		
		
			
				
					                root [ F ( " error " ) ]  =  F ( DESER_FAILED ) ;  
			
		
	
		
		
			
				
					            else  {  
			
		
	
		
		
			
				
					                JsonObject  obj  =  json . as < JsonObject > ( ) ;                 JsonObject  obj  =  json . as < JsonObject > ( ) ;  
			
		
	
		
		
			
				
					
 
			
		
	
		
		
			
				
					            AsyncJsonResponse *  response  =  new  AsyncJsonResponse ( false ,  200 ) ;  
			
		
	
		
		
			
				
					            JsonObject  root  =  response - > getRoot ( ) ;  
			
		
	
		
		
			
				
					                root [ F ( " success " ) ]  =  ( err )  ?  false  :  true ;                 root [ F ( " success " ) ]  =  ( err )  ?  false  :  true ;  
			
		
	
		
		
			
				
					                if ( ! err )  {                 if ( ! err )  {  
			
		
	
		
		
			
				
					                    String  path  =  request - > url ( ) . substring ( 5 ) ;                     String  path  =  request - > url ( ) . substring ( 5 ) ;  
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -179,11 +182,12 @@ class RestApi { 
			
		
	
		
		
			
				
					                        default :                                     root [ F ( " error " ) ]  =  F ( DESER_FAILED ) ;      break ;                         default :                                     root [ F ( " error " ) ]  =  F ( DESER_FAILED ) ;      break ;  
			
		
	
		
		
			
				
					                    }                     }  
			
		
	
		
		
			
				
					                }                 }  
			
		
	
		
		
			
				
					            }  
			
		
	
		
		
			
				
					
 
			
		
	
		
		
			
				
					            response - > setLength ( ) ;             response - > setLength ( ) ;  
			
		
	
		
		
			
				
					            request - > send ( response ) ;             request - > send ( response ) ;  
			
		
	
		
		
			
				
					            delete [ ]  mTmpBuf ;             delete [ ]  mTmpBuf ;  
			
		
	
		
		
			
				
					
					            mTmpBuf  =  NULL ;             mTmpBuf  =  nullptr ;  
			
				
				
			
		
	
		
		
	
		
		
			
				
					        }         }  
			
		
	
		
		
			
				
					
 
			
		
	
		
		
			
				
					        void  getNotFound ( JsonObject  obj ,  String  url )  {         void  getNotFound ( JsonObject  obj ,  String  url )  {  
			
		
	
	
		
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
					@ -974,7 +978,7 @@ class RestApi { 
			
		
	
		
		
			
				
					        uint32_t  mTimezoneOffset  =  0 ;         uint32_t  mTimezoneOffset  =  0 ;  
			
		
	
		
		
			
				
					        uint32_t  mHeapFree  =  0 ,  mHeapFreeBlk  =  0 ;         uint32_t  mHeapFree  =  0 ,  mHeapFreeBlk  =  0 ;  
			
		
	
		
		
			
				
					        uint8_t  mHeapFrag  =  0 ;         uint8_t  mHeapFrag  =  0 ;  
			
		
	
		
		
			
				
					
					        uint8_t  * mTmpBuf  =  NULL ;         uint8_t  * mTmpBuf  =  nullptr ;  
			
				
				
			
		
	
		
		
	
		
		
			
				
					        uint32_t  mTmpSize  =  0 ;         uint32_t  mTmpSize  =  0 ;  
			
		
	
		
		
			
				
					} ; } ;