GithubHelp home page GithubHelp logo

Comments (7)

amihaiemil avatar amihaiemil commented on June 4, 2024 1

@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.

amihaiemil avatar amihaiemil commented on June 4, 2024 1

@SherifWaly We're done here, thanks :)

from versioneye-api.

amihaiemil avatar amihaiemil commented on June 4, 2024

@SherifWaly Please wait for me to close this ticket: #64 before continuing here :D

from versioneye-api.

SherifWaly avatar SherifWaly commented on June 4, 2024

@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.

SherifWaly avatar SherifWaly commented on June 4, 2024

@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.

amihaiemil avatar amihaiemil commented on June 4, 2024

@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.

SherifWaly avatar SherifWaly commented on June 4, 2024

@amihaiemil Ok, I will start :D

from versioneye-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.