Giter VIP home page Giter VIP logo

Comments (13)

tmortagne avatar tmortagne commented on August 29, 2024 1

You are indeed correct. Thanks for noticing! Could you please open an issue for it and I will try to fix it tomorrow?

Done: #174

from fasten.

romatallinn avatar romatallinn commented on August 29, 2024

@marcomicera a useful task to go forward with in relation to the web platform.

To add, I guess it would be nice to have a keyed dictionary for the result response. Coz right now it's just an array.

So, instead of:

[
    17,
    16,
     "4.12",
    "OPAL",
    null,
    "{\"commitTag\": \"r4.12\", \"sourcesUrl\": \"https://repo.maven.apache.org/maven2/junit/junit/4.12/junit-4.12-sources.jar\", \"packagingType\": \"jar\", \"parentCoordinate\": \"\", \"dependencyManagement\": {\"dependencies\": []}}"
 ]

Keyed dictionary:

{
    "id": 17,
    "package_id": 16,
    "version": "4.12",
    etc...
}

from fasten.

marcomicera avatar marcomicera commented on August 29, 2024

Related: #124.

from fasten.

marcomicera avatar marcomicera commented on August 29, 2024

Done in 3ea8035.

from fasten.

tmortagne avatar tmortagne commented on August 29, 2024
  • There is excessive quoting. For example this "{\"access\": \"protected\", \"defined\": true}" can be simply replaced by "{"access": "protected", "defined": true}

Note that this one does not seems to be fixed on http://lima.ewi.tudelft.nl/api but maybe the server is not up to date (but it's strange since the first point is fixed). See http://lima.ewi.tudelft.nl/api/mvn/packages/org.eclipse.jetty:jetty-webapp/9.4.17.v20190418/metadata for example.

from fasten.

marcomicera avatar marcomicera commented on August 29, 2024

but maybe the server is not up to date

I think the old RESTeasy/Jetty implementation is still running on that server. Someone should deploy the new Spring/Tomcat version. @proksch

from fasten.

proksch avatar proksch commented on August 29, 2024

The server should run the new REST API since several days already... (btw. you can also access it via http://api.fasten-project.eu/api/ now, but Lima should still work. We will report on this before the next dev call). I am not sure about the state of the excessive quoting problem though. I thought we had an issue for this, but maybe I had this exact here issue in mind.... If there is none, please create a new issue for this and mention the concrete endpoint that is affected.

from fasten.

MihhailSokolov avatar MihhailSokolov commented on August 29, 2024

The server should run the new REST API since several days already... (btw. you can also access it via http://api.fasten-project.eu/api/ now, but Lima should still work. We will report on this before the next dev call). I am not sure about the state of the excessive quoting problem though. I thought we had an issue for this, but maybe I had this exact here issue in mind.... If there is none, please create a new issue for this and mention the concrete endpoint that is affected.

I just resolved the issue with escape characters. We will deploy the latest version a bit later today because we first need to fix some configuration.

from fasten.

tmortagne avatar tmortagne commented on August 29, 2024

btw. you can also access it via http://api.fasten-project.eu/api now

Much better domain name indeed, but it does not seems to work (getting a "502 Bad Gateway" error).

But maybe it's related to "we first need to fix some configuration".

from fasten.

tmortagne avatar tmortagne commented on August 29, 2024

Actually http://lima.ewi.tudelft.nl/api/ is down too now so I guess it is indeed the configuration issue.

from fasten.

wzorgdrager avatar wzorgdrager commented on August 29, 2024

We just deployed the latest version, it should work properly now.

from fasten.

tmortagne avatar tmortagne commented on August 29, 2024

It's better but http://api.fasten-project.eu/api/mvn/packages/org.eclipse.jetty:jetty-webapp/9.4.17.v20190418/metadata for example produces an invalid JSON. Probably because there is still " around the metadata field value (seems to suggest we are doing String concatenation instead of using some JSON writer tool).

from fasten.

MihhailSokolov avatar MihhailSokolov commented on August 29, 2024

It's better but http://api.fasten-project.eu/api/mvn/packages/org.eclipse.jetty:jetty-webapp/9.4.17.v20190418/metadata for example produces an invalid JSON. Probably because there is still " around the metadata field value (seems to suggest we are doing String concatenation instead of using some JSON writer tool).

You are indeed correct. Thanks for noticing! Could you please open an issue for it and I will try to fix it tomorrow?

from fasten.

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.