This commit is contained in:
Connor Turland 2016-03-12 21:35:56 +11:00
parent efe13dc7c0
commit ada29c6832
9 changed files with 0 additions and 27 deletions

View file

@ -13,8 +13,4 @@ class NewMapSerializer < ActiveModel::Serializer
has_many :mappings, serializer: NewMappingSerializer
has_many :contributors, root: :users, serializer: NewUserSerializer
#def filter(keys)
# keys.delete(:outcome_author) unless object.outcome_author.present?
# keys
#end
end

View file

@ -12,8 +12,4 @@ class NewSynapseSerializer < ActiveModel::Serializer
has_one :topic2, root: :topics, serializer: NewTopicSerializer
has_one :user, serializer: NewUserSerializer
#def filter(keys)
# keys.delete(:outcome_author) unless object.outcome_author.present?
# keys
#end
end

View file

@ -11,8 +11,4 @@ class NewTopicSerializer < ActiveModel::Serializer
has_one :user, serializer: NewUserSerializer
has_one :metacode, serializer: NewMetacodeSerializer
#def filter(keys)
# keys.delete(:outcome_author) unless object.outcome_author.present?
# keys
#end
end

View file

@ -7,8 +7,4 @@ class TokenSerializer < ActiveModel::Serializer
:created_at,
:updated_at
#def filter(keys)
# keys.delete(:outcome_author) unless object.outcome_author.present?
# keys
#end
end

View file

@ -1,7 +0,0 @@
$.post('http://localhost:3000/api/v1/tokens', {token: {
description: 'for stuff',
token: '1234',
user_id: 2
}})
curl -X POST -d @postdata.txt http://localhost:3000/api/v1/maps --header "Authorization: Token token=fb5b3db125c94e9fb50f1e42054be856" --header "Content-Type:application/json"

View file

@ -1 +0,0 @@
{ "map": { "name":"tree", "desc": "green", "permission": "commons", "arranged": true }}

View file

@ -1 +0,0 @@
{ "mapping": { "xloc": 123, "yloc": 123, "map_id": 1, "mappable_type": "Topic", "mappable_id": 2 }}

View file

@ -1 +0,0 @@
{ "synapse": { "desc": "link between", "permission": "commons", "node1_id": 1, "node2_id": 2, "category": "from-to" }}

View file

@ -1 +0,0 @@
{ "topic": { "name":"tree topic", "desc": "so green", "permission": "commons", "metacode_id": 1 }}