This commit is contained in:
Hivert Quentin
2024-04-18 17:24:29 +02:00
parent 077ba07314
commit fcb688723f
10 changed files with 306 additions and 16 deletions

View File

@@ -7,16 +7,35 @@
@implementation SOGoAPI
- (NSDictionary *) sogoVersionAction {
NSDictionary* result;
- (id) init
{
[super init];
result = [[NSDictionary alloc] initWithObjectsAndKeys:
@"major", SOGO_MAJOR_VERSION,
@"minor", SOGO_MINOR_VERSION,
@"patch", SOGO_PATCH_VERSION,
nil];
[result autorelease];
return result;
return self;
}
- (void) dealloc
{
[super dealloc];
}
- (NSArray *) methodAllowed
{
NSArray *result;
result = [NSArray arrayWithObjects:@"GET",nil];
return result;
}
- (NSDictionary *) action
{
NSDictionary* result;
result = [[NSDictionary alloc] initWithObjectsAndKeys:
@"API not defined", @"error",
nil];
[result autorelease];
return result;
}