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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
2078
Widoki
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
Original project names via the API
Rozwiązane
|
|
1
kwi 25
|
816 | |
|
2
sty 25
|
887 | ||
|
0
wrz 24
|
4 | ||
|
0
wrz 24
|
1211 | ||
|
1
cze 24
|
1675 |