Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.6k
Formats
This page has moved to docs.servicestack.net/formats
ServiceStack supports 6 response formats out of the box:
- JSON
- XML
- SOAP 1.1/1.2
- JSV(hybrid CSV-style escaping + JSON format that is optimized for both size and speed)
- CSV
- HTML5 Report(provides a readable and semantic HTML layout letting you visualize all the data returned by your web service)
- HTML with Markdown Razor(Razor combined with markdown)
Additional Formats are available as external Plugins:
You can define which format should be used by adding a .{format} extension:
.json.xml.jsv.csv.html
Or by appending ?format={format} to the end of the URL:
?format=json?format=xml?format=jsv?format=csv?format=html
Example: http://mono.servicestack.net/hello/World!?format=json
Alternatively ServiceStack also recognizes which format should be used with the Accepthttp header:
Accept: application/jsonAccept: application/xml
As you can see, this approach only works with json and xml.
/[xml|json|html|jsv|csv]/[reply|oneway]/[servicename]
Examples:
- /xml/[reply|oneway]/[servicename] will be XML
- /json/[reply|oneway]/[servicename] will be JSON
The SOAP endpoint only supports XML of course.
Tip: If you have forgotten the details about the specific endpoints, you can re-read this article
- 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