This gist was automatically created by the JSON-LD Playground. You can see it loaded there by visiting: http://json-ld.org/playground/#/gist/1857597f2bbdc06525e3
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 de.kommone.kmc.api; | |
import java.util.TimeZone; | |
import javax.ws.rs.Produces; | |
import javax.ws.rs.ext.ContextResolver; | |
import javax.ws.rs.ext.Provider; | |
import com.fasterxml.jackson.databind.ObjectMapper; |
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
#!/bin/sh | |
# see https://superuser.com/a/862395/1001553 if you can use bash and want to avoid temp file | |
# let curl fail on error and print response code while redirecting body to file | |
# read curl stdout into variable | |
http_status=$(curl --request POST \ | |
--fail \ | |
--silent --write-out '%{http_code}' \ | |
--output response.json \ | |
--url http://gitlab.dzbw.de/api/v4/projects/4560/merge_requests \ |
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
version: "3" | |
services: | |
web: | |
image: emilevauge/whoami | |
networks: | |
- default | |
- traefik-net | |
deploy: | |
labels: | |
- "traefik.port=80" |
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
ivrs_ioapic[4]=00:14.0 ivrs_ioapic[5]=00:00.2 |
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
@Configuration | |
public class DmnConfig { | |
/** | |
* Creates DMN engine with feel-scala engine as default language. | |
* | |
* @return engine | |
* @see <a href="https://github.com/camunda/camunda-engine-dmn">Simple Engine Setup</a> | |
* @see <a href="https://github.com/camunda/feel-scala/tree/master/feel-engine#how-to-use-it">Using full FEEL language in Camunda DMN</a> | |
*/ |
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
@RunWith(SpringRunner.class) | |
@SpringBootTest(classes = Application.class) | |
@SpringIntegrationTest | |
@ActiveProfiles("local") | |
@AutoConfigureMockMvc | |
@TestPropertySource(properties = { | |
"my.setting=watchamacallit" | |
}) | |
public class ApplicationTest { |
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 de.escalon.builders.json; | |
import net.minidev.json.JSONArray; | |
import net.minidev.json.JSONObject; | |
import java.io.Serializable; | |
/** |
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
{ | |
"uber": { | |
"data": [ | |
{ | |
"rel": [ | |
"self" | |
], | |
"url": "http://localhost:8080/webapp/hypermedia-api/events", | |
"action": "APPEND", | |
"model": "performer={performer}&workPerformed.name={workPerformed.name}&location={location}&eventStatus={eventStatus}" |
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
{ | |
"@context": { | |
"@vocab": "http://schema.org", | |
"hydra": "http://www.w3.org/ns/hydra/core#" | |
}, | |
"@id": "http://www.markus-lanthaler.com/hydra/event-api/events/1", | |
"@type": "Event", | |
"name": "Walk off the Earth - REVO tour", | |
"description": "Live in concert", | |
"startDate": "2014-06-14T20:00:00Z", |
NewerOlder