danielmarschall / oidplus

OIDplus 2.0 - An OpenSource online Registration Authority for OIDs and other Object Types
https://www.oidplus.com
Apache License 2.0
10 stars 6 forks source link

REST API documentation via OpenAPI #13

Open danielmarschall opened 1 year ago

danielmarschall commented 1 year ago

There should be an OpenAPI documentation that is automatically generated from the restApiInfo() methods of the plugins. I don't have the time to study the OpenAPI specification, so maybe someone can help me with this task? Thank you very much!

wehowski commented 1 year ago

Hello Daniel, as I know you are not a big friend of libraries/dependencies. Although I suggest to take a look at https://github.com/cebe/php-openapi#writing-api-description-files Maybe this helps?

I m not sure if I can promise any help, have to read the spec first ...

MarieSnajderova commented 3 months ago

Hello, Do you still working on that project and need API documentation? I would like to try working with API documentation. Maybe it will help and could contribute to your project. Marie

danielmarschall commented 3 months ago

Hello, thank you very much for that offer! Yes, I still need help with the documentation. The current documentation is written in plain text, but it would be good if it could follow the OpenAPI specification (which is a bit too complex for me at the moment).

MarieSnajderova commented 3 months ago

Could you please send me the documentation in plain text. I will try to write API specification based on that.

danielmarschall commented 3 months ago

Hello,

the field list is like this:

Please note that the fields are not actually described (I can do that later). My main issue is the OpenAPI data structure. If you could do this, then I can easily edit the explanations of the fields later. Thank you very much.

Azuris2 commented 3 months ago

Hi Marie,

Are you in the midst of working on this?

Hi Daniel,

Just to clarify - would the response for the endpoints be a JSON/XML object containing the output parameters as key value pairs?

danielmarschall commented 3 months ago

Hello, yes, it is a REST interface with the result being a JSON object. The "value" can be an array, not just a string.