GET /api/users/:user_id/personal_access_tokens
List all Personal Access Tokens for a user

Parametri

Nome parametro Descrizione
user_id
richiesto

ID of the user

Validations:

  • Must be a String

search
opzionale

filtra i risultati

Validations:

  • Must be a String

order
opzionale

ordina risultati

Validations:

  • Must be a String

page
opzionale

paginazione risultati

Validations:

  • Must be a String

per_page
opzionale

numero di voci per richiesta

Validations:

  • Must be a String


GET /api/users/:user_id/personal_access_tokens/:id
Show a Personal Access Token for a user

Parametri

Nome parametro Descrizione
id
richiesto

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

user_id
richiesto

ID of the user

Validations:

  • Must be a String


POST /api/users/:user_id/personal_access_tokens
Create a Personal Access Token for a user

Parametri

Nome parametro Descrizione
user_id
richiesto

ID of the user

Validations:

  • Must be a String

personal_access_token
richiesto

Validations:

  • Must be a Hash

personal_access_token[name]
richiesto

Validations:

  • Must be a String

personal_access_token[expires_at]
opzionale , consentito nil

Expiry Date

Validations:

  • Must be a DateTime


DELETE /api/users/:user_id/personal_access_tokens/:id
Revoke a Personal Access Token for a user

Parametri

Nome parametro Descrizione
id
richiesto

Validations:

  • Must be a String

user_id
richiesto

ID of the user

Validations:

  • Must be a String