The photoslibrary API is not listed however is still available.
This adds a method of manually adding APIs to the shared.yaml and adds the photoslibary API info.
Fixes#198
This is backwards compatible, but allows `add_scope(None)` as well.
Maybe it's better to just add another function, but on the other hand,
this would already do and solves that somewhat more special case.
Related to #172
Summary of changes:
- Converted from using span + br tags for formatting to using tables
- Added Bootstrap stylesheet
- Refactored a lot of the logic which was being done in the html ${...}
tags out into a block which gets run at the start of each api version.
(hopefully this will make the template easier to maintain in the long
run)
Possible issue:
I swapped from looping over each key in `tc.keys()` to assuming the keys
will only ever be ["api", "cli"]. This hard codes the keys instead of
getting them dynamically, but makes it easier to format as a table and
lets you pull a lot of the logic out of the template and into a single
block before each table row.
If the types of application in `tc.keys()` ever changes then this
template will need to be updated accordingly!
You guessed it, again related to the openssl upgrade in
dermesser/yup-oauth2#51. As long as the API crates depend on openssl 0.7
via hyper 0.9, any client using the APIs won't build :( For example,
examples/drive_example/ in dermesser/yup-oauth2.
Please regenerate and publish afterwards, if possible.
That way we get rid of the duplication at least.
Probably it would be enough to just refer to version 1 of the
library respectively, and let semver do the rest.
Instead we link to the absolute location.
tech debt: we now use http://byron.github.io/google-apis-rs
multiple times and thus duplicate that information.
We now consider the blacklist, which is probably what the previous
implementation achieved as it checked for existence of files on disk.
We do the same, but more directly.
A complete installation script is provided for those who don't yet
have rustup installed.
Some google discovery URLs contain `$discovery` or other variants,
causing the calls to wget to interpret `$d` as an environment variable
instead of a literal. An example is:
`https://logging.googleapis.com/$discovery/rest?version=v2`.
To fix this, the `$` has been escaped so that wget fetches the URL as
expected.
Null structs (struct Foo;) cause the following error when trying to
deserialize an empty JSON object `{}` into them:
`JsonDecodeError("{}\n", Syntax(InvalidType(Map), 1, 1))` (also known as
`invalid type: map at line 1 column 1: {}`). The optional struct member
prevents this error.
The interactive flow requires to paste a code back into the
command-line, which does only work when it's cat'ed, but not
if it is pasted.
This should let it handle everything internally, which is
way more user-friendly.