You shouldn't have to know those two endpoints as a client! That's one of the basic principles of REST, your resources should be discoverable.
Knowing the endpoint at https://50281ac6-ece9-42d3-9590-8e3325f50bd9.mock.pstmn.io/
your users should be able to navigate through the API using hypermedia. In practice this means that your entrypoint returns links to other related resources. Thus you should have something like this;
GET https://50281ac6-ece9-42d3-9590-8e3325f50bd9.mock.pstmn.io/
{
"self": {
"type": "link.list",
"uri": "/",
"href": "https://50281ac6-ece9-42d3-9590-8e3325f50bd9.mock.pstmn.io/"
},
"links": [
{
"rel": "film",
"type": "link.list",
"href": "https://https://50281ac6-ece9-42d3-9590-8e3325f50bd9.mock.pstmn.io/spaceballs"
}
]
}
The above response tells the client that the current URI is a list of links and there is a link (called "film") to another resource at host/spaceballs and that resource is also a list of links. Using this information the client can call that API;
GET https://50281ac6-ece9-42d3-9590-8e3325f50bd9.mock.pstmn.io/spaceballs
{
"self": {
"type": "link.list",
"uri": "/spaceballs",
"href": "https://50281ac6-ece9-42d3-9590-8e3325f50bd9.mock.pstmn.io/spaceballs"
},
"links": [
{
"rel": "quote",
"type": "film.quote",
"href": "https://https://50281ac6-ece9-42d3-9590-8e3325f50bd9.mock.pstmn.io/spaceballs/raspberry"
},
{
"rel": "quote",
"type": "film.quote",
"href": "https://https://50281ac6-ece9-42d3-9590-8e3325f50bd9.mock.pstmn.io/spaceballs/technician"
}
]
}
You have now used hypermedia to describe the state of your application and are on your way to writing a REST API! This is really, really important point. Descriptive links such as these are not a "nice to have" - they are required. If your API doesn't work like this it isn't REST.