| GET | /technology/{Slug}/previous-versions |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using TechStacks.ServiceModel;
using TechStacks.ServiceModel.Types;
namespace TechStacks.ServiceModel
{
public partial class GetTechnologyPreviousVersions
: IGet
{
public virtual string Slug { get; set; }
}
public partial class GetTechnologyPreviousVersionsResponse
{
public virtual List<TechnologyHistory> Results { get; set; }
}
}
namespace TechStacks.ServiceModel.Types
{
public partial class TechnologyBase
{
public virtual long Id { get; set; }
public virtual string Name { get; set; }
public virtual string VendorName { get; set; }
public virtual string VendorUrl { get; set; }
public virtual string ProductUrl { get; set; }
public virtual string LogoUrl { get; set; }
public virtual string Description { get; set; }
public virtual DateTime Created { get; set; }
public virtual string CreatedBy { get; set; }
public virtual DateTime LastModified { get; set; }
public virtual string LastModifiedBy { get; set; }
public virtual string OwnerId { get; set; }
public virtual string Slug { get; set; }
public virtual bool LogoApproved { get; set; }
public virtual bool IsLocked { get; set; }
public virtual TechnologyTier Tier { get; set; }
public virtual DateTime? LastStatusUpdate { get; set; }
public virtual int? OrganizationId { get; set; }
public virtual long? CommentsPostId { get; set; }
public virtual int ViewCount { get; set; }
public virtual int FavCount { get; set; }
}
public partial class TechnologyHistory
: TechnologyBase
{
public virtual long TechnologyId { get; set; }
public virtual string Operation { get; set; }
}
public enum TechnologyTier
{
ProgrammingLanguage,
Client,
Http,
Server,
Data,
SoftwareInfrastructure,
OperatingSystem,
HardwareInfrastructure,
ThirdPartyServices,
}
}
C# GetTechnologyPreviousVersions DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /technology/{Slug}/previous-versions HTTP/1.1
Host: techstacks.io
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
results:
[
{
technologyId: 0,
operation: String,
id: 0,
name: String,
vendorName: String,
vendorUrl: String,
productUrl: String,
logoUrl: String,
description: String,
created: 0001-01-01,
createdBy: String,
lastModified: 0001-01-01,
lastModifiedBy: String,
ownerId: String,
slug: String,
logoApproved: False,
isLocked: False,
tier: ProgrammingLanguage,
lastStatusUpdate: 0001-01-01,
organizationId: 0,
commentsPostId: 0,
viewCount: 0,
favCount: 0
}
]
}