blob: fbe940811bf88d2f759d26f2deb382fc6d753ac0 [file]
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
### orderSave
POST http://localhost:8289/order/save
Accept: application/json
Content-Type: application/json
{
"id": 123,
"name": "order"
}
### findById
GET http://localhost:8289/order/findById?id=123
Accept: application/json
Content-Type: application/json
### path
GET http://localhost:8289/order/path/123/hahah
Accept: application/json
Content-Type: application/json
### path
GET http://localhost:8289/order/path/123/name
Accept: application/json
Content-Type: application/json
### oauth2
GET http://localhost:8289/order/oauth2/test
Accept: application/json
Content-Type: application/json
Authorization:AuthorizationContext
### payment
POST http://localhost:8289/test/payment
Accept: application/json
Content-Type: application/json
{
"userId": 123,
"userName": "name"
}
### findByUserId
GET http://localhost:8289/test/findByUserId?userId=123
Accept: application/json
Content-Type: application/json
### path
GET http://localhost:8289/test/path/123?name=haha
Accept: application/json
Content-Type: application/json
### path
GET http://localhost:8289/test/path/123/name
Accept: application/json
Content-Type: application/json
### waf pass
POST http://localhost:8289/test/waf/pass
Accept: application/json
Content-Type: application/json
### waf deny
POST http://localhost:8289/test/waf/deny
Accept: application/json
Content-Type: application/json
### request parameter pass
GET http://localhost:8289/test/request/parameter/pass?requestParameter=test
Accept: application/json
Content-Type: application/json
### example singleFile
POST http://localhost:8289/upload/singleFile
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="1.txt"
Content-Type: multipart/form-data
# you need to change your local path
< /Users/Code/shenyu/shenyu-examples/shenyu-examples-common/src/main/resources/1.txt
--WebAppBoundary--
### example files
POST http://localhost:8289/upload/files
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="files"; filename="1.txt";
Content-Type: multipart/form-data
# you need to change your local path
< /Users/Code/shenyu/shenyu-examples/shenyu-examples-common/src/main/resources/1.txt
--WebAppBoundary--
--WebAppBoundary
Content-Disposition: form-data; name="files"; filename="2.txt";
Content-Type: multipart/form-data
# you need to change your local path
< /Users/Code/shenyu/shenyu-examples/shenyu-examples-common/src/main/resources/2.txt
--WebAppBoundary--