Skip to content

Added new first level method: listProjects()#18

Open
RomainVialard wants to merge 2 commits intomasterfrom
RomainVialard-patch-1
Open

Added new first level method: listProjects()#18
RomainVialard wants to merge 2 commits intomasterfrom
RomainVialard-patch-1

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.

2 participants