Create separate rest commands file

I want to create a separate yaml file to store my rest commands. The below is what I added to my rests.yaml file. I added ‘rest_commands: !include rests.yaml’ to my config file.

my_first_command_url:
  url: 'url'

You have a typo, rest_command without “s”. It should be rest_command: !include rests.yaml. Also make sure rhe rests.yaml file is in the same directory as configuration.yaml.

Thank you. For whats in the rests.yaml file, do I need to name each one, or is my listing correct?

Edit: In testing under Development Tools, this works.