Skip to content

Visit Stealing API #7

Description

@jbcarras

(Feature Request)
PATCH /api/steal-visit/<id>:
Has no body. Overwrite the TA ID of an in-progress visit denoted by id with the ID of the TA who hit the endpoint.
Should return a 400 Bad Request if the TA is currently in a visit and a 404 if the visit doesn't exist. 403 if the user isn't a TA or higher (this is already handled by the min_level decorator)
Should return 200 OK with the visit information in JSON (matches format of get_tas_visit) on success.

PATCH /api/abandon-visit/<id>
Has no body. Overwrite the TA ID of an in-progress visit denoted by id with null.
Should return 404 if the visit doesn't exist and 403 if the user isn't a TA or higher (this is already handled by the min_level decorator).
Should return 200 OK with success message in JSON (i.e. {"message": } on success.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions