Search code examples
restpmml

Unable to understand the cURL invocation


I am currently using jpmml openscoring REST API..

I have successfully installed Maven and built the uber-JAR file and I am also able to access

http://localhost:8080/OpenScoring/rules.pmml 

I am confused with the instructions given at

https://github.com/jpmml/openscoring.

It says the sample curl invocation is

curl -X GET htttp://localhost:8080/openscoring/model

but I am getting a 404 error when I try to implement this. What does model mean here?

I am getting an output when I implement this:

curl -X GET htttp://localhost:8080/Openscoring/rules.pmml

Solution

  • I was getting a 404 error as I did not put my rules.pmml file in the directory which my command prompt pointed to.(This was a very silly mistake)

    And thanks to the user Anik Islam Abhi in the comments, I found out what model in the invocation

    curl -X GET htttp://localhost:8080/openscoring/model meant.

    model is just an Endpoint of the REST source but not a directory in the openscoring folder or any kind of path.