Rest api returns html instead of json if api route does not exists

Created on 22 September 2020, almost 4 years ago
Updated 23 May 2023, over 1 year ago

I have created custom rest api. But api returns html instead of json if api route does not exists.

Response :

prefix="content: http://purl.org/rss/1.0/modules/content/ dc: http://purl.org/dc/terms/ foaf: http://xmlns.com/foaf/0.1/ og: http://ogp.me/ns# rdfs: http://www.w3.org/2000/01/rdf-schema# schema: http://schema.org/ sioc: http://rdfs.org/sioc/ns# sioct: http://rdfs.org/sioc/types# skos: http://www.w3.org/2004/02/skos/core# xsd: http://www.w3.org/2001/XMLSchema# ">





Page not found

href="/core/themes/stable/css/system/components/ajax-progress.module.css?qh1thq" />
href="/core/themes/stable/css/system/components/autocomplete-loading.module.css?qh1thq" />

Can anyone help here.

🐛 Bug report
Status

Closed: cannot reproduce

Version

9.5

Component
REST 

Last updated 6 days ago

Created by

🇮🇳India sandeep_jangra New Delhi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States Kristen Pol Santa Cruz, CA, USA

    As part of the Bug Smash Initiative, we are triaging issues that are marked "Postponed (maintainer needs more info)". This issue was marked "Postponed (maintainer needs more info)" more than 2 years ago.

    Since there was no additional information provided since it was requested last year, I'm marking the issue "Closed (cannot reproduce)". If anyone can provide the additional required, update the issue summary and set the issue status back to "Active" [or "Needs Work" if it has a patch, etc.].

    Thanks!

Production build 0.71.5 2024