Azure / Azure/azure-rest-api-specs

Bug: App Service Plans - Reboot Worker API will response incorrect status code

Open
#25,876 0 comments 0 reactions 0 assignees View on GitHub
customer-reported question Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 2h
Merged PRs (30d)
424

Description

API Link: https://learn.microsoft.com/en-us/rest/api/appservice/app-service-plans/reboot-worker#code-try-0
As this document mentioned, it will response 204 if request processed success. But if I click the try it button and run it with correct paramter, I will see status code 200.

image

![image](https://github.com/Azure/azure-rest-api-specs/assets/42196638/5fe8edec-2c72-48c8-86f9-8401f8af0582)

It will cause .net sdk thrown exception. related issue: https://github.com/Azure/azure-sdk-for-net/issues/38786

Contributor guide

Open the contributing guide

Research direction

Start with the App Service Plans Reboot Worker operation in the linked REST API documentation and compare its documented 204 response with the 200 response shown from Try It. Trace that operation in the repository's REST specification and verify that the corrected response status is reflected in the documentation and avoids the reported .NET SDK exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.