<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <!-- Form view for 'connection.api' model.  -->
    <record id="connection_api_view_form" model="ir.ui.view">
        <field name="name">connection.api.view.form</field>
        <field name="model">connection.api</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <group>
                        <group string="Resource">
                            <field name="model_id" string="Model"/>
                        </group>
                        <group string="Methods">
                            <field name="is_get"/>
                            <field name="is_post"/>
                            <field name="is_put"/>
                            <field name="is_delete"/>
                        </group>
                    </group>
                </sheet>
            </form>
        </field>
    </record>
    <!-- Tree view for 'connection.api' model.  -->
    <record id="connection_api_view_tree" model="ir.ui.view">
        <field name="name">connection.api.view.list</field>
        <field name="model">connection.api</field>
        <field name="arch" type="xml">
            <list>
                <field name="model_id" string="Model"/>
                <field name="is_get"/>
                <field name="is_post"/>
                <field name="is_put"/>
                <field name="is_delete"/>
            </list>
        </field>
    </record>
    <!-- Action  for 'connection.api' model with Tree and form views.  -->
    <record id="rest_api_root_action" model="ir.actions.act_window">
        <field name="name">Rest API Records</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">connection.api</field>
        <field name="view_mode">list,form</field>
        <field name="help" type="html">
            <p class="o_view_nocontent_smiling_face">
                Create!
            </p>
        </field>
    </record>
    <!-- Menu items for the REST API.  -->
    <menuitem id="rest_api_root"
              name="Rest API"
              sequence="10"
              web_icon="rest_api_odoo,static/description/icon.png"/>
    <menuitem id="rest_api_details_root"
              name="Rest API"
              parent="rest_api_root"
              action="rest_api_root_action"
              sequence="10"/>
</odoo>
