API:ServiceRegistry

From MCM Combat Operations
Jump to: navigation, search

Allows objects in SL to registers a URL as providing an HTTP service which the API server can use to access in-world functions.

URI: /serviceregistry

Requires:

  • SL Production
  • Restricted role

Example Request

POST http://testsu/mcm-api/serviceregistry HTTP/1.1
Content-Type: application/json
Authorization: Basic [Redacted]
X-SecondLife-Shard: Production
X-SecondLife-Region: The Forge
X-SecondLife-Object-Key: 1d4d0678-14b9-4667-b1db-44586cc564a3
X-SecondLife-Object-Name: MCM Meter Dispenser
X-SecondLife-Local-Position: (128.0, 128.0, 3930.0)

{
  "service" : "test",
  "url" : "http:\/\/example.com\/test"
}

-- response --
HTTP/1.1 200 OK
Date: Mon, 18 Jul 2022 02:16:43 GMT
Server: Apache
X-Powered-By: PHP/7.4.14
Content-Length: 18
Connection: close
Content-Type: text/html; charset=UTF-8

Service registered