GET | /user/{userid}/commoditycode |
---|
namespace Portal.ServiceDto
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type ResponseBase() =
member val ResponseStatus:ResponseStatus = null with get,set
[<AllowNullLiteral>]
type CommodityCodeSimple() =
member val Id:Int32 = new Int32() with get,set
member val CategoryCode:String = null with get,set
member val CategoryName:String = null with get,set
member val SubCategoryCode:String = null with get,set
member val SubCategoryName:String = null with get,set
member val MainCategoryCode:String = null with get,set
member val MainCategoryName:String = null with get,set
[<AllowNullLiteral>]
type ApplicationUserCommodityCodeSimple() =
inherit CommodityCodeSimple()
member val CommodityCodeId:Int32 = new Int32() with get,set
member val UserCommodityCodeId:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type BrowseAllApplicationUserCommodityCodeResponse() =
inherit ResponseBase()
member val CommodityCodes:ResizeArray<ApplicationUserCommodityCodeSimple> = new ResizeArray<ApplicationUserCommodityCodeSimple>() with get,set
[<AllowNullLiteral>]
type BrowseAllApplicationUserCommodityCode() =
interface IGet
member val UserId:Int32 = new Int32() with get,set
F# BrowseAllApplicationUserCommodityCode DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /user/{userid}/commoditycode HTTP/1.1 Host: szallitoiportal-be.veolia.hu Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"CommodityCodes":[{"CommodityCodeId":0,"UserCommodityCodeId":0,"Id":0,"CategoryCode":"String","CategoryName":"String","SubCategoryCode":"String","SubCategoryName":"String","MainCategoryCode":"String","MainCategoryName":"String"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}