Configuration

Full configuration example

#app/config/config.yml

ongr_api:
    versions:
        v3:
            endpoints:
                product: #this key represents endpoint name which will be used in URL 
                    repository: es.manager.default.product #required
                    methods: ["GET", "POST"] #default: GET, POST, PUT, DELETE
                    allow_extra_fields: false #default: false
                    allow_fields: ['name', 'surname', 'age'] #default: ~
                    allow_get_all: true #default: true
                    allow_batch: true #default: true

What's next?

Let's learn more about endpoints.