Required role: | Admin |
All Verbs | /admin/technology/{TechnologyId}/logo |
---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TechStacks.ServiceModel
Imports TechStacks.ServiceModel.Types
Namespace Global
Namespace TechStacks.ServiceModel
Public Partial Class LogoUrlApproval
Implements IPut
Public Overridable Property TechnologyId As Long
Public Overridable Property Approved As Boolean
End Class
Public Partial Class LogoUrlApprovalResponse
Public Overridable Property Result As Technology
End Class
End Namespace
Namespace TechStacks.ServiceModel.Types
Public Partial Class Technology
Inherits TechnologyBase
End Class
Public Partial Class TechnologyBase
Public Overridable Property Id As Long
Public Overridable Property Name As String
Public Overridable Property VendorName As String
Public Overridable Property VendorUrl As String
Public Overridable Property ProductUrl As String
Public Overridable Property LogoUrl As String
Public Overridable Property Description As String
Public Overridable Property Created As Date
Public Overridable Property CreatedBy As String
Public Overridable Property LastModified As Date
Public Overridable Property LastModifiedBy As String
Public Overridable Property OwnerId As String
Public Overridable Property Slug As String
Public Overridable Property LogoApproved As Boolean
Public Overridable Property IsLocked As Boolean
Public Overridable Property Tier As TechnologyTier
Public Overridable Property LastStatusUpdate As Date?
Public Overridable Property OrganizationId As Integer?
Public Overridable Property CommentsPostId As Long?
Public Overridable Property ViewCount As Integer
Public Overridable Property FavCount As Integer
End Class
Public Enum TechnologyTier
ProgrammingLanguage
Client
Http
Server
Data
SoftwareInfrastructure
OperatingSystem
HardwareInfrastructure
ThirdPartyServices
End Enum
End Namespace
End Namespace
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.
POST /admin/technology/{TechnologyId}/logo HTTP/1.1
Host: techstacks.io
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"technologyId":0,"approved":false}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"result":{"id":0,"name":"String","vendorName":"String","vendorUrl":"String","productUrl":"String","logoUrl":"String","description":"String","created":"0001-01-01T00:00:00.0000000","createdBy":"String","lastModified":"0001-01-01T00:00:00.0000000","lastModifiedBy":"String","ownerId":"String","slug":"String","logoApproved":false,"isLocked":false,"tier":"ProgrammingLanguage","lastStatusUpdate":"0001-01-01T00:00:00.0000000","organizationId":0,"commentsPostId":0,"viewCount":0,"favCount":0}}