Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new first level method: listProjects() #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RomainVialard
Copy link
Owner

Provided ability to list all Firebase projects available to the user.
https://firebase.google.com/docs/projects/api/reference/rest/v1beta1/projects/list

@JeanRemiDelteil
Copy link
Collaborator

Instead of adding a bunch of new methods like listProjects() to the root, maybe we can follow the API structure ?:
FirebaseApp.projects.list()
FirebaseApp.projects.get()
etc...

This would make it easy to understand the relation with the REST API, and also orderly support other API methods.

@RomainVialard
Copy link
Owner Author

In that case, should existing methods of the FirebaseApp lib be available at:
FirebaseApp.projects.get().realtimeDatabaseInstance.setData()
.getData()
etc...?

or do we keep getDatabaseByUrl() and simply add .projects?
Wouldn't it be weird to have the 2 different naming conventions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants