View Issue Details

IDProjectCategoryView StatusLast Update
0032862mantisbtdocumentationpublic2023-10-14 15:25
Reporterdregad Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Fixed in Version2.25.7 
Summary0032862: REST API documentation for Issue Tag Detach is incorrect
Description

The endpoint is documented as a POST request with a {"tag_id": } payload [1], but it is in fact implemented as a DELETE request:

https://github.com/mantisbt/mantisbt/blob/c9b56bcdd8c86b6acdd672dfe66ba0527e812672/api/rest/restcore/issues_rest.php#L51-L52

    $g_app->delete( '/{id}/tags/{tag_id}', 'rest_issue_tag_detach' );
    $g_app->delete( '/{id}/tags/{tag_id}/', 'rest_issue_tag_detach' );

Documentation must be updated to reflect what the code actually does.

TagsNo tags attached.

Relationships

related to 0032858 closeddregad Status codes returned by REST API delete operations are not consistent 

Activities

vboctor

vboctor

2023-08-29 23:31

manager   ~0068047

The fix live.