プロジェクト

全般

プロフィール

Vote #74964

未完了

REST API should return 409 Conflict if User/Project/etc already exists

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
REST API_32
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
32
version_id:
0
issue_org_id:
16160
author_id:
96268
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

The REST API returns nearly always 422 Unprocessable Entity and details the errors in the response e.g. like "User Id already exists"
For remote integrations more different error codes would make life easier.

E.g.

POST /users to create a user entity
--> 201 Created if OK
--> 409 if Username already taken
--> 422 if input data incomplete

Currently the response has to be examined (it is localized) which is a bad pattern of course.

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0