nambrot / rspec-api-blueprint-formatter

Auto-generate API docs from your RSpec tests!
MIT License
55 stars 10 forks source link

Properly handle http method-only action names ('GET', 'POST' etc) #6

Closed GregPK closed 7 years ago

GregPK commented 7 years ago

When defining action names according to the specs, we should be able to define:

## <HTTP request method>  --- this fails
## <identifier> [<HTTP request method>] --- works properly
## <identifier> [<HTTP request method> <URI template>] --- works properly

This PR fixes the first case.

GregPK commented 7 years ago

I've tested this on a pretty large production doc database and seems to work properly - will merge.