noosfero | Passing domain info via Api (!1080)

Victor Costa gitlab at mg.gitlab.com
Tue Jan 10 14:19:04 BRST 2017


New comment for Merge Request !1080 on app/api/v1/domains.rb:

https://gitlab.com/noosfero/noosfero/merge_requests/1080#note_21176711

> +module Api
> +  module V1
> +    class Domains < Grape::API
> +
> +      resource :domains do
> +
> +        desc "Return all domains information"
> +        get '/' do
> +          present Domain.all, with: Entities::Domain, :current_person => current_person
> +        end
> +
> +        get ':id' do

@evandrojr please add  tests for this endpoint


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170110/b2462804/attachment-0001.html>


More information about the Noosfero-dev mailing list