def METHOD_NAME(client, loan_pending_martigny,
                             librarian_martigny,
                             json_header,
                             loan_overdue_martigny):
    """Test operation logs REST API."""
    login_user_via_session(client, librarian_martigny.user)
    item_url = url_for('invenio_records_rest.oplg_item', pid_value='1')
    item_list = url_for('invenio_records_rest.oplg_list')
    res = client.get(item_url)
    assert res.status_code == 404
    res = client.get(item_list)
    assert res.status_code == 200
    data = get_json(res)
    assert data['hits']['total']['value'] > 0
    pid = data['hits']['hits'][0]['metadata']['pid']
    assert pid
    assert data['hits']['hits'][0]['id'] == pid
    assert data['hits']['hits'][0]['created']
    assert data['hits']['hits'][0]['updated']
    res, _ = postdata(
        client,
        'invenio_records_rest.oplg_list',
        {}
    )
    assert res.status_code == 403
    res = client.put(
        url_for('invenio_records_rest.oplg_item', pid_value='1'),
        data={},
        headers=json_header
    )
    assert res.status_code == 404
    res = client.delete(item_url)
    assert res.status_code == 404