Dynamically generated Swagger Documentation for REST / JSON API
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 12/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- openapi, python
- Domain
- api, documentation
Research direction
The issue names no files, tests or entry points, so begin by finding how the REST framework currently exposes its routes and whether it already emits any OpenAPI or Swagger output. Settle the design first: which modules and endpoints the generated spec should cover, and how it is served per installation. Done means a maintainer-agreed design and a generated spec that matches a running instance.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem?
As a developer that is still fairly new to Odoo in general I feel an unfulfilled need for clear guidance on the JSON API that is not met in the current documentation.
Describe the solution you'd like
If there would be swagger documentation for the REST API that gets created dynamically based on your own url and modules installed, this would be such an improvement from my point as a developer.
NocoDB has a feature like this. You create a base, you add tables, columns,... And it just spits out dynamic, interactive developer docs.
From a developer point of view that allows to have a working API Reference for my specific installation without it forcing me to first learn the internals and code base of all models.
Describe alternatives you've considered
Both trying to set this up in own code or n8n, it all flows through the JSON API. In both cases (odoo docs and n8n docs) the documentation is sparse. I could go through the actual models in the backend code and translate that info to how it would work in REST.
It does force me to be aware of all internals of Odoo and the internal codebase before I can attach to it (properly) from the outside. I think improving the developer experience for external connections is a better path of entry than asking developers to understand (and possibly start making edits to) the internals.
Additional context
I'm trying to get our dealerplatform (not on odoo) to generate a sign request in Odoo for new quotes that are being generated. I couldn't find clear REST API documentation so I choose to implement it through n8n thinking it would clear things up. It's just some CRUDs after all. The experience there isn't that much better than manually coding it.
The fact that it runs through n8n at this point is irrelevant for the proposed feature.
I've got a pdf uploaded, it's an attachment. I also made a signature template and created a document with that attachment in that template. Then I create a contact and now.... I create a sign request? it keeps failing, I'm sure it's expecting more of me, but I don't have a clear view what the API expects of me.
- Dominant language
- Python
- Stars
- 385
- Forks
- 393
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 21
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OCA/rest-framework
-
bug stale
Difficulty 1/5 Under an hour Newbie friendliness 72/100
OCA/rest-framework#612 · 4 comments ·
Maintainers usually reply within 1 day
-
help wanted no stale work in progress
Difficulty 4/5 3-5 days Newbie friendliness 35/100
OCA/rest-framework#648 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 18/100
OCA/rest-framework#641 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
OCA/rest-framework#617 · 2 comments ·
Maintainers usually reply within 1 day
-
Migration to version 19.0Possibly taken @Churnika-Chaudhari claimed this 22 days ago. Openhelp wanted no stale work in progress
Difficulty 4/5 3-5 days Newbie friendliness 25/100
OCA/rest-framework#567 · 3 comments ·
Maintainers usually reply within 1 day
All issues in OCA/rest-framework
Similar issues
-
add entry to blockOpen
Difficulty 1/5 Under an hour Newbie friendliness 65/100
StevenBlack/hosts#3299 ·
-
`garak --report` overwrites the input report when its name has no ".report"Possibly taken @0z5a claimed this today. Openneeds-triage
Difficulty 2/5 Half a day Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
plot_graph crashes when a mesh node has no m2m edgePossibly taken @tygvi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
mllam/neural-lam#883 · 1 comment ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
future-agi/future-agi#4092 · 1 comment ·
Maintainers usually reply within 1 day
-
transcript analytics: a text whose only protected spans the prose pass redacts is withheld wholeOpen
Difficulty 1/5 Under an hour Newbie friendliness 82/100
WingedGuardian/GENesis-AGI#4641 ·
Maintainers usually reply within 1 day