openapi-specification icon indicating copy to clipboard operation
openapi-specification copied to clipboard

Missing openapi specification file for "New Places API"

Open ramunasjurgilas opened this issue 10 months ago • 4 comments

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"?

ramunasjurgilas avatar Apr 08 '24 22:04 ramunasjurgilas

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.

wangela avatar Apr 08 '24 22:04 wangela

I would appreciate support for the new Places API very much

holzerch avatar Jun 21 '24 14:06 holzerch

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 avatar Aug 01 '24 22:08 diego-aquino

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 [email protected]: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.

diego-aquino avatar Aug 01 '24 23:08 diego-aquino