Services/KeyExchange: Difference between revisions

Jump to navigation Jump to search
Line 172: Line 172:
'''POST''' '''https://''server''/''report'' '''
'''POST''' '''https://''server''/''report'' '''


   Reports a log to the server, and ask for a channel deletion.  
   Reports a log to the server, and optionaly ask for a channel deletion.  
    
    
   The log is the body of the request. If the  
   The log is the body of the request. If the  
Line 178: Line 178:
   to the log provided in the body. In other words, the header can be used
   to the log provided in the body. In other words, the header can be used
   for small logs, and the body for more info. The body size is limited to  
   for small logs, and the body for more info. The body size is limited to  
   2000 chars.  
   2000 chars.  If both body and headers are empty, a 400 is raised.
      
      
   If the request contains the ''X-KeyEchange-Id'' header and a
   Optionally, if the request contains the ''X-KeyEchange-Id'' header and a
   ''X-KeyEchange-Cid'' header containing the channel id, the channel will
   ''X-KeyEchange-Cid'' header containing the channel id, the channel will
   be deleted by the server.
   be deleted by the server.
   
 
   Return codes:
   Return codes:
     - 200: logged successfully   
     - 200: logged successfully   
     - 403: the IP is blacklisted.
     - 403: the IP is blacklisted.
 
    - 400: bad request (missing log or bad ids)


The messages reported are described at {{J-PAKE Report API}}
The messages reported are described at {{J-PAKE Report API}}
Confirmed users
927

edits

Navigation menu