restfully 1.0.0.rc2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,11 +21,6 @@ module Restfully
21
21
 
22
22
  def valid?
23
23
  @errors = []
24
- if type.nil? || type.empty?
25
- errors << "type cannot be blank"
26
- elsif media_type.nil?
27
- errors << "cannot find a MediaType for type #{type.inspect}"
28
- end
29
24
  if href.nil?
30
25
  errors << "href cannot be nil"
31
26
  end
@@ -9,7 +9,7 @@ module Restfully
9
9
  site
10
10
  cluster
11
11
  node
12
- nodeStatus
12
+ nodestatus
13
13
  version
14
14
  collection
15
15
  timeseries
@@ -18,11 +18,14 @@ module Restfully
18
18
  metric
19
19
  job
20
20
  deployment
21
+ networkequipment
21
22
  notification
22
23
  }.map{|n|
23
24
  "application/vnd.fr.grid5000.api.#{n}+json"
24
25
  }.unshift(
25
- "application/vnd.grid5000+json"
26
+ "application/vnd.grid5000.collection+json"
27
+ ).unshift(
28
+ "application/vnd.grid5000.item+json"
26
29
  )
27
30
  set :parser, ApplicationJson::JSONParser
28
31
 
@@ -10,6 +10,8 @@ module Restfully
10
10
 
11
11
  HIDDEN_PROPERTIES_REGEXP = /^\_\_(.+)\_\_$/
12
12
 
13
+ include HTTP::Helper
14
+
13
15
  def initialize(session, response, request)
14
16
  @session = session
15
17
  @response = response
@@ -202,9 +204,13 @@ module Restfully
202
204
  metaclass = class << self; self; end
203
205
  response.links.each do |link|
204
206
  metaclass.send(:define_method, link.id.to_sym) do |*args|
205
- session.get(link.href, :head => {
206
- 'Accept' => link.type
207
- }).load(*args)
207
+ options = args.extract_options!
208
+ head = options.delete(:headers) || options.delete(:head) || {}
209
+ head = sanitize_head(head)
210
+ head['Accept'] ||= (
211
+ link.type || media_type.class.signature.join(",")
212
+ )
213
+ session.get(link.href, options.merge(:head => head))
208
214
  end
209
215
  end
210
216
  self
@@ -1,3 +1,3 @@
1
1
  module Restfully
2
- VERSION = "1.0.0.rc2"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -13,12 +13,12 @@
13
13
  "links": [{
14
14
  "rel": "self",
15
15
  "href": "/grid5000/sites/rennes/jobs/376505",
16
- "type": "application/vnd.grid5000+json"
16
+ "type": "application/vnd.grid5000.item+json"
17
17
  },
18
18
  {
19
19
  "rel": "parent",
20
20
  "href": "/grid5000/sites/rennes",
21
- "type": "application/vnd.grid5000+json"
21
+ "type": "application/vnd.grid5000.item+json"
22
22
  }]
23
23
  },
24
24
  {
@@ -32,12 +32,12 @@
32
32
  "links": [{
33
33
  "rel": "self",
34
34
  "href": "/grid5000/sites/rennes/jobs/376504",
35
- "type": "application/vnd.grid5000+json"
35
+ "type": "application/vnd.grid5000.item+json"
36
36
  },
37
37
  {
38
38
  "rel": "parent",
39
39
  "href": "/grid5000/sites/rennes",
40
- "type": "application/vnd.grid5000+json"
40
+ "type": "application/vnd.grid5000.item+json"
41
41
  }]
42
42
  },
43
43
  {
@@ -51,12 +51,12 @@
51
51
  "links": [{
52
52
  "rel": "self",
53
53
  "href": "/grid5000/sites/rennes/jobs/376503",
54
- "type": "application/vnd.grid5000+json"
54
+ "type": "application/vnd.grid5000.item+json"
55
55
  },
56
56
  {
57
57
  "rel": "parent",
58
58
  "href": "/grid5000/sites/rennes",
59
- "type": "application/vnd.grid5000+json"
59
+ "type": "application/vnd.grid5000.item+json"
60
60
  }]
61
61
  },
