nextcloud / openapi-extractor

A tool for extracting OpenAPI specifications from Nextcloud source code
https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-openapi.html
GNU Affero General Public License v3.0
7 stars 2 forks source link

Add more status codes #35

Closed nickvergessen closed 11 months ago

nickvergessen commented 11 months ago

These are all missing codes I found in default/supported apps

provokateurin commented 11 months ago

LGTM, but could you maybe add all the ones found in https://github.com/nextcloud/server/blob/master/lib/public/AppFramework/Http.php while you are at it?

I wonder if there is a smarter way to do this, maybe by adding OCP as a dependency and iterating all the constants?

nickvergessen commented 11 months ago

maybe by adding OCP as a dependency and iterating all the constants?

The nextcloud/OCP package could be handy with that. Then again, if we wouldn't look at strings but PHP code that'd be much simpler, same with all the other type things 🙈

nickvergessen commented 11 months ago

Added all by copy-pasting the block and then replacing: