-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Versioning
This page has moved to docs.servicestack.net/versioning
You can populate Version numbers in all Request DTO's implementing IHasVersion
, i.e:
public class Hello : IReturn<HelloResponse>, IHasVersion {
public int Version { get; set; }
public string Name { get; set; }
}
By assigning the Version
property on the Service Clients, e.g:
client.Version = 2;
Which will auto populate each Request DTO that implements IHasVersion
, e.g:
client.Get(new Hello { Name = "World" }); // Hello.Version=2
A popular convention for specifying versions in API requests is with the ?v=1
QueryString which ServiceStack now uses as a fallback for populating any Request DTO's that implement IHasVersion
(as above).
Note: as ServiceStack's message-based design promotes forward and backwards-compatible Service API designs, our recommendation is to only consider implementing versioning when necessary, at which point check out our recommended versioning strategy.
- Why ServiceStack?
- Important role of DTOs
- What is a message based web service?
- Advantages of message based web services
- Why remote services should use separate DTOs
-
Getting Started
-
Designing APIs
-
Reference
-
Clients
-
Formats
-
View Engines 4. Razor & Markdown Razor
-
Hosts
-
Security
-
Advanced
- Configuration options
- Access HTTP specific features in services
- Logging
- Serialization/deserialization
- Request/response filters
- Filter attributes
- Concurrency Model
- Built-in profiling
- Form Hijacking Prevention
- Auto-Mapping
- HTTP Utils
- Dump Utils
- Virtual File System
- Config API
- Physical Project Structure
- Modularizing Services
- MVC Integration
- ServiceStack Integration
- Embedded Native Desktop Apps
- Auto Batched Requests
- Versioning
- Multitenancy
-
Caching
-
HTTP Caching 1. CacheResponse Attribute 2. Cache Aware Clients
-
Auto Query
-
AutoQuery Data 1. AutoQuery Memory 2. AutoQuery Service 3. AutoQuery DynamoDB
-
Server Events
-
Service Gateway
-
Encrypted Messaging
-
Plugins
-
Tests
-
ServiceStackVS
-
Other Languages
-
Amazon Web Services
-
Deployment
-
Install 3rd Party Products
-
Use Cases
-
Performance
-
Other Products
-
Future