View | Details | Raw Unified | Return to bug 30070
Collapse All | Expand All

(-)a/Koha/Edifact/File.pm (+1 lines)
Lines 68-73 sub to_api_mapping { Link Here
68
    return {
68
    return {
69
        message_type => 'type',
69
        message_type => 'type',
70
        basketno     => 'basket_id',
70
        basketno     => 'basket_id',
71
        deleted      => undef,
71
    };
72
    };
72
}
73
}
73
74
(-)a/Koha/REST/V1/Acquisitions/Vendor/Edifact/Files.pm (-2 / +4 lines)
Lines 46-61 Return the list of edifact files Link Here
46
sub list {
46
sub list {
47
    my $c = shift->openapi->valid_input or return;
47
    my $c = shift->openapi->valid_input or return;
48
48
49
    my $filter = { deleted => 0 };
49
    return try {
50
    return try {
50
51
51
        my $files_rs = Koha::Edifact::Files->new;
52
        my $files_rs = Koha::Edifact::Files->search($filter);
52
        my $files    = $c->objects->search($files_rs);
53
        my $files    = $c->objects->search($files_rs);
53
54
54
        return $c->render(
55
        return $c->render(
55
            status  => 200,
56
            status  => 200,
56
            openapi => $files,
57
            openapi => $files,
57
        );
58
        );
58
    } catch {
59
    }
60
    catch {
59
        $c->unhandled_exception($_);
61
        $c->unhandled_exception($_);
60
    };
62
    };
61
}
63
}
(-)a/api/v1/swagger/definitions/edifact_file.yaml (-6 lines)
Lines 55-63 properties: Link Here
55
      - string
55
      - string
56
      - "null"
56
      - "null"
57
    description: Edifact file name
57
    description: Edifact file name
58
  deleted:
59
    type:
60
      - boolean
61
      - "null"
62
    description: Is this file deleted
63
additionalProperties: false
58
additionalProperties: false
64
- 

Return to bug 30070