Comments (6)
Actually, this API does have what I need, but the docs are wrong:
{
"build": "{BUILD}",
"project": "{PROJECT}",
"version": "{VERSION}"
}
Instead the output is a much more complex response, not just string responses:
{
build: {
_links: { ... },
...,
urls: { ... },
},
project: { ... },
version: { ... },
};
from readthedocs.org.
@agjohnson note that {BUILD}
syntax means it's a build object. You can find the structure for this obejct on the "Build details" section of the documentation: https://docs.readthedocs.io/en/stable/api/v3.html#build-details
from readthedocs.org.
It's in string quotes though, so implies this is an id/pk instead of a full object. I was not expecting to get a full object response from this API after looking at our docs.
from readthedocs.org.
It's with quotes because it's a JSON and if you don't use quotes there, it breaks Sphinx 🤷🏼
from readthedocs.org.
But that seems to be because we're using {BUILD}
as a placeholder notation. The docs don't mention what this notation is or what data structures these refer to.
If we follow the pattern from other responses and instead show the full response, that would be clearer. Even a truncated response on the nested objects would be clearer, if we're worried the full response is too long.
from readthedocs.org.
I separated out fixing our API docs to make them clear. I have never noticed that our APIv3 docs comment many nested objects using strings and this could definitely be much clearer.
Changes to the API are in #11407
from readthedocs.org.
Related Issues (20)
- `source` being appended to rtd builds? HOT 6
- Project language locale `zh` is no longer valid
- Allow change of username HOT 5
- Docs: re-write VCS mentions in a more Git-specific way
- Flyout: unicode characters break URLs in flyout HOT 3
- Build: remove "beta" warning from `build.commands`
- Unable to translate the content of not_found_subject from 404 template page HOT 2
- API: use object notation for nested objects in example responses
- Notification: clarify _readthedocs/html path solution
- Not available for translation: readthedocs/templates/projects/project_dashboard.html HOT 2
- Question regarding subscriptions "CDN public documentation" HOT 3
- Latest Sphinx (7.3.7) corrupted install on mambaforge HOT 6
- Add support for all possible 'lang_COUNTRY' language codes HOT 1
- Append Language Codes to Language Names in the Dropdown Menu of the Language Field in RTD Admin HOT 5
- Addons: remove the "beta" from it
- Docs: Write initial Addons documentation page HOT 1
- Document serve failed today HOT 6
- Impossible to build `latest` after changing some options and putting them back as before HOT 2
- Submodule documentation is no longer being generated. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from readthedocs.org.