GithubHelp home page GithubHelp logo

ziy / skr-webapi Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 231 KB

Java-based API to the Semantic Knowledge Representation (SKR) Scheduler facility http://ii.nlm.nih.gov/Web_API/index.shtml

Java 99.22% Shell 0.78%

skr-webapi's People

Contributors

ziy avatar

Watchers

 avatar  avatar

Forkers

xiaozhuyfk

skr-webapi's Issues

Unable to use Metamap API since service ticket call is failing with 400 Bad Request

Hi,

We are using MetaMap WebAPI v2_3 (https://ii.nlm.nih.gov/Web_API/index.shtml). We are not able to access the APIs as one of the steps in the Web API flow is not working. We are getting 400 bad request from the getServiceTicket API (https://utslogin.nlm.nih.gov/cas/v1/tickets/TGT-2881-WImAhLaQz67BY0e7gEXbxYDfbReOajSiV2939oxtUngrAuViXM-cas). The credentials provided are correct. We are getting error saying "Bad service" for the API call.

Below is the metamap service URL being used:
https://ii.nlm.nih.gov/cgi-bin/II/UTS_Required/API_MM_interactive.pl

The same issue is being seen for the below service URL also:
https://ii.nlm.nih.gov/cgi-bin/II/UTS_Required/API_SR_interactive.pl

Can you please help us out in resolving the same.

Thanks.

We also tried in postman through rest client but same error:

  1. Make API call to get ticketGrantingTicket:

curl -X POST
https://utslogin.nlm.nih.gov/cas/v1/tickets
-H 'content-type: application/x-www-form-urlencoded'
-d 'username=&password='
We get grant ticket as expected.

  1. Make API call to get serviceTicket:

curl -X POST
https://utslogin.nlm.nih.gov/cas/v1/tickets/TGT-5173-NVWM2ya6OdPfYRxy5x7IAGeHcjFIbHUAAonOEfgCxYJTCBu30t-cas
-H 'content-type: application/x-www-form-urlencoded'
-d service=https%3A%2F%2Fii.nlm.nih.gov%2Fcgi-bin%2FII%2FUTS_Required%2FAPI_MM_interactive.pl

Below error will be seen with HTTP 400 response (removed HTML tags, as ticketing system does not allow):
bad service name: https://ii.nlm.nih.gov/cgi-bin/II/UTS_Required/API_MM_interactive.pl

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.