Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2078 Widoki

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
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 25
816
2
sty 25
887
0
wrz 24
4
0
wrz 24
1211
1
cze 24
1675