https://dev.app.pol-crm.com/api/login Return to referer URL

App\Model\Security\Login Resource class

Resource Metadata

Short name: "Login"

Item operations Attributes
No available item operation for this resource.
Collection operations Attributes
external
[
  "method" => "POST"
  "path" => "/v4/external/login"
  "controller" => "App\Controller\V4\External\ExternalLoginAction"
  "output" => [
    "class" => "App\Model\Security\Token"
    "name" => "Token"
  ]
  "swagger_context" => [
    "summary" => "Generates a new JWT Token"
    "tags" => [
      "_Login"
    ]
    "parameters" => [
      [
        "in" => "body"
        "name" => "login"
        "schema" => [
          "type" => "object"
          "properties" => [
            "customer_id" => [
              "type" => "string"
            ]
            "client_id" => [
              "type" => "string"
            ]
            "client_secret" => [
              "type" => "string"
            ]
          ]
        ]
      ]
    ]
  ]
  "input" => null
  "input_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
    ]
    "html" => [
      "text/html"
    ]
  ]
  "output_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
    ]
    "html" => [
      "text/html"
    ]
  ]
]
post
[
  "method" => "POST"
  "path" => "/login"
  "controller" => "App\Controller\Security\LoginAction"
  "output" => [
    "class" => "App\Model\Security\Token"
    "name" => "Token"
  ]
  "swagger_context" => [
    "summary" => "Generates a new JWT Token"
    "tags" => [
      "_Login"
    ]
    "parameters" => [
      [
        "in" => "body"
        "name" => "login"
        "schema" => [
          "type" => "object"
          "properties" => [
            "username" => [
              "type" => "string"
            ]
            "password" => [
              "type" => "string"
            ]
          ]
        ]
      ]
    ]
    "responses" => [
      201 => [
        "description" => "JWT Token generated"
        "schema" => [
          "type" => "object"
          "properties" => [
            "token" => [
              "type" => "string"
            ]
            "refreshToken" => [
              "type" => "string"
            ]
          ]
        ]
      ]
      400 => [
        "description" => "Bad Request"
      ]
      401 => [
        "description" => "Unauthorized"
      ]
    ]
  ]
  "input" => null
  "input_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
    ]
    "html" => [
      "text/html"
    ]
  ]
  "output_formats" => [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
    ]
    "html" => [
      "text/html"
    ]
  ]
]
Filters
No available filter declared for this resource.
Attributes
route_prefix
"/"
ressource
"."
input
null
output
null

Data Providers

No calls to collection data provider have been recorded.

No calls to item data provider have been recorded.

No calls to subresource data provider have been recorded.

Data Persisters

No calls to data persister have been recorded.