dehaze

Adding Remote Service

Follow the steps below to add a remote service to Space Cloud:

Step 1: Write a custom HTTP server

You first need to create your custom HTTP server and deploy it. You can write this server in any language or framework of your choice.

Note: The custom logic that you want to access via Space Cloud should only go in POST handlers.

Step 2: Add remote service

Head to the Remote Services section in Mission Control.

Click on the Add button to open the following form:

Add service screen

You need to enter the following information:

  • Service name: Used in your frontend queries to uniquely identify a service. This name should be unique within a project.
  • Remote URL: The URL of your remote service.

Click on the Add button to add the remote service.

Once you have added the remote service, you should be able to see it the remote services table:

Services table

Step 3: Add endpoint to your remote service

Click on the View button in the Actions column to open the service page.

Click on the Add button to add an endpoint to your remote service:

Add endpoint screen

You need to enter the following information:

  • Name: Used in your frontend queries along with the service name to uniquely identify an endpoint. This name should be unique within a service.
  • Path: Endpoint for your custom logic. Space Cloud makes a POST request to the endpoint formed by Service URL + Path.
  • Rules: These are the security rules for your endpoint. Read more about security here.

Have a technical question?

Improve the docs!