It is common to be explicit and consistent about whether or not to have a trailing slack on each API path
OpenAPI No Path Trailing Slash Info
Message: Path Trailing Slash
Policies
Path Names
Path naming is one of those things that reveals how much thought went into an API's design. No version numbers in paths, no trailing slashes, no 'api' prefix -- clean paths show discipline.
Path Trailing Slashes
Trailing slashes on API paths cause more problems than people realize. Some tools treat /users and /users/ as different resources. Keeping paths clean prevents routing and caching issues.
URL Structure
URL structure is one of the most visible parts of API design. Plural nouns, proper casing, no verbs in paths, and reasonable nesting depth create URLs that are intuitive and consistent across all A...