DemoService
A list of all methods in the DemoService service. Click on the method name to view detailed information about that method.
| Methods | Description |
|---|---|
| createDemo | Creates a new Demo access |
| deleteDemo | Deletes the Demo access |
createDemo
Creates a new Demo access
- HTTP Method:
POST - Endpoint:
/demo
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| demoParams | DemoParams | ✅ | Request Body |
Return Type
Demo
Example Usage Code Snippet
import com.swagger.petstore.TestSdk;
import com.swagger.petstore.config.TestSdkConfig;
import com.swagger.petstore.models.Demo;
import com.swagger.petstore.models.DemoParams;
import com.swagger.petstore.models.Permission;
public class Main {
public static void main(String[] args) {
TestSdkConfig config = TestSdkConfig.builder()
.accessToken("YOUR_ACCESS_TOKEN")
.build();
TestSdk testSdk = new TestSdk(config);
DemoParams demoParams = DemoParams.builder()
.permission(Permission.READ_WRITE)
.email("email")
.build();
Demo response = testSdk.demo.createDemo(demoParams);
System.out.println(response);
}
}
deleteDemo
Deletes the Demo access
- HTTP Method:
DELETE - Endpoint:
/demo
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| demoParams | DemoParams | ✅ | Request Body |
Return Type
Demo
Example Usage Code Snippet
import com.swagger.petstore.TestSdk;
import com.swagger.petstore.config.TestSdkConfig;
import com.swagger.petstore.models.Demo;
import com.swagger.petstore.models.DemoParams;
import com.swagger.petstore.models.Permission;
public class Main {
public static void main(String[] args) {
TestSdkConfig config = TestSdkConfig.builder()
.accessToken("YOUR_ACCESS_TOKEN")
.build();
TestSdk testSdk = new TestSdk(config);
DemoParams demoParams = DemoParams.builder()
.permission(Permission.READ_WRITE)
.email("email")
.build();
Demo response = testSdk.demo.deleteDemo(demoParams);
System.out.println(response);
}
}