Skip to content

Instantly share code, notes, and snippets.

@danhalliday
Created February 10, 2025 19:02
Show Gist options
  • Save danhalliday/26264139a8e1f4d2ad51111885f04215 to your computer and use it in GitHub Desktop.
Save danhalliday/26264139a8e1f4d2ad51111885f04215 to your computer and use it in GitHub Desktop.
What do you think about this endpoint?
GET /users/connected=true
[{
first_name: "John",
family_name: "Smith",
Birthday: "2001-04-12T09:20:32.000+01:00"
}]
@Dark-Coders1
Copy link

The endpoint is functional but could be improved. The naming conventions and date format should be standardized, and the query parameter (connected=true) should be moved to the query string for better RESTful practices. Additionally, consider adding pagination or metadata for scalability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment