Escape the REST API HTTP URL variable syntax.

This commit is contained in:
John Blum
2020-02-21 15:42:00 -08:00
parent 61b2e82396
commit cba67e9a8c
3 changed files with 8 additions and 8 deletions

View File

@@ -438,10 +438,10 @@ containing the following web service endpoints:
|===
| REST API call | Description
| / | Returns the home page. Defaults to `/ping`.
| /ping | Heartbeat endpoint returning "PONG".
| /calculator/factorial/{number} | Computes the _factorial_ of the `number`.
| /calculator/sqrt/{number} | Computes the _square root_ of the `number`.
| `/` | Returns the home page. Defaults to `/ping`.
| `/ping` | Heartbeat endpoint returning "PONG".
| `/calculator/factorial/\{number}` | Computes the _factorial_ of the `number`.
| `/calculator/sqrt/\{number}` | Computes the _square root_ of the `number`.
|===

View File

@@ -219,9 +219,9 @@ endpoints, accessible by URL using HTTP:
| URL | Description
| `/ping` | Heartbeat request to test that our application is alive and running.
| `/counter/{name}` | Increments the "named" counter.
| `/counter/{name}/cached` | Returns the current, cached count for the "named" counter.
| `/counter/{name}/reset` | Resets the count for the "named" counter.
| `/counter/\{name}` | Increments the "named" counter.
| `/counter/\{name}/cached` | Returns the current, cached count for the "named" counter.
| `/counter/\{name}/reset` | Resets the count for the "named" counter.
|===

View File

@@ -714,7 +714,7 @@ for accessing the CRM application via a Web client (e.g. Web browser).
| GET `/home` | Returns description of the application.
| GET `/ping` | Heartbeat request to test that the application is alive and running.
| GET `/customers` | Returns a list of all Customers.
| GET `/customers/{name}` | Returns the named Customer.
| GET `/customers/\{name}` | Returns the named Customer.
| POST `/customers` | Accepts JSON and creates a new Customer.
|===