Skip to content

use-standard-names

Full name
@azure-tools/typespec-azure-core/use-standard-names

Ensure Azure Service operations follow the naming recommendations.

Operation typeNaming convention
GET returning single objectStart with get
GET returning list of objectStart with list
PUT returning both 200 and 201Start with createOrReplace
PUT returning only 201Start with create or createOrReplace
PUT returning only 200Start with replace or createOrReplace
PATCH returning 201Start with create, update or createOrUpdate
DELETEStart with delete
op addPet is ResourceCreate<Pet>;
op getPets is ResourceList<Pet>;
op createPet is ResourceCreate<Pet>;
op listPets is ResourceList<Pet>;