ywkaras commented on a change in pull request #7478: URL: https://github.com/apache/trafficserver/pull/7478#discussion_r590837230
########## File path: doc/admin-guide/jsonrpc/index.en.rst ########## @@ -0,0 +1,1692 @@ +.. Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +.. include:: ../../common.defs + +.. highlight:: cpp +.. default-domain:: cpp + + + +.. |RPC| replace:: ``JSONRPC 2.0`` + +.. _JSONRPC: https://www.jsonrpc.org/specification +.. _JSON: https://www.json.org/json-en.html + +.. |str| replace:: ``string`` +.. |arraynum| replace:: ``array[number]`` +.. |arraynumstr| replace:: ``array[number|string]`` +.. |arraystr| replace:: ``array[string]`` +.. |num| replace:: *number* +.. |strnum| replace:: *string|number* +.. |object| replace:: *object* +.. |array| replace:: *array* +.. |optional| replace:: ``optional`` + +.. |arrayrecord| replace:: ``array[record]`` +.. |arrayerror| replace:: ``array[errors]`` + +.. _admin-jsonrpc: + +JSONRPC API +*********** + + + +.. _admin-jsonrpc-description: + +Description +=========== + +|TS| Implements and exposes management calls using a JSONRPC API. This API is base on the following two things: + +* `JSON <https://www.json.org/json-en.html>`_ format. Lightweight data-interchange format. It is easy for humans to read and write. + It is easy for machines to parse and generate. It's basically a collection of name/value pairs. + +* `JSONRPC 2.0 <https://www.jsonrpc.org/specification>`_ protocol. Stateless, light-weight remote procedure call (RPC) protocol. + Primarily this specification defines several data structures and the rules around their processing. + + +In order for programs to communicate with |TS|, the server exposes a ``JSONRRPC 2.0`` API where programs can communicate with it. + + + + +.. _admnin-jsonrpc-configuration: + +Configuration +============= + +The |RPC| server can be configured using the following configuration file. + + +.. note:: + + |TS| will start the |RPC| server without any need for configuration. + + +In case a special configuration is needed, the following describes the structure. Review comment: Might be clearer to say non-default rather than special. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
