我试图通过不同的参数获得不同的响应,但有些东西不起作用。
这是我的 API:
## Question [/questions/{question_id}]
A Question object has the following attributes:
+ Parameters
+ question_id: `1` (number, required) - ID of the Question in form of an integer
### View a Questions Detail [GET]
+ Request
+ Header
X-Custom-Header : 1
+ Response 200 (application/json)
{
"id": "1",
"name": "Marco"
}
+ Request
+ Header
X-Custom-Header : 2
+ Response 200 (application/json)
{
"id: "2",
"name": "Lucas"
}
但是当调用 /questions/1 或 /questions/2 时,响应总是相同的:
{
"id": "1",
"name": "Marco"
}
怎么了?
谢谢