Add endpoint for getting all parties
No filters yet
This commit is contained in:
parent
6f0dd42cc8
commit
3f979f6d62
2 changed files with 8 additions and 0 deletions
|
|
@ -53,6 +53,11 @@ class Api::V1::PartiesController < Api::V1::ApiController
|
|||
render :characters, status: :ok
|
||||
end
|
||||
|
||||
def all
|
||||
@parties = Party.all()
|
||||
render :all, status: :ok
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def random_string
|
||||
|
|
|
|||
3
app/views/api/v1/parties/all.json.rabl
Normal file
3
app/views/api/v1/parties/all.json.rabl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
collection @parties
|
||||
|
||||
extends 'parties/base'
|
||||
Loading…
Reference in a new issue