Hypermedia-Driven API
The GreetIncs API implements HATEOAS (Hypermedia as the Engine of Application State). Every response includes alinks array that tells you what actions are available and where related resources live.
Response Structure
All responses follow this structure:Link Properties
| Property | Description |
|---|---|
href | The URL path to the related resource |
rel | The relationship type (e.g., self, next, prev, status, results) |
method | The HTTP method to use |
title | Human-readable description of the action |
Common Relationships
| Relationship | Meaning |
|---|---|
self | The current resource |
next | Next page in paginated results |
prev | Previous page in paginated results |
status | Check the status of an async operation |
results | Retrieve completed results |
related | Associated resources |
Benefits
No URL Hardcoding
Follow links instead of constructing URLs manually.
Discoverable Actions
The API tells you what you can do next.
Future-Proof
URL changes won’t break your integration.
Self-Documenting
Links include titles explaining each action.
Pagination Example
List endpoints return pagination links:next link to get the next page—no need to calculate offsets yourself.