HumHub - Like API (1.0.0)

Download OpenAPI specification:Download

E-mail: info@humhub.com License: AGPLv2

Welcome to the HumHub like module API reference.

Authentication

Bearer

Security scheme type: JWT

BasicAuth

Security scheme type: HTTP
HTTP Authorization Scheme basic

Get like by id

path Parameters
id
required
integer

The id of the like

Responses

200

successful operation

400

Invalid like id supplied

404

Like not found

get /like/{id}
/api/v1/like/{id}

Response samples

application/json
Copy
Expand all Collapse all
{}

Deletes a like by id

path Parameters
id
required
integer

The id of the like

Responses

200

successful operation

404

Like not found

delete /like/{id}
/api/v1/like/{id}

Get all likes by content id

query Parameters
model
required
string

The model record class

pk
required
integer

The primary key of the record

Responses

200

successful operation

400

Invalid like id supplied

404

Like not found

get /like/findByRecord
/api/v1/like/findByRecord

Response samples

application/json
Copy
Expand all Collapse all
{
  • "total": 76,
  • "page": 1,
  • "pages": 8,
  • "links":
    {
    },
  • "results":
    []
}