| GET | /api/v1/products/{ProductId} |
|---|
namespace Pecuario.Backend.Application.DTOs
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type Status() =
member val Message:String = null with get,set
member val StatusCode:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type BaseResponse() =
member val Status:Status = null with get,set
[<AllowNullLiteral>]
type DetailRow() =
member val Order:Int32 = new Int32() with get,set
member val TextType:String = null with get,set
member val Text:String = null with get,set
[<AllowNullLiteral>]
type ProductDetails() =
member val Id:String = null with get,set
member val Date:String = null with get,set
member val Images:ResizeArray<String> = new ResizeArray<String>() with get,set
member val DetailRows:ResizeArray<DetailRow> = new ResizeArray<DetailRow>() with get,set
member val ContactEnabled:Boolean = new Boolean() with get,set
member val ContactLink:String = null with get,set
member val PriceType:String = null with get,set
member val Price:String = null with get,set
[<AllowNullLiteral>]
type GetProductDetailsResponse() =
inherit BaseResponse()
member val Details:ProductDetails = null with get,set
[<AllowNullLiteral>]
type GetProductDetails() =
interface IGet
member val ProductId:String = null with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/v1/products/{ProductId} HTTP/1.1
Host: pecuario-backend.develsystems.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"details":{"id":"String","date":"String","images":["String"],"detailRows":[{}],"contactEnabled":false,"contactLink":"String","priceType":"String","price":"String"}}