I deployed API with a different name earlier.
This API shows as a different API, under my API Manager Dashboard.
I disabled the old API for now. Does this have the same effect as deleting this API?
Related
I have a frontend project and a backend project. These are 2 separate app engine projects.
Setting up IAP on both is not problem but when my frontend project tries to call the backend project it is blocked.
Is there anyway to have access allowed to the backend project when the user passes the frontend IAP ? or do I have to leave the backend project without IAP enabled ?
You have to programmatically invoke (make the call using an OIDC token) to the backend from your front end. See documentation on how to do that.
There are misunderstandings. Let me clarify.
Firstly, your App Engine is highly scalable in a single project. Instead of having several projects with several App Engine, you should have only one project, with a single App Engine and multiple services.
Default is usually used for the frontend part. You can use an API service for your backend, or name it as you wish.
Like that, the whole website will be protected by the same IAP context. Like that, no issue as you have before, it's the same IAP cookies and the API calls should not create issues.
Secondly, keep in mind that your JS code runs in the client browser, not on App Engine; App Engine only serves the static files, that's all. All the rest of the computation is performed locally.
I am developing an application that uses Firebase as a backend and use third party tools achieve data.
Instead of configure the external API keys in firebase code(which will be visible in browser), I a trying to configure them in my Firebase projects google cloud console in
https://console.developers.google.com/apis/credentials?project={MyFirebaseProject} to use them securely.
I configured my keys GCP, but not sure how to access them in Firebase.
Is it a good and achievable solution?
I am open to suggestions.
I have a project and wish to generate a new json key for my service account. I need to do it from app engine via the sdk. Is this possible; I can't find the library? Or can it only be created manually in the console?
There is only one API that lets you manipulate the projects on Google Developer console its called Google Cloud Resource manager API. Here is some notes on my testing of it. Google Developer console API
This API is still in BETA and very new. currently all it lets you do is insert update delete list and get projects. You cant do anything with the settings of the project.
I have been unable to track down any kind of support forum or request forum for this API. It would be nice if they would extend it so we can make changes to the consent screen, oauth credentials and API settings. Not to mention check the Quota programmatically.
Is it possible to call, my endpoint api (https://myapi.appspot.com/_ah/api/) from my web app hosted in another domain (i.e. www.mydomain.com)?
Thanks.
You actually can't with cloud endpoint version 1, as stated in the doc. It comes out of the box with version 2 (beta as of March 2017)
Note: version 1 of the Google Cloud Endpoints Frameworks did not support custom domains but version 2 does.
Same question on stackoverflow:
App engine endpoints API - 404 with custom domain
Deploy Google Endpoint in a custom Domain
Yes of course.
You can call your endpoints wherever you are.
You can develop an App engine backend based on Enpoints and call them from Android, IOS or another web app.
It's like Google APIs. The same way to consume them.
https://developers.google.com/appengine/docs/python/endpoints/
I'm developing a Java app in GAE, which offers an API through Google Cloud Endpoints.
Basically it receives requests in the endpoints and uses a number of web services from different providers, stores some data and returns some data through the endpoints...
I understand that my app is conceptually a backend, because it doesn't provide any web page, but only the endpoints, don't you think so?
But there's no way to create only a backend, without being associated to any frontend app, is there? At least Google Plugin for Eclipse only allow you to "Generate App Engine Backend", from an existing app, and moreover this app must be an Android project...
I'm using it as a frontend and there's no problem, but apart from the conceptual issue, I've read that backends are kind of optimized to be backends, with more memory and CPU...
I think you're just confused because the Cloud Endpoints documentation uses the word 'backend' to refer to the entire cloud-hosted server implementation. It doesn't specifically refer to the use of GAE backend instances. Endpoint requests can be served by frontend or backend instances, based on how you set them up and the url being accessed.
From the App Ending docs:
"When an application is called to serve a web request, it must issue a response within 60 seconds"
"App Engine Backends are instances of your application that are exempt from request deadlines and have access to more memory (up to 1GB) and CPU (up to 4.8GHz) than normal instances."
So unless you're requests are doing something crazy, you don't need to use a backend. In the google-plugin-for-eclipse, "generate appengine backend" is talking about creating a backend for your android app... a server for your android app to contact (in this case your android app is the frontend and you're appengine app is the backend). In the example app you can remove the web side (index.html) to the appengine application and you'll have no web frontend. Index.html is using the gapi javascript library to make endpoints calls to your appengine service.