diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2017-09-06 09:15:34 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2017-09-06 09:15:34 +0200 |
commit | 4dff341af11d651d1ec199d35eebaf4adb92fdd0 (patch) | |
tree | 16af980ef39a2aae283fa4ed1b747bad89456b71 /doc/api/README.md | |
parent | 745bc35666ce7e6cc3fbdb08596e4e18a35f8e04 (diff) | |
download | gitlab-ce-4dff341af11d651d1ec199d35eebaf4adb92fdd0.tar.gz |
Fix wrong API status codes
Diffstat (limited to 'doc/api/README.md')
-rw-r--r-- | doc/api/README.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/README.md b/doc/api/README.md index a947eed2db8..db61497db53 100644 --- a/doc/api/README.md +++ b/doc/api/README.md @@ -237,8 +237,8 @@ The following table gives an overview of how the API functions generally behave. | ------------ | ----------- | | `GET` | Access one or more resources and return the result as JSON. | | `POST` | Return `201 Created` if the resource is successfully created and return the newly created resource as JSON. | -| `GET` / `PUT` / `DELETE` | Return `200 OK` if the resource is accessed, modified or deleted successfully. The (modified) result is returned as JSON. | -| `DELETE` | Designed to be idempotent, meaning a request to a resource still returns `200 OK` even it was deleted before or is not available. The reasoning behind this, is that the user is not really interested if the resource existed before or not. | +| `GET` / `PUT` | Return `200 OK` if the resource is accessed or modified successfully. The (modified) result is returned as JSON. | +| `DELETE` | Returns `204 No Content` if the resuource was deleted successfully. | The following table shows the possible return codes for API requests. |