mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-16 13:14:03 +00:00
json API for suseconferenceclient
This commit is contained in:
parent
d648ab7cb5
commit
d95d8f234b
12 changed files with 159 additions and 8 deletions
10
app/serializers/conferences_array_serializer.rb
Normal file
10
app/serializers/conferences_array_serializer.rb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#
|
||||
# Needed in order to add the API version number to the conferences array
|
||||
#
|
||||
class ConferencesArraySerializer < ActiveModel::ArraySerializer
|
||||
|
||||
def as_json(*args)
|
||||
json = super
|
||||
json.merge!(:version => 1)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue