1. BodyType
Pet Store
  • Store API
    • Welcome to Apifox
    • gRPC API
    • import
      • pet
        • uploads an image
        • Add a new pet to the store
        • Update an existing pet
        • Finds Pets by status
        • Finds Pets by tags
        • Find pet by ID
        • Updates a pet in the store with form data
        • Deletes a pet
      • store
        • Returns pet inventories by status
        • Place an order for a pet
        • Find purchase order by ID
        • Delete purchase order by ID
      • user
        • Creates list of users with given input array
        • Get user by user name
        • Updated user
        • Delete user
        • Logs user into the system
        • Logs out current logged in user session
        • Creates list of users with given input array
        • Create user
    • 数据模型
      • Schemas
        • pet别名
        • User
        • Category
        • Order
        • ApiResponse
        • Tag
      • RequestBodies
        • UserArray
  • Admin API
    • Pet
      • BodyType
        • body is none
          POST
        • body is form-data
          POST
        • body is x-www-form-urlencoded
          POST
        • body is raw-RealAPI
          POST
        • body is raw-js
          POST
        • body is raw-json,RealAPI
          POST
        • body is raw/html
          POST
        • body is raw-xml,RealAPI
          POST
        • body is binary-RealAPI
          POST
      • AllMethod
        • get
        • post
        • put
        • patch
        • delete
        • head
        • options
        • Custom Types Trace(fox has this type)
        • Custom Types SELFDEFINED
        • Custom Types SELFDEFINED
      • All parameters test
        • 🦄 Request parameter's & pre-and-post Script's Full Verification
        • endpoint without Example
      • baseUrl test
        • 1-begin with {{baseUrl}}
        • 2-begin with http://baseurl.com
        • 3-begin with {{baseurl3}}
        • 4-begin with http://{{baseurl4}}
        • 5-begin with http://192.168.10.207
        • 6-begin with192.168.10.207:80
        • 7-begin with localhost
      • Duplicate Endpoint Test
        • endpoint1
        • endpoint2/1
        • endpoint2/2
        • endpoint2/3 ,without example
      • Folder’s documentation
        • Folder without documentation
        • Folder with documentation
          • Folder with documentation_multipleFolder
      • AuthTest
        • F1_Auth=inherite
          • FInherite/E1/Inherite
          • FInherite/E2/NoAuth
          • FInherite/E3/BasicAuth
          • FInherite/E4/Beartoken
          • FInherite/E5/JWTBear
          • FInherite/E6/Digest
          • FInherite/E7/Oauth1
          • FInherite/E8/Oauth2
          • FInherite/E9/HAWK
          • FInherite/E10/NTLM
          • FInherite/E11/APIKEY
          • FInherite/E12/AKAMAI
          • FInherite/E13/ASAP
        • F2_Auth=BasicAuth
          • FBasicAuth/EndpointInherite
          • FBasicAuth/EndpointNoAuth
          • FBasicAuth/EndpointBeartoken
      • pet
      • Payments
      • store
      • user
      • Batch Create Pets
        POST
      • Batch Delete Pets
        DELETE
    • Audit
      • BodyType
      • AllMethod
        • Custom Types SELFDEFINED
      • All parameters test
      • baseUrl test
      • Duplicate Endpoint Test
      • Folder’s documentation
        • Folder without documentation
        • Folder with documentation
          • Folder with documentation_multipleFolder
      • AuthTest
        • F1_Auth=inherite
        • F2_Auth=BasicAuth
      • pet
      • Payments
      • store
      • user
      • Query Audit Logs
    • F3
      • pet
        • Get Pet
        • Update Pet
        • Delete Pet
        • Create Pet
        • List Pets
        • Upload Pet Image
      • Payments
        • Pay Order
      • store
        • List Inventory
        • Create Order
        • Get Order
        • Delete Order
        • Callback Example
      • user
        • Create User
        • Update User
        • Get User
        • Delete User
        • Login
        • Logout
      • GraphQL Example
      • SSE Example
      • SOAP Example
    • 数据模型
      • Pet
      • User
      • OrderPayment
      • Category
      • Links-Order
      • Order
      • ApiResponse
      • Tag
  • User1114
    • pet
      • uploads an image
      • Add a new pet to the store
      • Update an existing pet
      • Finds Pets by status
      • Finds Pets by tags
      • Find pet by ID
      • Updates a pet in the store with form data
      • Deletes a pet
    • store
      • Returns pet inventories by status
      • Place an order for a pet
      • Find purchase order by ID
      • Delete purchase order by ID
    • user
      • Creates list of users with given input array
      • Get user by user name
      • Updated user
      • Delete user
      • Logs user into the system
      • Logs out current logged in user session
      • Creates list of users with given input array
      • Create user
    • 数据模型
      • Schemas
        • ApiResponse
        • Category
        • Pet
        • Tag
        • Order
        • User
      • RequestBodies
        • UserArray
  • import
    • apiA
    • apiB
    • apiC
    • 数据模型
      • schemasC
      • schemasB
      • schemasA
  1. BodyType

body is raw/html

POST
/m1/3925160-0-default/mock/v1/response_type/html.json

请求参数

Body 参数text/plain
示例
示例值:<html>233333</html>

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/m1/3925160-0-default/mock/v1/response_type/html.json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/plain' \
--data '<html>233333</html>'

返回响应

🟢200body is raw-html
text/html
示例
<html lang="zh-CN" class="ua-mac ua-webkit">
    <head>
        <script src="https://www.douban.com/j/push/get_token_with_ts?callback=jsonp_ouzew52e8g8ypvl" async=""></script>
        <script src="https://www.douban.com/j/doumail/num?callback=jsonp_ftj5qrb6tj9jhz2" async=""></script>
        <script src="https://www.douban.com/j/notification/num?callback=jsonp_kxk5hcf9zmy9mdc" async=""></script>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta name="renderer" content="webkit">
        <meta name="referrer" content="always">
        <meta name="google-site-verification" content="ok0wCgT20tBBgo9_zat2iAcimtN4Ftf5ccsh092Xeyw">
        <title>豆瓣</title>
        <meta content="提供图书、电影、音乐唱片的推荐、评论和价格比较,以及城市独特的文化生活。" name="description">
        <link href="https://img3.doubanio.com/f/shire/82404e45cd10dd7fbbfecf58ec7b7af0bee11c8d/css/frontpage/_init_.css" rel="stylesheet" type="text/css">
        <script type="text/javascript" src="https://img3.doubanio.com/f/shire/642fed3d277ca35bb6e0adab47d2ded5d3a40292/js/lib/hotkeys.js" async="true"></script>
        <script type="text/javascript" src="https://img3.doubanio.com/f/sns/008c8929e3bd357434147d51a3eac4eacc5b9aa3/js/sns/lifestream/status.js" async="true"></script>
        <script type="text/javascript" defer="" async="" src="https://img3.doubanio.com/dae/fundin/piwik.js"></script>
        <script async="" src="//www.googletagmanager.com/gtm.js?id=GTM-5WP579"></script>
        <script type="text/javascript" src="//img1.doubanio.com/YWVrMm1iYy9mL2FkanMvN2ZmNmEyM2M0ZDNjMmQxYWVkMjMwZDIwMDU5NWI2YTFkNDc5YjExYi9hZC5yZWxlYXNlLmpz" async="true"></script>
        <script type="text/javascript" src="https://img3.doubanio.com/f/shire/22ee83f45f94c7a90e73e0ee4acd18f902a6991f/js/douban.js" async="true"></script>
        <script type="text/javascript" src="https://img3.doubanio.com/f/shire/72ced6df41d4d158420cebdd254f9562942464e3/js/jquery.min.js" async="true"></script>
        <script>_head_start = new Date();</script>
        <script src="https://img3.doubanio.com/f/shire/dc0a439c9c2da4eacfa6bdf567c83b8f4f2c9037/js/core/_init_.js" data-cfg-corelib="https://img3.doubanio.com/f/shire/72ced6df41d4d158420cebdd254f9562942464e3/js/jquery.min.js"></script>
        <style type="text/css"></style>
        <link rel="stylesheet" href="https://img3.doubanio.com/misc/mixed_static/515d41e8a757186c.css">
        <script>
        Do.global('https://img3.doubanio.com/f/shire/22ee83f45f94c7a90e73e0ee4acd18f902a6991f/js/douban.js');
        
    </script>
        <link rel="shortcut icon" href="https://img3.doubanio.com/favicon.ico" type="image/x-icon">
        <script src="https://img3.doubanio.com/f/sns/e79ddd0bf187495ec95f93c406abbfe6b2b9ce45/js/sns/widgets/isay_a.js"></script>
        <style type="text/css">/* Copyright 2014-present Evernote Corporation. All rights reserved. */
@keyframes caretBlink {
    from { opacity: 1.0; }
    to { opacity: 0.0; }
}

@keyframes rotateSpinner {
    from {
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}

#text-tool-caret {
    animation-name: caretBlink;  
    animation-iteration-count: infinite;  
    animation-timing-function: cubic-bezier(1.0,0,0,1.0);
    animation-duration: 1s; 
}

#en-markup-loading-spinner {
    position: absolute;
    top: calc(50% - 16px);
    left: calc(50% - 16px);
    width: 32px;
    height: 32px;
}

#en-markup-loading-spinner img {
    position: relative;
    top: 0px;
    left: 0px;
    animation-name: rotateSpinner;
    animation-duration: 0.6s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
</style>
        <style type="text/css">/* Copyright 2014-present Evernote Corporation. All rights reserved. */
.skitchToastBoxContainer {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 30px;
    -webkit-user-select: none;
    -moz-user-select: none;
    pointer-events: none;
}

.skitchToastBox {
    width: 200px;
    height: 16px;
    padding: 12px;
    background-color: rgba(47, 55, 61, 0.95);
    border-radius: 4px;
    color: white;
    cursor: default;
    font-size: 10pt;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.32);
    font-family: 'Soleil', Helvetica, Arial, sans-serif;
    border: 2px rgba(255, 255, 255, 0.38) solid;
}

.lang-zh-cn .skitchToastBox {
    font-family: '微软雅黑', 'Microsoft YaHei', SimSun,
        '&#x30E1;&#x30A4;&#x30EA;&#x30AA;', Meiryo, 'MS PGothic', 'Soleil',
        Helvetica, Arial, sans-serif;
}

.lang-ja-jp .skitchToastBox {
    font-family: '&#x30E1;&#x30A4;&#x30EA;&#x30AA;', Meiryo, 'MS PGothic',
        '微软雅黑', 'Microsoft YaHei', SimSun, 'Soleil', Helvetica, Arial,
        sans-serif;
}

.skitchToast {
    padding-left: 20px;
    padding-right: 20px;
    display: inline-block;
    height: 10px;
    color: #f1f5f8;
    text-align: center;
}

.skitchVisible {
    /* Don't remove this class it's a hack used by the Evernote Clipper */
}
</style>
        <style type
修改于 2025-11-15 04:26:43
上一页
body is raw-json,RealAPI
下一页
body is raw-xml,RealAPI
Built with