Confirmed users
927
edits
Tarek.ziade (talk | contribs) |
|||
Line 139: | Line 139: | ||
If the hash is similar to the current hash of the channel, the server | If the hash is similar to the current hash of the channel, the server | ||
will return a 304 and an empty body. | will return a 304 and an empty body. | ||
The number of GET calls for a given channel are limited to 6. The channel will | |||
be deleted by the server after 6 successful GETs. | |||
Return codes: | Return codes: | ||
Line 177: | Line 180: | ||
'''POST''' '''https://''server''/''report'' ''' | '''POST''' '''https://''server''/''report'' ''' | ||
Reports a log to the server. The log is the body of the request. If the | Reports a log to the server, and ask for a channel deletion. | ||
The log is the body of the request. If the | |||
request contains a ''X-KeyEchange-Log'' header, its value is prepended | |||
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. The messages reported are described at {{J-PAKE Report API}} | ||
If the request contains the ''X-KeyEchange-Id'' header and a | |||
''X-KeyEchange-Cid'' header containing the channel id, the channel will | |||
be deleted by the server. | |||
Return codes: | Return codes: | ||
- 200: logged successfully | - 200: logged successfully |