This repository was archived by the owner on Jan 13, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
account-rest-api/src/main/java/com/bobocode/web/controller Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1010 * todo: 4. Implement method that handles GET request with id as path variable and returns account by id
1111 * todo: 5. Implement method that handles POST request, receives account as request body, saves account and returns it
1212 * todo: Configure HTTP response status code 201 - CREATED
13- * todo: 5 . Implement method that handles PUT request with id as path variable and receives account as request body.
13+ * todo: 6 . Implement method that handles PUT request with id as path variable and receives account as request body.
1414 * todo: It check if account id and path variable are the same and throws {@link IllegalStateException} otherwise.
1515 * todo: Then it saves received account. Configure HTTP response status code 204 - NO CONTENT
16- * todo: 6 . Implement method that handles DELETE request with id as path variable removes an account by id
16+ * todo: 7 . Implement method that handles DELETE request with id as path variable removes an account by id
1717 * todo: Configure HTTP response status code 204 - NO CONTENT
1818 */
1919public class AccountRestController {
You can’t perform that action at this time.
0 commit comments