Permalink
Browse files

Expose /release/find-by-artist

  • Loading branch information...
1 parent 1365d30 commit 64f8098ac8fee01c54da094941176d679f503a5e @ocharles ocharles committed Mar 4, 2013
Showing with 8 additions and 1 deletion.
  1. +1 −1 musicbrainz-data
  2. +5 −0 src/MusicBrainz/API/Release.hs
  3. +1 −0 src/MusicBrainz/Service.hs
  4. +1 −0 test/suite/Handlers.hs
@@ -134,3 +134,8 @@ viewMediums = runApi $ MB.viewMediums <$> setOf revisionRef
--------------------------------------------------------------------------------
findByReleaseGroup :: Form Text MusicBrainz [CoreEntity Release]
findByReleaseGroup = runApi $ MB.findByReleaseGroup <$> "release-group" .: coreRef
+
+
+--------------------------------------------------------------------------------
+findByArtist :: Form Text MusicBrainz [CoreEntity Release]
+findByArtist = runApi $ MB.findByArtist <$> "artist" .: coreRef
@@ -286,6 +286,7 @@ serviceInit connInfo sessionStore =
, ("/recording/view-revision", expose Recording.viewRevision)
, ("/release/create", expose Release.create)
+ , ("/release/find-by-artist", expose Release.findByArtist)
, ("/release/find-by-release-group", expose Release.findByReleaseGroup)
, ("/release/find-by-label", expose Release.findByLabel)
, ("/release/find-latest", expose Release.findLatest)
View
@@ -59,6 +59,7 @@ tests = map testHandlerExists
, "/recording/view-relationships"
, "/recording/view-revision"
, "/release/create"
+ , "/release/find-by-artist"
, "/release/find-by-label"
, "/release/find-by-release-group"
, "/release/find-latest"

0 comments on commit 64f8098

Please sign in to comment.