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 management
- MRP
This question has been flagged
1643
Views
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Sep 24
|
3 | ||
|
0
Sep 24
|
348 | ||
|
1
Jun 24
|
667 | ||
|
1
Mar 24
|
930 | ||
|
2
Mar 24
|
4358 |