| Conformance URI | Title |
|---|---|
| http://www.opengis.net/spec/ogcapi-common-1/1.0/req/json | Open GeoSpatial Consortium API Commons - Part 1: JSON |
Part 1 of The OGC API Common version 1.0 Specification outlines requirements for encoding types. One of the recommended encoding types is JSON (JavaScript Object Notation) for relaying information to a machine reader. The documentation for the Greeting Service is provided in a JSON format. The intent is to aid developers with the use of common tools to integrate the API into their application.
The retrieve method also returns a personalized greeting in a JSON format.
Developers can uses the greetings endpoint to craft a personalized greeting that they could use in their application.
For example:
World greeting:
HTTP GET: https://greeting.i7es.click/retrieve
HTTP 200 Response: {"greeting": "Hello World!"}
Personalized greeting:
HTTP GET: https://greeting.i7es.click/retrieve/Jim
HTTP 200 Response: {"greeting": "Hello Jim!"}
To learn more, read the core requirement for JSON in Part 1 of the OGC API Common Specification.