Giter Club home page Giter Club logo

Comments (7)

dimus avatar dimus commented on May 26, 2024 1

oups I meant https://github.com/gnames/gnparser#getting-the-simplest-possible-canonical-form

from gnverifier.

dimus avatar dimus commented on May 26, 2024

@abubelinha, if you want "stable until dead" API, it is better to use /api/v1

if you want to have "currently developed with new features, but less stable" then use /api/v0.

https://apidoc.globalnames.org/ (gnames API old, gnames API current) has both of them documented. I think /api/v0 is stabilizing now, so I do not expect huge changes there. When I feel it is doing all what it should do, I will release v1.0 for gnverifier, gnames, gnmatcher, and the api/v0 will become /api/v2.

I guess the point of confusion is the same domain name I use for production API (gnames) and its frontend (gnverifier). On a production site they both are verifier.globalnames.org, so it looks as if gnverifier local woud also have /api/v0 or /api/v1, but in reality it is just an nginx trickery.

I will add some warning in documentation about this, hopefully it will help to avoid confustion.

from gnverifier.

dimus avatar dimus commented on May 26, 2024

https://verifier.golobalnames.org got updated to v0.7.0, and I am going to actively develop all 3 verificaton components for the next few days, so website might be a bit ahead of binaries for the next few of days.

In your example

http://192.168.1.8:8052/api/v1/verifications/Tradescantia%20fluminensis

would not work, because gnverifier does not really have its own API, it only has a GET method for its form. So your example would not work. API so far exists only as a remote service. However:

I did update the database dump, so a local install is possible again (on Linux). But it
is much more work, and will become incompatible when database will evolve again.

So I would use remote api/v1 or api/v0 according to their documentations

from gnverifier.

dimus avatar dimus commented on May 26, 2024

When you call GET method on local recent gnverifier, it still goes to the remote /api/v0

It is just a convenience feature, so if someone has a question about a name, or want to submit a bug about a name verification, they can illustrate their question/problem with a URL like one you provided:

http://verifier.globalnames.org/?&format=json&names=Tradescantia+fluminensis

from gnverifier.

abubelinha avatar abubelinha commented on May 26, 2024

OK ... thanks a lot for clarifying multiple api versions.

I was assuming that gnverifier -p option was very much like gnparser (I thought the request would be redirected to a remote verifier api, so I could serve a "local api" for other machines which are restricted to LAN).
Understood now. It's not really that important.

Regarding my preferred_only=on failures, I still have not clear if this should work or not in any of the api versions. Any api url example? (where I set preferred data_sources and bestResult is not returned)

I also take the opportunity to ask ... where can I see an explanation of the different simple/full canonical names returned? Or an api url example where they show different values (i.e. matchedCanonicalSimple vs matchedCanonicalFull).
I'm sorry ... I think I have read about that somewhere before, but I don't recall where it was.

Thanks a lot for your patience

from gnverifier.

dimus avatar dimus commented on May 26, 2024

hm, preferred_only is actually currently a presentation modification feature of gnverifier. I guess I can add it to API

there is a secton about it in the gnparser docs. I added a table there, so it is a bit easier to find.

from gnverifier.

abubelinha avatar abubelinha commented on May 26, 2024

Thanks a lot again.
I just was wondering why preferred_only didn't work in API. Your clarification is enough.
Don't worry, I will just skip bestResult when I don't need it.

I think you posted a bad link?

from gnverifier.

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.