我想从cookie中获取用户ID,如果可用,我需要骑车,否则插入cookie。现在我尝试在标头中设置它。
"get": {
"summary": "This service used to get the student list.",
"description": "This service used to get the student list.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "userId",
"in": "header",
"description": "cookies",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "This service used to get student list"
}
}
}