| GET | /feature/{CompanyId} | Get feature flags for a company | Returns all active feature flags resolved for the given company, including the company override where applicable. Public — no authentication required. |
|---|
import Foundation
import ServiceStack
// @ApiResponse(Description="Returned if the company was not found", StatusCode=404)
public class GetCompanyFeatureFlags : ICompany, Codable
{
/**
* The company id.
*/
// @ApiMember(Description="The company id.", IsRequired=true, ParameterType="path")
public var companyId:String?
required public init(){}
}
public class AccessKeyTypeResponse : Codable
{
public var id:Int
public var keyType:String
public var Description:String
required public init(){}
}
Swift GetCompanyFeatureFlags 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 /feature/{CompanyId} HTTP/1.1
Host: api.bokamera.se
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Offset: 0,
Total: 0,
Results:
[
{
Id: 0,
Name: String,
IsEnabled: False,
IsPublic: False,
CompanyAdminCanToggle: False,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}
],
Meta:
{
String: String
},
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}