func (c *ServiceClient) DeployService(
	ctx context.Context,
	req service.DeployServiceRequest,
) (service.DeployServiceResponse, error) {
	var res service.DeployServiceResponse
	if err := c.client.RequestAPI(&rpc.SimpleJsonDeserializer{
		O: &res,
	}, &req, c.session, Route{
		Method: "POST",
		Path:   "/v0/api/service/deploy",
	}); err != nil {
		return res, err
	}
	c.requests[res.ID] = &req
	return res, nil
}
DeployService deploys the specific service
package apitest
import (
	"bytes"
	"context"
	"encoding/json"
	"errors"
	"fmt"
	"io"
	"time"
	"github.com/google/uuid"
	"github.com/oasislabs/oasis-gateway/api/v0/service"
	"github.com/oasislabs/oasis-gateway/concurrent"
	"github.com/oasislabs/oasis-gateway/rpc"
)
type ServiceClient struct {
	client   *Client
	requests map[uint64]service.Request
	session  string
}
func NewServiceClient(router *rpc.HttpRouter) *ServiceClient {
	return &ServiceClient{
		client:   NewClient(router),
		requests: make(map[uint64]service.Request),
		session:  uuid.New().String(),
	}
}