62
62
  {
@@ -72,12 +72,12 @@
72
72
  "links": [{
73
73
  "rel": "self",
74
74
  "href": "/grid5000/sites/rennes/jobs/376502",
75
- "type": "application/vnd.grid5000+json"
75
+ "type": "application/vnd.grid5000.item+json"
76
76
  },
77
77
  {
78
78
  "rel": "parent",
79
79
  "href": "/grid5000/sites/rennes",
80
- "type": "application/vnd.grid5000+json"
80
+ "type": "application/vnd.grid5000.item+json"
81
81
  }]
82
82
  },
83
83
  {
@@ -92,12 +92,12 @@
92
92
  "links": [{
93
93
  "rel": "self",
94
94
  "href": "/grid5000/sites/rennes/jobs/376501",
95
- "type": "application/vnd.grid5000+json"
95
+ "type": "application/vnd.grid5000.item+json"
96
96
  },
97
97
  {
98
98
  "rel": "parent",
99
99
  "href": "/grid5000/sites/rennes",
100
- "type": "application/vnd.grid5000+json"
100
+ "type": "application/vnd.grid5000.item+json"
101
101
  }]
102
102
  },
103
103
  {
@@ -111,12 +111,12 @@
111
111
  "links": [{
112
112
  "rel": "self",
113
113
  "href": "/grid5000/sites/rennes/jobs/376500",
114
- "type": "application/vnd.grid5000+json"
114
+ "type": "application/vnd.grid5000.item+json"
115
115
  },
116
116
  {
117
117
  "rel": "parent",
118
118
  "href": "/grid5000/sites/rennes",
119
- "type": "application/vnd.grid5000+json"
119
+ "type": "application/vnd.grid5000.item+json"
120
120
  }]
121
121
  },
122
122
  {
@@ -131,12 +131,12 @@
131
131
  "links": [{
132
132
  "rel": "self",
133
133
  "href": "/grid5000/sites/rennes/jobs/376499",
134
- "type": "application/vnd.grid5000+json"
134
+ "type": "application/vnd.grid5000.item+json"
135
135
  },
136
136
  {
137
137
  "rel": "parent",
138
138
  "href": "/grid5000/sites/rennes",
139
- "type": "application/vnd.grid5000+json"
139
+ "type": "application/vnd.grid5000.item+json"
140
140
  }]
141
141
  },
142
142
  {
@@ -150,12 +150,12 @@
150
150
  "links": [{
151
151
  "rel": "self",
152
152
  "href": "/grid5000/sites/rennes/jobs/376498",
153
- "type": "application/vnd.grid5000+json"
153
+ "type": "application/vnd.grid5000.item+json"
154
154
  },
155
155
  {
156
156
  "rel": "parent",
157
157
  "href": "/grid5000/sites/rennes",
158
- "type": "application/vnd.grid5000+json"
158
+ "type": "application/vnd.grid5000.item+json"
159
159
  }]
160
160
  },
161
161
  {
@@ -169,12 +169,12 @@
169
169
  "links": [{
170
170
  "rel": "self",
171
171
  "href": "/grid5000/sites/rennes/jobs/376497",
172
- "type": "application/vnd.grid5000+json"
172
+ "type": "application/vnd.grid5000.item+json"
173
173
  },
174
174
  {
175
175
  "rel": "parent",
176
176
  "href": "/grid5000/sites/rennes",
177
- "type": "application/vnd.grid5000+json"
177
+ "type": "application/vnd.grid5000.item+json"
178
178
  }]
179
179
  },
180
180
  {
@@ -190,12 +190,12 @@
190
190
  "links": [{
191
191
  "rel": "self",
192
192
  "href": "/grid5000/sites/rennes/jobs/376496",
193
- "type": "application/vnd.grid5000+json"
193
+ "type": "application/vnd.grid5000.item+json"
194
194
  },
195
195
  {
196
196
  "rel": "parent",
197
197
  "href": "/grid5000/sites/rennes",
198
- "type": "application/vnd.grid5000+json"
198
+ "type": "application/vnd.grid5000.item+json"
199
199
  }]
200
200
  },
201
201
  {
@@ -210,12 +210,12 @@
210
210
  "links": [{
211
211
  "rel": "self",
212
212
  "href": "/grid5000/sites/rennes/jobs/376495",
213
- "type": "application/vnd.grid5000+json"
213
+ "type": "application/vnd.grid5000.item+json"
214
214
  },
215
215
  {
216
216
  "rel": "parent",
217
217
  "href": "/grid5000/sites/rennes",
218
- "type": "application/vnd.grid5000+json"
218
+ "type": "application/vnd.grid5000.item+json"
219
219
  }]
220
220
  },
221
221
  {
@@ -230,12 +230,12 @@
230
230
  "links": [{
231
231
  "rel": "self",
232
232
  "href": "/grid5000/sites/rennes/jobs/376494",
233
- "type": "application/vnd.grid5000+json"
233
+ "type": "application/vnd.grid5000.item+json"
234
234
  },
235
235
  {
236
236
  "rel": "parent",
237
237
  "href": "/grid5000/sites/rennes",
238
- "type": "application/vnd.grid5000+json"
238
+ "type": "application/vnd.grid5000.item+json"
239
239
  }]
240
240
  },
241
241
  {
@@ -250,12 +250,12 @@
250
250
  "links": [{
251
251
  "rel": "self",
252
252
  "href": "/grid5000/sites/rennes/jobs/376493",
253
- "type": "application/vnd.grid5000+json"
253
+ "type": "application/vnd.grid5000.item+json"
254
254
  },
255
255
  {
256
256
  "rel": "parent",
257
257
  "href": "/grid5000/sites/rennes",
258
- "type": "application/vnd.grid5000+json"
258
+ "type": "application/vnd.grid5000.item+json"
259
259
  }]
260
260
  },
261
261
  {
@@ -269,12 +269,12 @@
269
269
  "links": [{
270
270
  "rel": "self",
271
271
  "href": "/grid5000/sites/rennes/jobs/376492",
272
- "type": "application/vnd.grid5000+json"
272
+ "type": "application/vnd.grid5000.item+json"
273
273
  },
274
274
  {
275
275
  "rel": "parent",
276
276
  "href": "/grid5000/sites/rennes",
277
- "type": "application/vnd.grid5000+json"
277
+ "type": "application/vnd.grid5000.item+json"
278
278
  }]
279
279
  },
280
280
  {
@@ -289,12 +289,12 @@
289
289
  "links": [{
290
290
  "rel": "self",
291
291
  "href": "/grid5000/sites/rennes/jobs/376491",
292
- "type": "application/vnd.grid5000+json"
292
+ "type": "application/vnd.grid5000.item+json"
293
293
  },
294
294
  {
295
295
  "rel": "parent",
296
296
  "href": "/grid5000/sites/rennes",
297
- "type": "application/vnd.grid5000+json"
297
+ "type": "application/vnd.grid5000.item+json"
298
298
  }]
299
299
  },
300
300
  {
@@ -310,12 +310,12 @@
310
310
  "links": [{
311
311
  "rel": "self",
312
312
  "href": "/grid5000/sites/rennes/jobs/376489",
313
- "type": "application/vnd.grid5000+json"
313
+ "type": "application/vnd.grid5000.item+json"
314
314
  },
315
315
  {
316
316
  "rel": "parent",
317
317
  "href": "/grid5000/sites/rennes",
318
- "type": "application/vnd.grid5000+json"
318
+ "type": "application/vnd.grid5000.item+json"
319
319
  }]
320
320
  },
321
321
  {
@@ -330,12 +330,12 @@
330
330
  "links": [{
331
331
  "rel": "self",
332
332
  "href": "/grid5000/sites/rennes/jobs/376490",
333
- "type": "application/vnd.grid5000+json"
333
+ "type": "application/vnd.grid5000.item+json"
334
334
  },
335
335
  {
336
336
  "rel": "parent",
337
337
  "href": "/grid5000/sites/rennes",
338
- "type": "application/vnd.grid5000+json"
338
+ "type": "application/vnd.grid5000.item+json"
339
339
  }]
340
340
  },
341
341
  {
@@ -349,12 +349,12 @@
349
349
  "links": [{
350
350
  "rel": "self",
351
351
  "href": "/grid5000/sites/rennes/jobs/376488",
352
- "type": "application/vnd.grid5000+json"
352
+ "type": "application/vnd.grid5000.item+json"
353
353
  },
354
354
  {
355
355
  "rel": "parent",
356
356
  "href": "/grid5000/sites/rennes",
357
- "type": "application/vnd.grid5000+json"
357
+ "type": "application/vnd.grid5000.item+json"
358
358
  }]
359
359
  },
360
360
  {
@@ -369,12 +369,12 @@
369
369
  "links": [{
370
370
  "rel": "self",
371
371
  "href": "/grid5000/sites/rennes/jobs/376487",
372
- "type": "application/vnd.grid5000+json"
372
+ "type": "application/vnd.grid5000.item+json"
373
373
  },
374
374
  {
375
375
  "rel": "parent",
376
376
  "href": "/grid5000/sites/rennes",
377
- "type": "application/vnd.grid5000+json"
377
+ "type": "application/vnd.grid5000.item+json"
378
378
  }]
379
379
  },
380
380
  {
@@ -389,12 +389,12 @@
389
389
  "links": [{
390
390
  "rel": "self",
391
391
  "href": "/grid5000/sites/rennes/jobs/376486",
392
- "type": "application/vnd.grid5000+json"
392
+ "type": "application/vnd.grid5000.item+json"
393
393
  },
394
394
  {
395
395
  "rel": "parent",
396
396
  "href": "/grid5000/sites/rennes",
397
- "type": "application/vnd.grid5000+json"
397
+ "type": "application/vnd.grid5000.item+json"
398
398
  }]
399
399
  },
400
400
  {
@@ -408,12 +408,12 @@
408
408
  "links": [{
409
409
  "rel": "self",
410
410
  "href": "/grid5000/sites/rennes/jobs/376485",
411
- "type": "application/vnd.grid5000+json"
411
+ "type": "application/vnd.grid5000.item+json"
412
412
  },
413
413
  {
414
414
  "rel": "parent",
415
415
  "href": "/grid5000/sites/rennes",
416
- "type": "application/vnd.grid5000+json"
416
+ "type": "application/vnd.grid5000.item+json"
417
417
  }]
418
418
  },
419
419
  {
@@ -428,12 +428,12 @@
428
428
  "links": [{
429
429
  "rel": "self",
430
430
  "href": "/grid5000/sites/rennes/jobs/376484",
431
- "type": "application/vnd.grid5000+json"
431
+ "type": "application/vnd.grid5000.item+json"
432
432
  },
433
433
  {
434
434
  "rel": "parent",
435
435
  "href": "/grid5000/sites/rennes",
436
- "type": "application/vnd.grid5000+json"
436
+ "type": "application/vnd.grid5000.item+json"
437
437
  }]
438
438
  },
439
439
  {
@@ -447,12 +447,12 @@
447
447
  "links": [{
448
448
  "rel": "self",
449
449
  "href": "/grid5000/sites/rennes/jobs/376483",
450
- "type": "application/vnd.grid5000+json"
450
+ "type": "application/vnd.grid5000.item+json"
451
451
  },
452
452
  {
453
453
  "rel": "parent",
454
454
  "href": "/grid5000/sites/rennes",
455
- "type": "application/vnd.grid5000+json"
455
+ "type": "application/vnd.grid5000.item+json"
456
456
  }]
457
457
  },
458
458
  {
@@ -467,12 +467,12 @@
467
467
  "links": [{
468
468
  "rel": "self",
469
469
  "href": "/grid5000/sites/rennes/jobs/376482",
470
- "type": "application/vnd.grid5000+json"
470
+ "type": "application/vnd.grid5000.item+json"
471
471
  },
472
472
  {
473
473
  "rel": "parent",
474
474
  "href": "/grid5000/sites/rennes",
475
- "type": "application/vnd.grid5000+json"
475
+ "type": "application/vnd.grid5000.item+json"
476
476
  }]
477
477
  },
478
478
  {
@@ -487,12 +487,12 @@
487
487
  "links": [{
488
488
  "rel": "self",
489
489
  "href": "/grid5000/sites/rennes/jobs/376481",
490
- "type": "application/vnd.grid5000+json"
490
+ "type": "application/vnd.grid5000.item+json"
491
491
  },
492
492
  {
493
493
  "rel": "parent",
494
494
  "href": "/grid5000/sites/rennes",
495
- "type": "application/vnd.grid5000+json"
495
+ "type": "application/vnd.grid5000.item+json"
496
496
  }]
497
497
  },
498
498
  {
@@ -506,12 +506,12 @@
506
506
  "links": [{
507
507
  "rel": "self",
508
508
  "href": "/grid5000/sites/rennes/jobs/376480",
509
- "type": "application/vnd.grid5000+json"
509
+ "type": "application/vnd.grid5000.item+json"
510
510
  },
511
511
  {
512
512
  "rel": "parent",
513
513
  "href": "/grid5000/sites/rennes",
514
- "type": "application/vnd.grid5000+json"
514
+ "type": "application/vnd.grid5000.item+json"
515
515
  }]
516
516
  },
517
517
  {
@@ -525,12 +525,12 @@
525
525
  "links": [{
526
526
  "rel": "self",
527
527
  "href": "/grid5000/sites/rennes/jobs/376479",
528
- "type": "application/vnd.grid5000+json"
528
+ "type": "application/vnd.grid5000.item+json"
529
529
  },
530
530
  {
531
531
  "rel": "parent",
532
532
  "href": "/grid5000/sites/rennes",
533
- "type": "application/vnd.grid5000+json"
533
+ "type": "application/vnd.grid5000.item+json"
534
534
  }]
535
535
  },
536
536
  {
@@ -545,12 +545,12 @@
545
545
  "links": [{
546
546
  "rel": "self",
547
547
  "href": "/grid5000/sites/rennes/jobs/376478",
548
- "type": "application/vnd.grid5000+json"
548
+ "type": "application/vnd.grid5000.item+json"
549
549
  },
550
550
  {
551
551
  "rel": "parent",
552
552
  "href": "/grid5000/sites/rennes",
553
- "type": "application/vnd.grid5000+json"
553
+ "type": "application/vnd.grid5000.item+json"
554
554
  }]
555
555
  },
556
556
  {
@@ -565,12 +565,12 @@
565
565
  "links": [{
566
566
  "rel": "self",
567
567
  "href": "/grid5000/sites/rennes/jobs/376477",
568
- "type": "application/vnd.grid5000+json"
568
+ "type": "application/vnd.grid5000.item+json"
569
569
  },
570
570
  {
571
571
  "rel": "parent",
572
572
  "href": "/grid5000/sites/rennes",
573
- "type": "application/vnd.grid5000+json"
573
+ "type": "application/vnd.grid5000.item+json"
574
574
  }]
575
575
  },
576
576
  {
@@ -584,12 +584,12 @@
584
584
  "links": [{
585
585
  "rel": "self",
586
586
  "href": "/grid5000/sites/rennes/jobs/376476",
587
- "type": "application/vnd.grid5000+json"
587
+ "type": "application/vnd.grid5000.item+json"
588
588
  },
589
589
  {
590
590
  "rel": "parent",
591
591
  "href": "/grid5000/sites/rennes",
592
- "type": "application/vnd.grid5000+json"
592
+ "type": "application/vnd.grid5000.item+json"
593
593
  }]
594
594
  },
595
595
  {
@@ -603,12 +603,12 @@
603
603
  "links": [{
604
604
  "rel": "self",
605
605
  "href": "/grid5000/sites/rennes/jobs/376475",
606
- "type": "application/vnd.grid5000+json"
606
+ "type": "application/vnd.grid5000.item+json"
607
607
  },
608
608
  {
609
609
  "rel": "parent",
610
610
  "href": "/grid5000/sites/rennes",
611
- "type": "application/vnd.grid5000+json"
611
+ "type": "application/vnd.grid5000.item+json"
612
612
  }]
613
613
  },
614
614
  {
@@ -624,12 +624,12 @@
624
624
  "links": [{
625
625
  "rel": "self",
626
626
  "href": "/grid5000/sites/rennes/jobs/376473",
627
- "type": "application/vnd.grid5000+json"
627
+ "type": "application/vnd.grid5000.item+json"
628
628
  },
629
629
  {
630
630
  "rel": "parent",
631
631
  "href": "/grid5000/sites/rennes",
632
- "type": "application/vnd.grid5000+json"
632
+ "type": "application/vnd.grid5000.item+json"
633
633
  }]
634
634
  },
635
635
  {
@@ -644,12 +644,12 @@
644
644
  "links": [{
645
645
  "rel": "self",
646
646
  "href": "/grid5000/sites/rennes/jobs/376474",
647
- "type": "application/vnd.grid5000+json"
647
+ "type": "application/vnd.grid5000.item+json"
648
648
  },
649
649
  {
650
650
  "rel": "parent",
651
651
  "href": "/grid5000/sites/rennes",
652
- "type": "application/vnd.grid5000+json"
652
+ "type": "application/vnd.grid5000.item+json"
653
653
  }]
654
654
  },
655
655
  {
@@ -663,12 +663,12 @@
663
663
  "links": [{
664
664
  "rel": "self",
665
665
  "href": "/grid5000/sites/rennes/jobs/376472",
666
- "type": "application/vnd.grid5000+json"
666
+ "type": "application/vnd.grid5000.item+json"
667
667
  },
668
668
  {
669
669
  "rel": "parent",
670
670
  "href": "/grid5000/sites/rennes",
671
- "type": "application/vnd.grid5000+json"
671
+ "type": "application/vnd.grid5000.item+json"
672
672
  }]
673
673
  },
674
674
  {
@@ -682,12 +682,12 @@
682
682
  "links": [{
683
683
  "rel": "self",
684
684
  "href": "/grid5000/sites/rennes/jobs/376471",
685
- "type": "application/vnd.grid5000+json"
685
+ "type": "application/vnd.grid5000.item+json"
686
686
  },
687
687
  {
688
688
  "rel": "parent",
689
689
  "href": "/grid5000/sites/rennes",
690
- "type": "application/vnd.grid5000+json"
690
+ "type": "application/vnd.grid5000.item+json"
691
691
  }]
692
692
  },
693
693
  {
@@ -701,12 +701,12 @@
701
701
  "links": [{
702
702
  "rel": "self",
703
703
  "href": "/grid5000/sites/rennes/jobs/376470",
704
- "type": "application/vnd.grid5000+json"
704
+ "type": "application/vnd.grid5000.item+json"
705
705
  },
706
706
  {
707
707
  "rel": "parent",
708
708
  "href": "/grid5000/sites/rennes",
709
- "type": "application/vnd.grid5000+json"
709
+ "type": "application/vnd.grid5000.item+json"
710
710
  }]
711
711
  },
712
712
  {
@@ -720,12 +720,12 @@
720
720
  "links": [{
721
721
  "rel": "self",
722
722
  "href": "/grid5000/sites/rennes/jobs/376469",
723
- "type": "application/vnd.grid5000+json"
723
+ "type": "application/vnd.grid5000.item+json"
724
724
  },
725
725
  {
726
726
  "rel": "parent",
727
727
  "href": "/grid5000/sites/rennes",
728
- "type": "application/vnd.grid5000+json"
728
+ "type": "application/vnd.grid5000.item+json"
729
729
  }]
730
730
  },
731
731
  {
@@ -740,12 +740,12 @@
740
740
  "links": [{
741
741
  "rel": "self",
742
742
  "href": "/grid5000/sites/rennes/jobs/376468",
743
- "type": "application/vnd.grid5000+json"
743
+ "type": "application/vnd.grid5000.item+json"
744
744
  },
745
745
  {
746
746
  "rel": "parent",
747
747
  "href": "/grid5000/sites/rennes",
748
- "type": "application/vnd.grid5000+json"
748
+ "type": "application/vnd.grid5000.item+json"
749
749
  }]
750
750
  },
751
751
  {
@@ -760,12 +760,12 @@
760
760
  "links": [{
761
761
  "rel": "self",
762
762
  "href": "/grid5000/sites/rennes/jobs/376467",
763
- "type": "application/vnd.grid5000+json"
763
+ "type": "application/vnd.grid5000.item+json"
764
764
  },
765
765
  {
766
766
  "rel": "parent",
767
767
  "href": "/grid5000/sites/rennes",
768
- "type": "application/vnd.grid5000+json"
768
+ "type": "application/vnd.grid5000.item+json"
769
769
  }]
770
770
  },
771
771
  {
@@ -779,12 +779,12 @@
779
779
  "links": [{
780
780
  "rel": "self",
781
781
  "href": "/grid5000/sites/rennes/jobs/376466",
782
- "type": "application/vnd.grid5000+json"
782
+ "type": "application/vnd.grid5000.item+json"
783
783
  },
784
784
  {
785
785
  "rel": "parent",
786
786
  "href": "/grid5000/sites/rennes",
787
- "type": "application/vnd.grid5000+json"
787
+ "type": "application/vnd.grid5000.item+json"
788
788
  }]
789
789
  },
790
790
  {
@@ -798,12 +798,12 @@
798
798
  "links": [{
799
799
  "rel": "self",
800
800
  "href": "/grid5000/sites/rennes/jobs/376465",
801
- "type": "application/vnd.grid5000+json"
801
+ "type": "application/vnd.grid5000.item+json"
802
802
  },
803
803
  {
804
804
  "rel": "parent",
805
805
  "href": "/grid5000/sites/rennes",
806
- "type": "application/vnd.grid5000+json"
806
+ "type": "application/vnd.grid5000.item+json"
807
807
  }]
808
808
  },
809
809
  {
@@ -818,12 +818,12 @@
818
818
  "links": [{
819
819
  "rel": "self",
820
820
  "href": "/grid5000/sites/rennes/jobs/376464",
821
- "type": "application/vnd.grid5000+json"
821
+ "type": "application/vnd.grid5000.item+json"
822
822
  },
823
823
  {
824
824
  "rel": "parent",
825
825
  "href": "/grid5000/sites/rennes",
826
- "type": "application/vnd.grid5000+json"
826
+ "type": "application/vnd.grid5000.item+json"
827
827
  }]
828
828
  },
829
829
  {
@@ -837,12 +837,12 @@
837
837
  "links": [{
838
838
  "rel": "self",
839
839
  "href": "/grid5000/sites/rennes/jobs/376463",
840
- "type": "application/vnd.grid5000+json"
840
+ "type": "application/vnd.grid5000.item+json"
841
841
  },
842
842
  {
843
843
  "rel": "parent",
844
844
  "href": "/grid5000/sites/rennes",
845
- "type": "application/vnd.grid5000+json"
845
+ "type": "application/vnd.grid5000.item+json"
846
846
  }]
847
847
  },
848
848
  {
@@ -857,12 +857,12 @@
857
857
  "links": [{
858
858
  "rel": "self",
859
859
  "href": "/grid5000/sites/rennes/jobs/376462",
860
- "type": "application/vnd.grid5000+json"
860
+ "type": "application/vnd.grid5000.item+json"
861
861
  },
862
862
  {
863
863
  "rel": "parent",
864
864
  "href": "/grid5000/sites/rennes",
865
- "type": "application/vnd.grid5000+json"
865
+ "type": "application/vnd.grid5000.item+json"
866
866
  }]
867
867
  },
868
868
  {
@@ -877,12 +877,12 @@
877
877
  "links": [{
878
878
  "rel": "self",
879
879
  "href": "/grid5000/sites/rennes/jobs/376461",
880
- "type": "application/vnd.grid5000+json"
880
+ "type": "application/vnd.grid5000.item+json"
881
881
  },
882
882
  {
883
883
  "rel": "parent",
884
884
  "href": "/grid5000/sites/rennes",
885
- "type": "application/vnd.grid5000+json"
885
+ "type": "application/vnd.grid5000.item+json"
886
886
  }]
887
887
  },
