google-cloud-endpoints-v2

Google Endpoints GET request URL parameters [Python]

跟風遠走 提交于 2021-02-10 06:17:50
问题 I am currently working on a small project where I need to write a GET handler. I am working from the Echo example provided in the endpoints documentation. I have my resource container: GET_EMAIL_RESOURCE = endpoints.ResourceContainer( message_types.VoidMessage, i = messages.IntegerField(1, default = 1) ) And I have my handler: @endpoints.method( GET_EMAIL_RESOURCE, EchoResponse, path='echo/getEmails/{i}', http_method='GET', name='echo_get_emails' ) def echo_get_emails(self, request): if

Google Endpoints GET request URL parameters [Python]

馋奶兔 提交于 2021-02-10 06:17:07
问题 I am currently working on a small project where I need to write a GET handler. I am working from the Echo example provided in the endpoints documentation. I have my resource container: GET_EMAIL_RESOURCE = endpoints.ResourceContainer( message_types.VoidMessage, i = messages.IntegerField(1, default = 1) ) And I have my handler: @endpoints.method( GET_EMAIL_RESOURCE, EchoResponse, path='echo/getEmails/{i}', http_method='GET', name='echo_get_emails' ) def echo_get_emails(self, request): if

Google Cloud Endpoints slower

可紊 提交于 2021-01-24 07:09:54
问题 We just migrated to google cloud endpoints v2 / java8 and found that latency has gone up. We see this kind of request in traces often: https://servicecontrol.googleapis.com/v1/services/<myapi>.endpoints.<myappid>.cloud.goog:check Which uses around 14ms. Also, somehow memory usage went up and our B2 frontends suddenly start blocking and having delays of 10s often, which could be a problem with connection pooling not done right, but was somehow not present with endpoints-v1 & java7 before. At

Error Generating OpenAPI doc using the endpoint-framework-tools (unclear documentation)

北城余情 提交于 2019-12-24 20:22:10
问题 (Intro) I am undergoing some tutorials on google cloud endpoint using the google documentation. I have managed to run my first API but i am having an error generating an OpenAPI document using the endpoint-framework-tools (Question/Issue) Long story short, I am having an "unclear" error while trying to generate the OpenAPI document of my google cloud endpoint project. Official google docs (here) states the below method to generate the file: endpoints-framework-tools-2.0.0-beta.11/bin

How to do authentication check in Python library from Google Cloud Endpoints on GAE standard

一个人想着一个人 提交于 2019-12-23 02:13:43
问题 I'm trying to implement service-to-service authentication to Google Cloud Endpoints API using Google Service account, but get the following error. Cannot decode and verify the auth token. The backend will not be able to retrieve user info (.../lib/endpoints_management/control/wsgi.py:596) Traceback (most recent call last): File ".../lib/endpoints_management/control/wsgi.py", line 593, in __call__ service_name) File ".../lib/endpoints_management/auth/tokens.py", line 81, in authenticate error)

Android Plugin for Gradle 3.0.0 : Could not find com.google.http-client:google-http-client-parent:1.24.1

社会主义新天地 提交于 2019-12-19 12:51:41
问题 I had to migrate my android project to new version of Android Studio and Android pluging for Gradle. I followed all instructions at https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration?utm_source=android-studio#new_configurations but when sync and build, i got a build error related to google-http-client-parent:1.24.1 stating it is not present in repositories Maven or Jcenter (indeed this version doesnt exist yet) In my app gradle i am only using com.google.http-client

Cloud Endpoints with Firebase Authentication

拈花ヽ惹草 提交于 2019-12-13 17:41:13
问题 What I am trying to accomplish is I want to limit the use of the web service running on Google App Engine to my app users that login with Firebase Auth. How can I add security rules to the openAPI specification to allow users to request only information of their uuid? So users will just be able to use the web service to get the information about their uuids, if they are logged in to Firebase Auth with that uuid 回答1: You'd have to pass along the ID token of your user from the client app to

Error deploying endpoint containing parameter of type “file”

浪尽此生 提交于 2019-12-12 23:08:32
问题 I'm trying to deploy a simple endpoint which contains a parameter of type file . I'm using the gcloud service-management deploy command with the following openapi compliant yaml: swagger: "2.0" info: description: "Image API" title: "Image API" version: "v1" host: "image-api.endpoints.myproject.cloud.goog" basePath: "/v1" schemes: - "https" paths: "/images": post: description: "Adds an image" operationId: "add" consumes: - "multipart/form-data" produces: - "application/json" responses: 201: