]> git.koha-community.org Git - koha.git/commit
Bug 14868: Swagger2-driven Permission checking
authorOlli-Antti Kivilahti <olli-antti.kivilahti@jns.fi>
Mon, 14 Sep 2015 12:20:20 +0000 (15:20 +0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 2 Sep 2016 12:20:35 +0000 (12:20 +0000)
commitac1286dacdf92239ee91bf7932356adca7c486d2
tree77c8b37bb591ffd12e86b1866c48ec2f50772a17
parent49df1cc10f45c1e7d9b15808a302df2a67dbb876
Bug 14868: Swagger2-driven Permission checking

Define 'x-koha-permission' for the Swagger2 Operation Object, to automatically
authorize against the required permissions.

This way we immediately tell the API consumer in the Swagger2-definition, which
permissions are needed to access defined resources.
Also we don't need to maintain permissions in multiple locations and we can build
a smart testing framework to help a lot in creating tests for the new REST API.

Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/REST/V1.pm
api/v1/swagger/swagger.json