Comments (7)
@SherifWaly Well, the server would hold the authenticated users something like this:
{
...
"authenticated": [
{"amihaiemil":{...}},
{"SherifWaly":{...}}
]
...
}
So yes, a JsonArray, attached to the key "authenticated", and this pair would be part the big Json. The whole server is a big big json.
The unauthenticated MkVersionEye will simply have a ctor without Authenticated, and the username
will be empty. On the methods that require authenticated user (e.g. comments()), it will throw IllegalStateException or something, to point out that authentication is needed :D
Do you see what I mean?
from versioneye-api.
@SherifWaly We're done here, thanks :)
from versioneye-api.
@SherifWaly Please wait for me to close this ticket: #64 before continuing here :D
from versioneye-api.
@amihaiemil I think the server should hold a jsonArray of authenticated users and search for the object that matches the username, let me know if I'm thinking right :D . Also I don't understand the unauthenticated users can you give an example for them please :D ?
from versioneye-api.
@amihaiemil I think it could be done like this better
[
"amihaiemil" : {.....},
"SherifWaly" : {.....}
]
Also should I leave the Me API depend on the passed Authenticated or I would search by the username?
from versioneye-api.
@SherifWaly I also don't know the details right now, unless I start implementing. So, just do what you feel, and we'll see at review :) If you have other questions, ask away :P
from versioneye-api.
@amihaiemil Ok, I will start :D
from versioneye-api.
Related Issues (20)
- RtRepositories.java:46-47: Refactor code to make the class... HOT 2
- Github.java:37-37: Complete Github API methods. HOT 2
- .versionEye() method HOT 5
- RtVersionEye.java:41-41: Implement versionEye() method for... HOT 2
- MkVersionEye.java:42-43: Continue implementing the mock API.... HOT 1
- Github.java:37-39: Complete Github API methods. When... HOT 10
- RtRepositories.java:46-48: Modify repository(repositoryKey)... HOT 5
- Throw UnsupportedOperationException for unimplemented methods HOT 1
- Security.java:40-42: Implement a way of fetching the... HOT 3
- VersionEye.java:37-37: Implement the Product/Products Search... HOT 4
- test HOT 1
- test HOT 1
- VulnerabilitiesPage.java:39-40: Unit test this class, similar to how... HOT 2
- Repository.java:35-36: Complete implementations and unit... HOT 6
- Github.java:38-40: Complete Github API methods and move... HOT 10
- RtGithub.java:46-46: Unit test this class. HOT 2
- RepositoriesPage.java:39-40: Write some unit tests for this class.... HOT 5
- Vulnerability.java:35-36: Implement and unit test the methods... HOT 2
- Add DELETE method for Project HOT 1
- Implement Project.update(File) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from versioneye-api.