Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2065 Lượt xem

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
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 25
796
2
thg 1 25
859
0
thg 9 24
4
0
thg 9 24
1198
1
thg 6 24
1652