Skip to Content
Menu
This question has been flagged
1643 Views

sample code: 
from odoo.http import Controller, route, request

class SampleApi (Controller):
    @route ("/ sample-route", type = "json", auth = "user", methods = ["GET"])

    def sample_route (self):

        return {

            "status": 200,

            "message": "Sample api response"

        }

requirement: generate swagger yaml using this route / class
Avatar
Discard
Related Posts Replies Views Activity
0
Sep 24
3
0
Sep 24
348
1
Jun 24
667
1
Mar 24
930
2
Mar 24
4358