lib/flapjack/gateways/jsonapi/entity_methods.rb in flapjack-0.8.4 vs lib/flapjack/gateways/jsonapi/entity_methods.rb in flapjack-0.8.5
- old
+ new
@@ -129,15 +129,10 @@
}.join(',')
'{"entities":[' + entities_json + ']}'
end
- app.get '/checks/:entity' do
- content_type :json
- entity = find_entity(params[:entity])
- entity.check_list.to_json
- end
app.get %r{/status#{ENTITY_CHECK_FRAGMENT}} do
content_type :json
captures = params[:captures] || []
@@ -312,32 +307,9 @@
next
end
Flapjack::Data::Entity.add(entity, :redis => redis)
end
errors.empty? ? 204 : err(403, *errors)
- end
-
- app.post '/entities/:entity/tags' do
- content_type :json
-
- tags = find_tags(params[:tag])
- entity = find_entity(params[:entity])
- entity.add_tags(*tags)
- entity.tags.to_json
- end
-
- app.delete '/entities/:entity/tags' do
- tags = find_tags(params[:tag])
- entity = find_entity(params[:entity])
- entity.delete_tags(*tags)
- status 204
- end
-
- app.get '/entities/:entity/tags' do
- content_type :json
-
- entity = find_entity(params[:entity])
- entity.tags.to_json
end
end
end