-
Notifications
You must be signed in to change notification settings - Fork 2
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
Firebase4 eiffel #2
Open
json-lim
wants to merge
42
commits into
EiffelWebFramework:master
Choose a base branch
from
json-lim:firebase4Eiffel
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 34 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
22a5938
First commit.
json-lim 76a86be
Committing current progress.
json-lim dc5a865
Adding gitignore file.
json-lim 2d0820f
Remove EIFGENs folder.
json-lim 3ab4845
Replaced 'in-development' firebase_api with original working firebase…
json-lim b7a6d78
Updated .gitignore file.
json-lim 42ffde7
Updated .gitignore file correctly.
json-lim 5bbdd60
Implemented draft set_print_format feature.
json-lim 7f38eb4
Merge branch 'printFeature' into dev
json-lim 05442f3
Minor refactoring.
json-lim 1e5b2ca
Implemented feature that allows user to set a shallow query string. T…
json-lim 02e670b
firebase_api now handles multiple queries and can set format response…
json-lim da04034
Refactored code.
json-lim eb7f7bc
Implemented post-condition for print feature.
json-lim fe85663
Commit for immediate merge.
json-lim 106a00e
Fixed up mistakes from old commits. Re-added application.e and fireba…
json-lim c8115e4
Refactoring.
json-lim e9aa1fb
Implemented orderBy and startAt query feature.
json-lim f8c9b71
Implemented endAt query feature and a helper feature.
json-lim 70ca554
Added postcondition for set_format_response feature.
json-lim 9072c10
Implemented a get-priority feature.
json-lim 15661dc
Implemented retrieve_rules and update_rules features.
json-lim 753f704
Changed methods with detachable BOOLEAN parameters to use just BOOLEA…
json-lim 8c5a9b2
Redid the get_priority feature.
json-lim de277fe
Implemented helped function that cleared all query settings.
json-lim c637ed5
Improved set_limit_to_first_value and set_limit_to_last_value features.
json-lim ddb5f7e
Refactored code, added postconditions, included documentation.
json-lim b5b5044
Added more documentation and refactored code.
json-lim b3fcba5
Update documentation.
json-lim a94ebab
Merge branch 'dev' of https://github.com/blank23/firebase4Eiffel into…
jvelilla 0ba9abc
Added template TEST_REST_API
jvelilla 7da9ee9
Merge branch 'jvelilla-firebase_Rev' into dev
json-lim 6b78a39
Added download feature, modified get_priority, retrieve_rules and upd…
json-lim 59212e9
Fixed conflicts.
json-lim 1066e39
Started implementing tests for firebase_api.
json-lim 5170b11
Implementing test cases in application.e and test_rest_api.e. Also mo…
json-lim 24d77a6
Completed documentation. Finalised test files. Added comments to fire…
json-lim 7dd5b91
Removed old READMEs.
json-lim 837a575
Add new README.
json-lim dc64e3c
Removed a print statement
json-lim b23efe7
Edited the README.md file. Also included a folder titled 'other' cont…
json-lim b306e0a
Updated links of result screenshots. Instead of using screenshots fro…
json-lim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# Directories and patterns to ignore. | ||
EIFGENs | ||
.git | ||
.svn/ | ||
*.swp | ||
*~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
Firebase REST API. Eiffel Client | ||
|
||
Based on Firebase REST API: https://www.firebase.com/docs/rest/api/ | ||
|
||
Documentation for REST API Development | ||
The aim of this project is to develop as many features as possible from the Firebase REST API documentation. This README will be divided into 4 sections: | ||
Outline of all Features - Outlines all features list in the documentation in 2015 | ||
Developed Features - Description of the feature and how to use it. | ||
Partially-Developed Features - Description of the feature, reasons for its partial-development and how to use it. | ||
Undeveloped Features - Description of the feature and reasons for why its lack of development. | ||
Future Development - Ideas of what a future release could include. | ||
|
||
|
||
Outline of all Features | ||
API Usage | ||
Get (Already Developed) | ||
Put (Already Developed) | ||
Post (Already Developed) | ||
Patch (Already Developed) | ||
Delete (Already Developed) | ||
Method Override??? | ||
Query | ||
Auth (Already Developed) | ||
Shallow (Developed) | ||
Print Format (Developed) | ||
Callback (Undeveloped) | ||
Format (Developed) | ||
Download (Developed) | ||
OrderBy (Developed) | ||
StartAt/EndAt/EqualTo (Developed) | ||
LimitToFirst/LimitTolast (Developed) | ||
Stream (Developed) | ||
Priorities (Partially-Developed) | ||
Server Values (Undeveloped) | ||
Security and Rules (Developed) | ||
|
||
Developed Features | ||
The following features have been fully developed. All features have been implemented in the firebase_api class. | ||
|
||
Query: Auth | ||
Supported by all request types. | ||
|
||
Authenticates this request to allow access to data protected by Security and Firebase Rules. The argument can either be your Firebase app’s secret or an authentication token. | ||
|
||
The user sets their authentication when creating a new firebase_api object with the following feature. | ||
|
||
make_with_auth (a_base_uri: READABLE_STRING_8; a_auth: READABLE_STRING_8) | ||
|
||
a_base_uri is the URI of the user’s database while a_auth is the authentication token. Here is an example. | ||
|
||
make_with_auth("https://fiery-fire-4173.firebaseio.com", "33ZXLlDjqpdLzb6DiAi17KkAA6qvzkF40M3MKxWL") | ||
|
||
|
||
Query: Shallow | ||
Supported by GET. | ||
|
||
This is an advanced feature, designed to help you work with large datasets without needing to download everything. Set this to true to limit the depth of the data returned at a location. If the data at the location is a JSON primitive (string, number or boolean), its value will simply be returned. If the data snapshot at the location is a JSON object, the values for each key will be truncated to true. | ||
|
||
The shallow query can be used with the following feature. | ||
|
||
set_shallow(option: BOOLEAN) | ||
|
||
To set shallow, the user should utilise | ||
|
||
set_shallow(TRUE). | ||
|
||
To unset shallow, the user should | ||
|
||
utilise set_shallow(FALSE). | ||
|
||
By default, shallow is unset. | ||
|
||
|
||
Note: shallow cannot be mixed with other query parameters according to the documentation. However, it was discovered when testing that shallow could be combined with auth and print format. | ||
|
||
|
||
|
||
Query: Print Format | ||
|
||
|
||
|
||
FirebaseApi.printFormat(“pretty”) | ||
|
||
|
||
|
||
Query: Format | ||
|
||
Query: Download | ||
|
||
Query: Order by | ||
|
||
Query: Start at, End at, Equal to | ||
|
||
Query: Limit to First, Limit to Last | ||
|
||
Stream | ||
|
||
Security and Rules | ||
|
||
|
||
Partially-Developed Features | ||
|
||
Priorities | ||
|
||
|
||
|
||
|
||
Incomplete Features | ||
The following features have not been implemented. | ||
|
||
Query: Callback | ||
|
||
This feature is a JavaScript only feature which is why it was not implemented. | ||
|
||
Server Values | ||
|
||
By its nature, this feature does not require much work from the user to utilise. As referenced in documentation, the server value can be used | ||
|
||
|
||
|
||
|
||
Future Development | ||
|
||
High Level Abstraction | ||
Ensure that query strings are used by the right REST methods | ||
|
||
|
||
JSON Value Constructor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General comment: try to add style to the Readme file, because at the moment is not easy to read.
Markdown syntax: https://daringfireball.net/projects/markdown/syntax
Online editors http://dillinger.io/, https://stackedit.io/