TeskaLabs / seacat-auth

SeaCat Auth provides authentication, authorization, identity management, session management and other access control features.
GNU General Public License v3.0
11 stars 7 forks source link

Exclude selected resource types from resource list #196

Closed byewokko closed 1 year ago

byewokko commented 1 year ago

Changes

BREAKING The include_deleted and exclude_global_only parameters in GET /resource have been removed.

In resource list (GET /resource), resource types can be filtered using the exclude parameter, whose value is a CSV-style (comma-separated) list of the types to exclude from the results.

Supported types are active, deleted and globalonly.

If omittted or left empty, the parameter defaults to exclude=deleted, which means the results include all active resources.

Examples

List the first ten deleted resources: GET /resource?exclude=active&p=1&i=10

List all active resources without the global-only ones: GET /resource?exclude=deleted,globalonly