logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

list.ex (646B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Web.ApiSpec.Schemas.List do
  5. alias OpenApiSpex.Schema
  6. require OpenApiSpex
  7. OpenApiSpex.schema(%{
  8. title: "List",
  9. description: "Represents a list of users",
  10. type: :object,
  11. properties: %{
  12. id: %Schema{type: :string, description: "The internal database ID of the list"},
  13. title: %Schema{type: :string, description: "The user-defined title of the list"}
  14. },
  15. example: %{
  16. "id" => "12249",
  17. "title" => "Friends"
  18. }
  19. })
  20. end