I've setup swagger docs for SAP Gateway services using https://inspector.swagger.io/builder and https://app.swaggerhub.com/
However, the free plan is very limited (3 Public API's), plus the URL is set at app.swaggerhub.com.
Is there any way the Swagger doc be generated in SAP using the same URL as the Gateway service?
Request clarification before answering.
Please check out: ABAP OpenAPI UI v1 released! from 8d8214c7f9734f45be69f95cc0d5aeee. I found it using https://cse.google.com/cse?cx=013447253335410278659:k8ob9ipscwg&q=open+api+gateway
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please file an incident with details at https://gitlab.com/geertjanklaps/abap-openapi-ui/-/issues. Maybe you haven't activated the SICF service? Have you checked the developer tools in your browser?
I agree with Gregor, looks like the odata service is not active (don't think that gets activated automatically when importing the solution).
Did you try using a service that was already activated in your system? If not, feel free to log an issue in the gitlab repository. (be sure to mention as much information as possible, like system release, e.g. screenshots of the ST22 dump if there are any, ....)
If you find the solution to your problem and are able to solve it by changing the code, pull requests are always appreciated!
Checked ST22 and the error is:
Error in the ABAP application program.
The current ABAP program “ZCL_GW_OPENAPI================CP” had to be
terminated because it found a
statement that could not be executed.
In include “ZCL_GW_OPENAPI_METADATA_V2====CM005 “, in line 99 of program
“ZCL_GW_OPENAPI_METADATA_V2====CP “, the following syntax errors
have occurred:
Method “SET_METADATA_ACCESS_INFO” is unknown or PROTECTED or PRIVATE.
This is in line 99 of the _READ_METADATA method of ZCL_GW_OPENAPI_METADATA_V2
* Initialize metadata access
lo_transaction_handler->set_metadata_access_info(
iv_load_last_modified_only = abap_false
iv_is_busi_data_request = abap_false
iv_do_cache_handshake = abap_true ).
Line 88 sets up lo_transaction_hander…
* Initialize NetWeaver Gateway transaction handler
DATA(lo_transaction_handler) = /iwfnd/cl_transaction_handler=>get_transaction_handler( ).
The issue is set_metadata_access_info isn’t defined as a method.
Is there a workaround?
Netweaver Version: 7.5 SP05
I'll also raise an issue in Gitlab
Ok, directly with SAP tools there is no option yet (to my knowledge). But there exists the odata-openapi tooling which allows you the conversion of OData v4 metadata to an OpenAPI v3 (or v2) file.
If you have OData v2 metadata, this will be converted first to OData v2 and then to OpenAPI automatically.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.