Languages Model

Action

Method

Resource

Description

Get all

GET

/languages

Get all languages of the project.

Get

GET

/languages/language_id

Get language with id language_id.

Create

POST

/languages

Create a language.

Update

PUT

/languages/language_id

Update language with id language_id.

Delete

DELETE

/languages/language_id

Delete language with id language_id.

The languages model is composed of the following attributes:

Attribute

Type

Required

Description

Whereable

name

string

no, required to create.busines extra options(id)

The language's name.

Yes

code

string

no, required to create.

The language's last name.

Yes

default

boolean

no

If the language is the default language or not.

Yes

enabled

boolean

no

The language's status.

Yes