googlemaps / openapi-specification

OpenAPI specification for Google Maps Platform API
Apache License 2.0
100 stars 84 forks source link

Missing openapi specification file for "New Places API" #485

Open ramunasjurgilas opened 5 months ago

ramunasjurgilas commented 5 months ago

Google Places have introduce new API which is documented here: https://developers.google.com/maps/documentation/places/web-service/op-overview

I am looking for openapi specification file where would be defined "New Place API".

Where I could found openapi specification for "New Places API"?

wangela commented 5 months ago

If you would like to upvote the priority of this issue, please comment below or react on the original post above with :+1: so we can see what is popular when we triage.

@ramunasjurgilas Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

holzerch commented 2 months ago

I would appreciate support for the new Places API very much

diego-aquino commented 1 month ago

The README.md mentions:

Note: New APIs will be documented using Google Discovery documents and Protobuf files.

Where could we find that documentation? Is there a way to auto-generate the Open API spec from it?

diego-aquino commented 1 month ago

I managed to generate the OpenAPI spec from the Protobuf files on https://github.com/googleapis/googleapis/tree/master/google/maps/places/v1 using protoc-gen-openapi.

git clone git@github.com:googleapis/googleapis.git
cd googleapis

go install github.com/google/gnostic/cmd/protoc-gen-openapi@latest

protoc -I. --openapi_out . google/maps/places/v1/places_service.proto

Generated file: openapi.yaml (remove the .txt extension)

Generating the specifications of the other APIs is probably similar.