Skip to content

ALL ApiScope #190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jan 1, 2024
Merged

ALL ApiScope #190

merged 14 commits into from
Jan 1, 2024

Conversation

bigcat88
Copy link
Member

@bigcat88 bigcat88 commented Dec 31, 2023

Added ALL ApiScope to allow the use of OCS Apis that we have not yet defined in the AppAPI.

Also with help of 993a111 AppAPI now correctly returns status 401 instead of 996 for Controllers protected by AppAPIAuth attribute.

@bigcat88 bigcat88 requested a review from andrey18106 January 1, 2024 10:38
@bigcat88 bigcat88 enabled auto-merge (squash) January 1, 2024 13:45
@bigcat88 bigcat88 merged commit a8863df into main Jan 1, 2024
@bigcat88 bigcat88 deleted the scope-ALL branch January 1, 2024 13:51
bigcat88 added a commit to cloud-py-api/nc_py_api that referenced this pull request Jan 1, 2024
This code were not working:

```python3
nc.ocs("GET", "/ocs/v2.php/core/whatsnew")
```

this PR fixes it, for OCS that return `Http::STATUS_NO_CONTENT` we
return empty list.

In addition added `ALL` API scope, ref: nextcloud/app_api/pull/190

Previous commit:
8fd175a
was added fast to just implement `ALL` API scope tests in AppAPI repo.

---------

Signed-off-by: Alexander Piskun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants