This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.3 | |
info: | |
version: 1.0.0 | |
title: initialization demo | |
paths: | |
/: | |
get: | |
responses: | |
'200': | |
description: dummy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.openapitools.client; | |
import org.openapitools.client.api.DefaultApi; | |
import java.time.OffsetDateTime; | |
public class Main { | |
public static void main(String[] args) { | |
DefaultApi apiInstance = new DefaultApi(new ApiClient()); | |
String result = apiInstance.anythingGet(OffsetDateTime.now()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package demo; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.http.HttpStatus; | |
import org.springframework.http.ResponseEntity; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.validation.annotation.Validated; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RequestMethod; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.3 | |
info: | |
title: example of a parent schema with discriminator property that is an enum | |
version: "2.0" | |
paths: | |
"/pet/{petId}": | |
get: | |
summary: Find pet by id | |
operationId: getBetById | |
parameters: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: "2.0" | |
info: | |
title: dummy | |
version: dummy | |
paths: | |
/property: | |
post: | |
consumes: | |
- application/x-www-form-urlencoded | |
parameters: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
description: "This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\" | |
version: 1.0.0 | |
title: OpenAPI Petstore | |
paths: | |
'/': | |
get: | |
description: dummy | |
operationId: getSingle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def layout = session.lookup('org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout'); | |
def repoFactory = session.lookup('org.apache.maven.artifact.repository.ArtifactRepositoryFactory'); | |
def repository = repoFactory.createDeploymentArtifactRepository( | |
project.distributionManagement.repository.id, | |
project.distributionManagement.repository.url, | |
layout, true ); | |
def snapshotRepository = repoFactory.createDeploymentArtifactRepository( | |
project.distributionManagement.snapshotRepository.id, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) throws Exception | |
{ | |
final int WIDTH = 5; | |
final int HEIGHT = 5; | |
GridCoverageBuilder builder = new GridCoverageBuilder(); | |
builder.setEnvelope(0, 0, WIDTH, HEIGHT); // x_min, y_min, x_max, y_max | |
/* | |
According to the documentation, the min and max allowed values for the coordinates are to be specified here, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snow = { | |
count: 60, | |
delay: 20, | |
flutter: 0.2, | |
wobble: 0.5, | |
spin: 1.0, | |
wind: 1.0, | |
w1: 1, | |
minSpeed: 0.3, | |
maxSpeed: 4, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Date.au3> | |
#include <Array.au3> | |
#include <Constants.au3> | |
Local $iUnixTime1 = _GetUnixTime() | |
MsgBox($MB_SYSTEMMODAL, 'Seconds Since Jan, 1st, 1970 00:00:00 GMT', $iUnixTime1) | |
Local $sUnixDate1 = _GetDate_fromUnixTime($iUnixTime1) | |
MsgBox($MB_SYSTEMMODAL, "", $sUnixDate1) |
NewerOlder