Description:
Adds an endpoint api call to your generated API service with optional endpoint method and endpoint helper method parameters --include-helper-params: Will copy the --method-params given to your endpoint helper method to use in your endpoint URI path
Example:
rails generate endpoint ServiceName version EndpointName --endpoint /endpoint/#{param1}/#{param2} --endpoint-params param1 param2 --include-helper-params Simple Form: rails generate endpoint ServiceName V1 EndpointName This will create: app/services/ServiceName/version/api_call/endpoint_name.rb with the endpoint being /v1/ if no endpoint is given This will modify: app/services/ServiceName/version/api_endpoints.rb app/services/ServiceName/version/endpoint_helpers.rb