on 2019 May 03 8:26 AM
Hi,
I am able to successfully run odata service created on SAP HANA DB trial version, and perform GET, PUT, POST, DELETE operations on same.
Now, I am able to get list of all entities defined in any .xsodata file using /sampledata/sample.xsodata/$metadata (for instance).
But as per business requirement, I would like to know if there is any way I can get list of all odata services (xsodata files and its paths) defined on particular SAP HANA DB.
Thanks,
Asha
Request clarification before answering.
Ok, as you have mentioned in the comments that you are using XS Classic, you can find all (active) available xsodata services in your system by following query:
select package_id, object_name
from _sys_repo.active_object
where object_suffix = 'xsodata';
object_name is the service artifact name, package_id is the package id/path to the service.
In case you wanna expose that information, you can easily build your own odata service which provides that information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, above query works in case of SAP HCP trial account.
I have two more queries:
1) Does same query work when I use XS Advanced? If not can you also help me with the solution for same requirement on XS Advanced?
2) Also, when I run a query on _sys_repo.active_object , along with xsodata services that I had created, I get a huge list of services that is activated by _SYS_REPO which I do not want. So, is it safe to add a where clause as ACTIVATED_BY not like '_SYS_REPO';
User | Count |
---|---|
87 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.