| Requires any of the roles: | bookingsupplier-administrator-write, bookingsupplier-administrator-read, superadmin |
| GET | /settings/changelog/types | Get distinct settings types from the change log | Returns a list of all distinct settings types that have been logged for the company. Useful for populating filter dropdowns. |
|---|
import 'package:servicestack/servicestack.dart';
// @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)
// @ApiResponse(Description="You have too low privileges to call this service", StatusCode=403)
// @ValidateRequest(Validator="IsAuthenticated")
class SettingsChangeLogTypesQuery implements ICompany, IConvertible
{
/**
* The company id, if empty will use the company id for the user you are logged in with.
*/
// @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.", ParameterType="query")
String? CompanyId;
SettingsChangeLogTypesQuery({this.CompanyId});
SettingsChangeLogTypesQuery.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CompanyId = json['CompanyId'];
return this;
}
Map<String, dynamic> toJson() => {
'CompanyId': CompanyId
};
getTypeName() => "SettingsChangeLogTypesQuery";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: <String, TypeInfo> {
'SettingsChangeLogTypesQuery': TypeInfo(TypeOf.Class, create:() => SettingsChangeLogTypesQuery()),
});
Dart SettingsChangeLogTypesQuery DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /settings/changelog/types HTTP/1.1 Host: testapi.bokamera.se Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ArrayOfSettingsChangeLogTypeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos">
<SettingsChangeLogTypeResponse>
<SettingsType>String</SettingsType>
</SettingsChangeLogTypeResponse>
</ArrayOfSettingsChangeLogTypeResponse>