Commit Graph

451 Commits

Author SHA1 Message Date
Guy Taylor
4603769ca6 chore(manually_added): Add support for adding unlisted APIs
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
2018-10-11 19:55:53 +01:00
Faddi
d042fcf1a7 fix(util.py): iteration over dicts with 'values' key
Sheets api has a 'values' key in resources.spreadsheets.resources which
collides with values().
2018-01-28 16:54:05 +01:00
Sebastian Thiel
c28413321b Switch to serde to v1.0 2017-09-24 14:51:51 +02:00
Cristi Cobzarenco
f835835100 fix(mbuild): strip leading slashes from urls 2017-08-27 09:57:50 +02:00
Sebastian Thiel
a630af5830 First step towards allowing scopes to be deactivated entirely
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
2017-06-28 09:15:57 +02:00
Sebastian Thiel
4660d23676 fix(docs): Example now uses hyper_rustls
It's already done by the CLI, but the docs still showed
code that would only work in older hyper versions that still
shipped with HTTPS.

Fixes #169
2017-05-26 10:14:39 +02:00
Sebastian Thiel
dd4bfe3de0 fix(lib): more idiomatic swapping of values 2017-05-22 20:57:24 +02:00
Christian Legnitto
9ffa241f37 feat(hub): Allow overriding rootUrl and baseUrl
Allow the hub to override `rootUrl` and `baseUrl` for the service.
This is useful for pointing at localhost for testing or a proxy.
2017-05-06 17:59:05 -07:00
Michael-F-Bryan
ef070eef59 fix(index.html.mako): Added an assert to detect when docs need updating 2017-04-01 21:48:37 +08:00
Michael-F-Bryan
de6528be98 fix(index.html.mako): Finished adjustments to index.html template (fixes #166)
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!
2017-04-01 02:55:11 +08:00
Michael-F-Bryan
5bc4141fa5 style(index.html.mako): Fixed up indenting and line length 2017-04-01 02:37:29 +08:00
Michael-F-Bryan
0d655411ab refactor(index.html.mako): Added bootstrap to make things pretty 2017-04-01 02:27:37 +08:00
Michael-F-Bryan
05b442d589 refactor(index.html.mako): Cleaned up a lot of the link logic 2017-04-01 02:20:29 +08:00
Michael-F-Bryan
8934365401 refactor(index.html.mako): Converted data to a table 2017-04-01 02:03:26 +08:00
Michael-F-Bryan
09ce891eeb refactor(index.html.mako) Renamed a couple variables 2017-04-01 01:48:29 +08:00
Sebastian Thiel
1323d0dccb fix(tests): use new serde map implementation
No fun, this one.
2017-02-04 13:03:42 +01:00
Sebastian Thiel
7a611c39aa Adapt to changed Map interface 2017-02-04 11:52:42 +01:00
Sebastian Thiel
26f57948a6 chore(cli): one step closer to getting it compiled 2017-02-03 09:20:01 +01:00
Sebastian Thiel
1756d7dec4 chore(cli): fix error handling 2017-02-03 09:01:30 +01:00
Sebastian Thiel
0337435cd4 imp(serde): upgrade to v0.9
This provides proc macros, greatly simplifying the build
projects.
2017-02-03 08:23:00 +01:00
Sebastian Thiel
d1ebc0ff0b imp(cli): use hyper-rustls instead of openssl
The only openssl dependency left would be coming from yup-oauth2!
2017-02-01 07:07:05 +01:00
Lewin Bormann
fd6815997d chore(deps): Update hyper for generated crates to ^0.10
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.
2017-01-31 19:15:14 +01:00
Greg Dallavalle
8f47126103 Fix typo Requst->Request 2017-01-12 12:33:33 -06:00
Sebastian Thiel
99789de208 fix(doc-index): build better data
Really just what is needed right now to make it work.

[skip ci]
2016-12-24 22:02:29 +01:00
Sebastian Thiel
082e51e16e fix(publish): make cli publishing work
It really needs allow-dirty.
Let's hope that won't publish too much.
2016-12-24 19:27:55 +01:00
Sebastian Thiel
75316f4c84 chore(version): api-cli lock-step; depend on specific version
As they are usually meant to work hand-in-hand anyway.
This simplifies the way this works a lot, and is probably
more correct as well.
2016-12-24 15:42:39 +01:00
Sebastian Thiel
b68b2a6bf5 fix(cli): try to depend on major version of api
Previously that didn't work due to a bug in carg,
but should work now.
2016-12-24 15:35:20 +01:00
Sebastian Thiel
5e28a06dc0 fix(versions): cli + api use a single base version
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.
2016-12-24 15:23:09 +01:00
Sebastian Thiel
cc30a2e20b doc(index): don't use relative links
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.
2016-12-24 15:16:59 +01:00
Sebastian Thiel
6279fd8f5d doc(index): improve UX
Better help alert when copying an installation script to clipboard.
Better looks.
2016-12-24 14:08:46 +01:00
Sebastian Thiel
09805e59ad doc(index): better install script + blacklist
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.
2016-12-24 13:56:31 +01:00
Sebastian Thiel
fad9d3b0ca doc(index): link to doc.rs for APIs
We also link more specifically to crates.io.

Some debt was taken on as the build_version is special and
duplicated right now.
2016-12-24 13:44:06 +01:00
Sebastian Thiel
fdc0141fbc doc(index): button to copy install-script 2016-12-24 11:48:08 +01:00
Sebastian Thiel
d6accb8f61 doc(index): remove all download links
Instead refer to cargo install for installation.

[skip ci]
2016-12-24 10:49:37 +01:00
Sebastian Thiel
e646898137 feat(binaries): remove download information 2016-12-24 10:40:50 +01:00
Sebastian Thiel
fc34337ee4 doc(lib): use docs.rs for library documentation
We will still need to host the CLI docs though.
2016-12-24 10:35:48 +01:00
Sebastian Thiel
f3d0ef45d2 fix(license): correct link to license on github
[skip ci]
2016-12-17 17:07:56 +01:00
Sebastian Thiel
e04b6d023d chore(cleanup): remove .DS_Store files 2016-12-16 11:07:10 +01:00
Christopher Brickley
0ba9535a11 fix(discovery): handle discovery urls with $
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.
2016-12-15 11:44:34 -05:00
Sebastian Thiel
73f0e83086 chore(deps): use serde_derive 2016-10-09 15:58:11 +02:00
Sebastian Thiel
bc582e5761 chore(deps): use yup-oauth2 1.0
Celebrations !
2016-10-09 15:40:52 +02:00
Sebastian Thiel
8f59b9ba79 chore(dependencies): use latest of yup-oauth2
Seems to work just fine.
2016-09-26 06:54:48 +02:00
Sebastian Thiel
b21d96177d Merge pull request #155 from dermesser/parse-empty-correctly
fix(api types): Add an unused field to empty API types.
2016-09-25 19:36:48 +02:00
Lewin Bormann
0f14aa966e fix(api types): Add an unused field to empty API types.
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.
2016-09-21 21:52:44 +02:00
Lewin Bormann
292dd2f34f fix(template): URL-encoding '/' in URLs is not accepted by Google APIs. 2016-09-21 09:49:01 +02:00
Sebastian Thiel
91a657b8cf feat(cli): can now be published
This works as the API version is now explicitly specified,
allowing cargo-publish to work as usual.
2016-09-11 13:58:32 +02:00
Sebastian Thiel
d2495405c5 chore(Cargo): specify version to allow cli publishing
Let's see if we can actually get away with a '*' ... .
2016-09-11 12:08:57 +02:00
Sebastian Thiel
33771a6dc7 chore(Cargo): version-update
Use latest serde to make nightly builds work.
2016-09-11 09:52:19 +02:00
Sebastian Thiel
b6f5fc6eb3 fix(auth): use redirect flow
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.
2016-07-17 19:31:13 +02:00
Sebastian Thiel
e7721ce53b chore(cleanup): remove workaround marker
... and some left-over comments.

The workaround code is actually more readable than the previous version,
so it may as well stay.

Fixes #109
2016-07-17 13:56:25 +02:00