888
888
  {
@@ -897,12 +897,12 @@
897
897
  "links": [{
898
898
  "rel": "self",
899
899
  "href": "/grid5000/sites/rennes/jobs/376460",
900
- "type": "application/vnd.grid5000+json"
900
+ "type": "application/vnd.grid5000.item+json"
901
901
  },
902
902
  {
903
903
  "rel": "parent",
904
904
  "href": "/grid5000/sites/rennes",
905
- "type": "application/vnd.grid5000+json"
905
+ "type": "application/vnd.grid5000.item+json"
906
906
  }]
907
907
  },
908
908
  {
@@ -917,12 +917,12 @@
917
917
  "links": [{
918
918
  "rel": "self",
919
919
  "href": "/grid5000/sites/rennes/jobs/376459",
920
- "type": "application/vnd.grid5000+json"
920
+ "type": "application/vnd.grid5000.item+json"
921
921
  },
922
922
  {
923
923
  "rel": "parent",
924
924
  "href": "/grid5000/sites/rennes",
925
- "type": "application/vnd.grid5000+json"
925
+ "type": "application/vnd.grid5000.item+json"
926
926
  }]
927
927
  },
928
928
  {
@@ -937,12 +937,12 @@
937
937
  "links": [{
938
938
  "rel": "self",
939
939
  "href": "/grid5000/sites/rennes/jobs/376458",
940
- "type": "application/vnd.grid5000+json"
940
+ "type": "application/vnd.grid5000.item+json"
941
941
  },
942
942
  {
943
943
  "rel": "parent",
944
944
  "href": "/grid5000/sites/rennes",
945
- "type": "application/vnd.grid5000+json"
945
+ "type": "application/vnd.grid5000.item+json"
946
946
  }]
947
947
  },
948
948
  {
@@ -957,12 +957,12 @@
957
957
  "links": [{
958
958
  "rel": "self",
959
959
  "href": "/grid5000/sites/rennes/jobs/376457",
960
- "type": "application/vnd.grid5000+json"
960
+ "type": "application/vnd.grid5000.item+json"
961
961
  },
962
962
  {
963
963
  "rel": "parent",
964
964
  "href": "/grid5000/sites/rennes",
965
- "type": "application/vnd.grid5000+json"
965
+ "type": "application/vnd.grid5000.item+json"
966
966
  }]
967
967
  },
968
968
  {
@@ -977,32 +977,32 @@
977
977
  "links": [{
978
978
  "rel": "self",
979
979
  "href": "/grid5000/sites/rennes/jobs/376456",
980
- "type": "application/vnd.grid5000+json"
980
+ "type": "application/vnd.grid5000.item+json"
981
981
  },
982
982
  {
983
983
  "rel": "parent",
984
984
  "href": "/grid5000/sites/rennes",
985
- "type": "application/vnd.grid5000+json"
985
+ "type": "application/vnd.grid5000.item+json"
986
986
  }]
987
987
  }],
988
988
  "links": [{
989
989
  "rel": "self",
990
990
  "href": "/grid5000/sites/rennes/jobs",
991
- "type": "application/vnd.grid5000+json"
991
+ "type": "application/vnd.grid5000.collection+json"
992
992
  },
993
993
  {
994
994
  "rel": "parent",
995
995
  "href": "/grid5000/sites/rennes",
996
- "type": "application/vnd.grid5000+json"
996
+ "type": "application/vnd.grid5000.item+json"
997
997
  },
998
998
  {
999
999
  "rel": "next",
1000
1000
  "href": "/grid5000/sites/rennes/jobs?offset=100",
1001
- "type": "application/vnd.grid5000+json"
1001
+ "type": "application/vnd.grid5000.collection+json"
1002
1002
  },
1003
1003
  {
1004
1004
  "rel": "index",
1005
1005
  "href": "/grid5000/sites/rennes/jobs?offset=0",
1006
- "type": "application/vnd.grid5000+json"
1006
+ "type": "application/vnd.grid5000.collection+json"
1007
1007
  }]
1008
1008
  }