ols4 icon indicating copy to clipboard operation
ols4 copied to clipboard

Documentation example for `/api/ontologies/{ontology_id}/terms/{term_iri}/{property_iri}` returns 301

Open ramiromagno opened this issue 1 year ago • 3 comments

The sample request for /api/ontologies/{ontology_id}/terms/{term_iri}/{property_iri} given in the documentation returns a 301 response with zero elements. I suppose that is not intended.

curl -L 'http://www.ebi.ac.uk/ols4/api/ontologies/uberon/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000016/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000050' -i -H 'Accept: application/json'
HTTP/1.1 301 Moved Permanently
Content-Type: text/html
Date: Thu, 05 Oct 2023 20:17:55 GMT
Location: https://www.ebi.ac.uk/ols4/api/ontologies/uberon/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000016/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000050
Connection: Keep-Alive
Content-Length: 0

HTTP/1.1 200 
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Strict-Transport-Security: max-age=0
Date: Thu, 05 Oct 2023 20:17:57 GMT
Transfer-Encoding: chunked
Content-Disposition: inline;filename=f.txt

{
  "_links" : {
    "self" : {
      "href" : "https://www.ebi.ac.uk/ols4/api/ontologies/uberon/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000016/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000050?page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 0,
    "totalPages" : 0,
    "number" : 0
  }
}⏎

ramiromagno avatar Oct 05 '23 20:10 ramiromagno