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
- Contabilidad
- Inventario
- PoS
- Proyectos
- MRP
Se marcó esta pregunta
2875
Vistas
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
|
1
nov 25
|
3358 | ||
|
|
1
ago 25
|
1539 | ||
|
|
1
ago 25
|
2006 | ||
|
|
2
jul 25
|
5036 | ||
|
|
3
jul 25
|
2114 |