Skip to content

ApiEndpoints

Class staticpublic
Provides well-known route path constants for the sample API.
Namespace SampleApi
Assembly SampleApi
Package v1.0.0.0
public static class ApiEndpoints
Centralizing route paths in a static class ensures that controllers, clients, and tests reference the same values, reducing the risk of routing mismatches.
CustomerById Section titled CustomerById static
string
string ApiEndpoints.CustomerById

Route template for a single customer resource.

string
string ApiEndpoints.Customers

Base path for customer endpoints.

string
string ApiEndpoints.Health

Path for the health-check endpoint.

string
string ApiEndpoints.OrderById

Route template for a single order resource.

string
string ApiEndpoints.Orders

Base path for order endpoints.

ProductById Section titled ProductById static
string
string ApiEndpoints.ProductById

Route template for a single product resource.

string
string ApiEndpoints.Products

Path for the product catalogue.

string
string ApiEndpoints.Ready

Path for the readiness probe endpoint.