hholzgra / maposmatic

Mirror of maposmatic repository at savannah.nongnu.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API - add api call to cancel a request

hholzgra opened this issue · comments

Depends on Issue #6 to prevent malicious users from cancelling other jobs to get further up in the rendering queue

Thinking again we can solve the "malicious user" problem by returning the already existing job nonce value as part of the job creation results, and only accept cancel requests that contain both the job id and correct nonce.

Thinking again we can solve the "malicious user" problem by returning the already existing job nonce value as part of the job creation results, and only accept cancel requests that contain both the job id and correct nonce.

Implemented now as POST endpoint "cancel_job" expecting parameters "id" and "nonce"

Just missing proper documentation now.

Documentation added, closing