我需要从User类中创建两种不同类型的POST.
//JSON Type A
{
    "password":"12345",
    "email":"test@gmail.com"
}
//JSON Type B
{
   "user":{
      "Password":"12345",
      "Email":"sample@gmail.com"
   }
}
Run Code Online (Sandbox Code Playgroud)
我试图制作两个请求描述符并将它们添加到我的对象管理器但是我得到了错误
"无法为与现有请求描述符相同的对象类添加请求描述符."
我的代码
@interface User : NSObject
@property (nonatomic, retain) NSString * userID;
@property (nonatomic, retain) NSString * email;
@property (nonatomic, retain) NSString * password;
@property (nonatomic, retain) NSString * firstName;
@property (nonatomic, retain) NSString * lastName;
@end
- (void)setupUserMapping:(RKObjectManager *)objectManager {
    // Setup user response mappings
    RKObjectMapping *userMapping = [RKObjectMapping mappingForClass:[User class]];
    [userMapping addAttributeMappingsFromDictionary:@{
     @"ID" :@"userID",
     @"Email" : @"email",
     @"Password" : @"password", …Run Code Online (Sandbox Code Playgroud) 我当前正在使用IIS 的ApplicationInitialization功能来预热我的ASP.NET应用程序。我已经将属性remapManagedRequestsTo设置为“ warmup.html”。
<applicationInitialization remapManagedRequestsTo="warmup.html" skipManagedModules="true" doAppInitAfterRestart="true" >
  <add initializationPage="/home" />  
  <add initializationPage="/about-us" />      
</applicationInitialization>
Run Code Online (Sandbox Code Playgroud)
它运行良好,但是当Warmup.html的内容返回到浏览器时,我想返回一个自定义状态代码。这样,当我在部署后进行一些烟雾测试时,我会知道预热何时完成。
我尝试使用URL重写将状态代码从200更改为555,以提供warmup.html,它确实更改了状态代码,但不提供warmup.html中的内容
<rewrite>
  <rules>
    <rule name="Change warm up status code" stopProcessing="true">
      <match url="warmup.html" />          
      <action type="CustomResponse" statusCode="555" subStatusCode="0"/>        
  </rule>
</rules>
</rewrite>
Run Code Online (Sandbox Code Playgroud)
有什么办法可以同时提供warmup.html的内容并返回555的自定义状态代码?
是否有一种简单的方法可以在给定资源组的每个App Service Plan中为每个Web应用程序导出所有AppSettings?
我目前在给定资源组的不同应用程序服务计划下运行了大约20个应用程序,我正在创建Azure资源管理器(ARM)模板以便于分配/取消分配资源,我发现"自动化脚本"功能在很大程度上是有用的,但它似乎不会导出我通过Azure门户中的Webapp的应用程序设置刀片添加的任何AppSettings.