![見出し画像](https://assets.st-note.com/production/uploads/images/117969738/rectangle_large_type_2_fd8ee901d64b39d3e3cc7f2412637358.jpeg?width=1200)
URL format Rule for API
Rule: Use hyphens (-) in URLs to improve readability
Example:
Good: https://api.example/this-is-my-first-post
Bad: https://api.example/thisismyfirstpost
Rule: Should use hyphen (-) to improve readability
Example:
Good: https://api.example/this-is-my-forst-post Bad: https://api.example/thisismyforstpost
Rule: Should not use underscore (-) in URLs.
Example:
Good: https://api.example/this_is_my_forst_post
Rule: lowercase letters should be preferred in URLs
Example:
Good: https://api.example/this-is-my-forst-post
Bad: https://api.example/This-Is-My-Forst-Post
Rule: File extension should not be included in URLs
Example:
Good: https://api.example/this-is-my-forst-post
Bad: https://api.example/This-Is-My-Forst-Post/post.json