# Microservice SDK (java) best way to call unsupperted but available REST endpoints

**URL:** <https://community.cumulocity.com/t/microservice-sdk-java-best-way-to-call-unsupperted-but-available-rest-endpoints/7747>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [March 2, 2023, 8:04am UTC](https://community.cumulocity.com/t/microservice-sdk-java-best-way-to-call-unsupperted-but-available-rest-endpoints/7747 "2023-03-02T08:04:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Korbinian\_Butz](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/korbinian_butz/32/10473_2.png) [@Korbinian\_Butz](https://community.cumulocity.com/u/Korbinian_Butz)\
**Post date:** [March 2, 2023, 8:22am UTC](https://community.cumulocity.com/t/microservice-sdk-java-best-way-to-call-unsupperted-but-available-rest-endpoints/7747/2 "2023-03-02T08:22:48Z")

</div>

Can only comment on your first question…

> Where is the best way to get the different parts of the url?

The platform URL should be available as environment variable C8Y\_BASEURL.

See [here](https://cumulocity.com/guides/microservice-sdk/concept/#authentication-and-authorization): “[…]The Cumulocity IoT exposes the REST endpoint /user/currentUser. The microservice retrieves the Cumulocity IoT address from the `C8Y_BASEURL` operating system environment variable.”

---

_[View the full topic](https://community.cumulocity.com/t/microservice-sdk-java-best-way-to-call-unsupperted-but-available-rest-endpoints/7747)._
