Natick, MA: The MathWorks, Inc., 2021. — 94 p
API-интерфейс RESTful MatLAB Production Server для выполнения функции MatLAB позволяет вам оценивать функции MatLAB на удаленных серверах, используя JSON-представление типов данных MatLAB и буферов протокола. Поддержка буфера протокола доступна только в клиентских API Java и .NET.
The MatLAB Production Server RESTful API for MatLAB function execution enables you to evaluate MatLAB functions on remote servers using JSON representation of MatLAB data types and protocol buffers. Protocol buffer support is available only in the Java and .NET client APIs.
You can write client code that uses the MatLAB Production Server RESTful API in web-based languages such as JavaScript and embed it in HTML pages. You can then use these web pages to send requests and retrieve responses from a MatLAB Production Server instance. While web-based applications may be more amenable to client code written in JavaScript, you can use any HTTP supported programming language such Java, Python, C++, .NET, and many others to develop client applications.
If client programs make requests from different domains, programmers using JavaScript must verify whether Cross-Origin Resource Sharing (CORS) is enabled on the server. To enable CORS on the server, the server administrator must set the appropriate value for the cors-allowed-origins property in the main_config server configuration file.
Client Programming
JSON Representation of MatLAB Data Types
Troubleshooting RESTful API Errors
Examples: RESTful API and JSON
RESTful APIs