You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RESTified endpoints should support and correctly parse strings with "/" in it.
Keywords
REST API, Query Param
What is the current behaviour?
When a "/" is part of the query param in a REST (GET) API, it results in the following error messages:
Error Message: The endpoint does not exist
Error Status code: 404
How to reproduce the issue?
Create a Hasura cloud project and add a database.
Create and track table with a String field type:
CREATE TABLE api_test
(
id int NOT NULL PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
locationKey TEXT,
locationName TEXT
);
INSERT Some test values into the table:
INSERT INTO api_test(locationKey, locationName) values ('us-west-1', 'US West #1');
INSERT INTO api_test(locationKey, locationName) values ('us-west-2', 'US West #2');
INSERT INTO api_test(locationKey, locationName) values ('us-east/3', 'US East #3'); -- locationKey has a slash
Create a RESTified Graphql endpoint using this table with an argument for locationKey, for example using this query:
Version Information
Server Version: 2.8.1
Environment
Cloud
What is the expected behaviour?
RESTified endpoints should support and correctly parse strings with "/" in it.
Keywords
REST API, Query Param
What is the current behaviour?
When a "/" is part of the query param in a REST (GET) API, it results in the following error messages:
Error Message: The endpoint does not exist
Error Status code: 404
How to reproduce the issue?
Any possible solutions?
The loc_id is parsed correctly if passed in the request body of a POST API call.
The text was updated successfully, but these errors were encountered: