<commit_before><?php

namespace MapasCulturais\Controllers;

use MapasCulturais\App;
use MapasCulturais\Traits;

/**
 * Agent Controller
 *
 * By default this controller is registered with the id 'agent'.
 *
 */
class Agent extends EntityController {
    use Traits\ControllerUploads,
        Traits\ControllerTypes,
        Traits\ControllerMetaLists,
        Traits\ControllerAgentRelation,
        Traits\ControllerSealRelation,
        Traits\ControllerSoftDelete,
        Traits\ControllerChangeOwner,
        Traits\ControllerDraft,
        Traits\ControllerArchive,
        Traits\ControllerAPI,
        Traits\ControllerAPINested,
        Traits\ControllerOpportunities;

    /**
     * @api {all} /api/agent/findOne Buscar um Agente
     * @apiUse APIfindOne
     * @apiGroup AGENT
     * @apiName apiFindOne
     * 
     * @apiExample {curl} Exemplo de utilização:
     *   curl -i http://localhost:8090/api/agent/findOne?@select=id,name,subsite.name&user=EQ\(8006\)     * 
     */

    /**
     * @api {all} /api/agent/find Busca de Agentes
     * @apiUse APIfind
     * @apiGroup AGENT
     * @apiName APIfind
     * 
     * @apiExample {curl} Exemplo de utilização:
     *   curl -i http://localhost/api/agent/find?@select=id,name,subsite.name&user=EQ\(8006\)
     */

    
    /**
     * @api {GET} /api/agent/describe Recuperar descrição da entidade Agente
     * @apiUse APIdescribe
     * @apiGroup AGENT
     * @apiName GETdescribe
     */
    
     /**
     * @api {GET} /api/agent/createOpportunity Criar Oportunidade.
     * @apiUse apiDefine
     * @apiGroup AGENT
     * @apiName GETcreateOpportunity
     */
    
     /**
     * @api {POST} /api/agent/index Criar Agente.
     * @apiUse APICreate
     * @apiGroup AGENT
     * @apiName POSTagent
     */

     /**
     * @api {PATCH} /api/agent/single/:id Atualizar parcialmente um Agente.
     * @apiUse APIPatch
     * @apiGroup AGENT
     * @apiName PATCHagent
     */

    /**
     * @api {PUT} /api/agent/single/:id Atualizar Agente.
     * @apiUse APIPut
     * @apiGroup AGENT
     * @apiName PUTagent
     */

     /**
     * @api {DELETE} /api/agent/single/:id Deletar Agente.
     * @apiUse APIDelete
     * @apiGroup AGENT
     * @apiName DELETEagent
     */

     /**
     * @api {all} /api/agent/getTypes Retornar tipos
     * @apiUse getTypes
     * @apiGroup AGENT
     * @apiName getTypes
     * @apiSuccessExample {json} Success-Response:
     * [{
     *   "id": 1,
     *   "name": "Individual"
     *  },{
     *   "id": 2,
     *   "name": "Coletivo"
     * }]
     * 
     */

    /**
     * @api {all} /api/agent/getTypeGroups Retornar grupos<commit_msg>Fix API endpoint documentation for non safe HTTP methods<commit_after><?php

namespace MapasCulturais\Controllers;

use MapasCulturais\App;
use MapasCulturais\Traits;

/**
 * Agent Controller
 *
 * By default this controller is registered with the id 'agent'.
 *
 */
class Agent extends EntityController {
    use Traits\ControllerUploads,
        Traits\ControllerTypes,
        Traits\ControllerMetaLists,
        Traits\ControllerAgentRelation,
        Traits\ControllerSealRelation,
        Traits\ControllerSoftDelete,
        Traits\ControllerChangeOwner,
        Traits\ControllerDraft,
        Traits\ControllerArchive,
        Traits\ControllerAPI,
        Traits\ControllerAPINested,
        Traits\ControllerOpportunities;

    /**
     * @api {all} /api/agent/findOne Buscar um Agente
     * @apiUse APIfindOne
     * @apiGroup AGENT
     * @apiName apiFindOne
     * 
     * @apiExample {curl} Exemplo de utilização:
     *   curl -i http://localhost:8090/api/agent/findOne?@select=id,name,subsite.name&user=EQ\(8006\)     * 
     */

    /**
     * @api {all} /api/agent/find Busca de Agentes
     * @apiUse APIfind
     * @apiGroup AGENT
     * @apiName APIfind
     * 
     * @apiExample {curl} Exemplo de utilização:
     *   curl -i http://localhost/api/agent/find?@select=id,name,subsite.name&user=EQ\(8006\)
     */

    
    /**
     * @api {GET} /api/agent/describe Recuperar descrição da entidade Agente
     * @apiUse APIdescribe
     * @apiGroup AGENT
     * @apiName GETdescribe
     */
    
     /**
     * @api {GET} /api/agent/createOpportunity Criar Oportunidade.
     * @apiUse apiDefine
     * @apiGroup AGENT
     * @apiName GETcreateOpportunity
     */
    
     /**
     * @api {POST} /agent/index Criar Agente.
     * @apiUse APICreate
     * @apiGroup AGENT
     * @apiName POSTagent
     */

     /**
     * @api {PATCH} /agent/single/:id Atualizar parcialmente um Agente.
     * @apiUse APIPatch
     * @apiGroup AGENT
     * @apiName PATCHagent
     */

    /**
     * @api {PUT} /agent/single/:id Atualizar Agente.
     * @apiUse APIPut
     * @apiGroup AGENT
     * @apiName PUTagent
     */

     /**
     * @api {DELETE} /agent/single/:id Deletar Agente.
     * @apiUse APIDelete
     * @apiGroup AGENT
     * @apiName DELETEagent
     */

     /**
     * @api {all} /api/agent/getTypes Retornar tipos
     * @apiUse getTypes
     * @apiGroup AGENT
     * @apiName getTypes
     * @apiSuccessExample {json} Success-Response:
     * [{
     *   "id": 1,
     *   "name": "Individual"
     *  },{
     *   "id": 2,
     *   "name": "Coletivo"
     * }]
     * 
     */

    /**
     * @api {all} /api/agent/getTypeGroups Retornar grupos
{'fraction_non_alphanumeric': 0.12084818915368738, 'fraction_numerical': 0.005254269093638581, 'mean_word_length': 2.151981076286221, 'pattern_counts': {'":': 8, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6035946', 'n_tokens_mistral': 1847, 'n_tokens_neox': 1794, 'n_words': 355}