Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

1.There are four types of REST methods

  • connect
  • direct invocatons
  • event
  • incoming invocations

2. The connect method determines behavior of all other methods.
3. The connect method should return in the response only those data that it really received from WCS with an exception of the case when some field in the response should be explicitly overwritten or another status must be returned.
4. Other methods are recommended to return in the response only those data that they received with an exception of the case when some field in the response should be explicitly overwritten or another status must be returned.
5. All methods should return the 200 OK HTTP status with an exception of the case when another status should be explicitly returned, for example, 403 Forbidden.

Let’s review one method of each type (the remaining methods behave similarly within the corresponding type).

  • Type 1 - the connect method
  • Type 2 - the direct invoke
  • Type 3 - the event
  • Type 4 - the direct invocation