{"action":"created","issue":{"url":"https://api.github.com/repos/kadirahq/mantra/issues/32","labels_url":"https://api.github.com/repos/kadirahq/mantra/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/kadirahq/mantra/issues/32/comments","events_url":"https://api.github.com/repos/kadirahq/mantra/issues/32/events","html_url":"https://github.com/kadirahq/mantra/issues/32","id":128149785,"number":32,"title":"naming convention","user":{"login":"smeijer","id":1196524,"avatar_url":"https://avatars.githubusercontent.com/u/1196524?v=3","gravatar_id":"","url":"https://api.github.com/users/smeijer","html_url":"https://github.com/smeijer","followers_url":"https://api.github.com/users/smeijer/followers","following_url":"https://api.github.com/users/smeijer/following{/other_user}","gists_url":"https://api.github.com/users/smeijer/gists{/gist_id}","starred_url":"https://api.github.com/users/smeijer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smeijer/subscriptions","organizations_url":"https://api.github.com/users/smeijer/orgs","repos_url":"https://api.github.com/users/smeijer/repos","events_url":"https://api.github.com/users/smeijer/events{/privacy}","received_events_url":"https://api.github.com/users/smeijer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-22T12:44:29Z","updated_at":"2016-01-22T13:12:31Z","closed_at":null,"body":"There is a part written about naming convention for publications:\r\n\r\n> When naming publications and methods, they should follow this naming convention:\r\n> \r\n>     [filename].[name]\r\n> For example, if we need to create a method called create inside the posts file, we name it `posts.create`.\r\n\r\nLooking at the `sample-blog-app`, I can find the publications: `posts.list`, `posts.single` and `posts.comments`. All pretty obvious. But what will the naming convention be for more specific actions. Like publish all posts for one author?\r\n\r\n* `posts.by-author`\r\n* `posts.list-by-author`\r\n* `posts.list_by_author`\r\n* `posts.listByAuthor`\r\n* `posts.forAuthor` \r\n* `posts.list.author`\r\n\r\nIs there a suggestion for this edge-case? I think my favorite would be `posts.list-by-author`. (Only not sure if we should do `list-by-author` or `list-for-author`. But that's more a grammar thing)."},"comment":{"url":"https://api.github.com/repos/kadirahq/mantra/issues/comments/173916965","html_url":"https://github.com/kadirahq/mantra/issues/32#issuecomment-173916965","issue_url":"https://api.github.com/repos/kadirahq/mantra/issues/32","id":173916965,"user":{"login":"achtan","id":1048212,"avatar_url":"https://avatars.githubusercontent.com/u/1048212?v=3","gravatar_id":"","url":"https://api.github.com/users/achtan","html_url":"https://github.com/achtan","followers_url":"https://api.github.com/users/achtan/followers","following_url":"https://api.github.com/users/achtan/following{/other_user}","gists_url":"https://api.github.com/users/achtan/gists{/gist_id}","starred_url":"https://api.github.com/users/achtan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achtan/subscriptions","organizations_url":"https://api.github.com/users/achtan/orgs","repos_url":"https://api.github.com/users/achtan/repos","events_url":"https://api.github.com/users/achtan/events{/privacy}","received_events_url":"https://api.github.com/users/achtan/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T13:12:31Z","updated_at":"2016-01-22T13:12:31Z","body":"i'am for camelCase so `posts.listByAuthor`. It's easier to write than other alternatives with `-`, `_` or `.`"}}