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
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
2066
Rodiniai
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
RegistracijaRelated Posts | Replies | Rodiniai | Veikla | |
---|---|---|---|---|
|
1
bal. 25
|
797 | ||
|
2
saus. 25
|
866 | ||
|
0
rugs. 24
|
4 | ||
|
0
rugs. 24
|
1201 | ||
|
1
birž. 24
|
1654 |