Skip to content

Commit

Permalink
Remove sort example from simple query language (236) (#804)
Browse files Browse the repository at this point in the history
The `sort=id:desc` example doesn't fit the "equality comparison for a logical property".

It also leads to confusion on how to indicate how the result should be sorted (rule 137 says `sort=-id`).

This replaces it with another "logical property", the age (which is often calculated from the birthday and current date).
  • Loading branch information
ePaul committed Apr 16, 2024
1 parent cc8d31d commit 0655968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/http-requests.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ The following examples should serve as ideas for simple query language:

* `name=Zalando`, `creation_year=2023`, `updated_by=user1` (query elements
based on property equality)
* `created_at=2023-09-18T12:12:00.000Z`, `sort=id:desc` (query elements
* `created_at=2023-09-18T12:12:00.000Z`, `age=18` (query elements
based on logical properties)
* `color=red,green,blue,multicolored` (query elements based on multiple
choice possibility)
Expand Down

0 comments on commit 0655968

Please sign in to comment.