주요 콘텐츠

start

R2026b

Start REST function service from MATLAB

Since R2024a

    Description

    requestInfo = start(service) starts the service by generating the URL endpoint and returns a ClientRequestInfo object that contains information that clients need to use the service. This function updates the Status property of the RESTFunctionService object to running.

    example

    Examples

    collapse all

    Create a service to provide local clients access to functions myAdd, myMagic, and mySub.

    service = restFunctionService("myService",["myAdd" "myMagic" "mySub"]);

    Start the service.

    requestInfo = start(service)
    requestInfo =  
      ClientRequestInfo with properties 
       
                 ClientAccessMode: local 
                       RequestUrl: "https://localhost:9920/matlab/feval/v1/EL"
          RESTPersonalAccessToken: "AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyA="
              CertificateLocation: "<mwPath>\restfcnconnector\publickey.pem" 
    

    Input Arguments

    collapse all

    REST function service, specified as a RESTFunctionService object.

    Version History

    Introduced in R2024a