-
org.springframework.cloud.contract.spec.Contract.make {
- request {
- method 'PUT'
- url '/api/12'
- headers {
- header 'Content-Type': 'application/vnd.org.springframework.cloud.contract.verifier.twitter-places-analyzer.v1+json'
- }
- body '''\
- [{
- "created_at": "Sat Jul 26 09:38:57 +0000 2014",
- "id": 492967299297845248,
- "id_str": "492967299297845248",
- "text": "Gonna see you at Warsaw",
- "place":
- {
- "attributes":{},
- "bounding_box":
- {
- "coordinates":
- [[
- [-77.119759,38.791645],
- [-76.909393,38.791645],
- [-76.909393,38.995548],
- [-77.119759,38.995548]
- ]],
- "type":"Polygon"
- },
- "country":"United States",
- "country_code":"US",
- "full_name":"Washington, DC",
- "id":"01fbe706f872cb32",
- "name":"Washington",
- "place_type":"city",
- "url": "http://api.twitter.com/1/geo/id/01fbe706f872cb32.json"
- }
- }]
- '''
- }
- response {
- status 200
- }
-}
-