-
Notifications
You must be signed in to change notification settings - Fork 0
/
wars.clj
93 lines (74 loc) · 2.81 KB
/
wars.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
(ns eve-api-client.api.wars
(:require [eve-api-client.core :refer [call-api check-required-params with-collection-format]])
(:import (java.io File)))
(defn get-wars-with-http-info
"List wars
Return a list of wars
---
This route is cached for up to 3600 seconds"
([] (get-wars-with-http-info nil))
([{:keys [datasource if-none-match max-war-id ]}]
(call-api "/v1/wars/" :get
{:path-params {}
:header-params {"If-None-Match" if-none-match }
:query-params {"datasource" datasource "max_war_id" max-war-id }
:form-params {}
:content-types ["application/json"]
:accepts ["application/json"]
:auth-names []})))
(defn get-wars
"List wars
Return a list of wars
---
This route is cached for up to 3600 seconds"
([] (get-wars nil))
([optional-params]
(:data (get-wars-with-http-info optional-params))))
(defn get-wars-war-id-with-http-info
"Get war information
Return details about a war
---
This route is cached for up to 3600 seconds"
([war-id ] (get-wars-war-id-with-http-info war-id nil))
([war-id {:keys [datasource if-none-match ]}]
(check-required-params war-id)
(call-api "/v1/wars/{war_id}/" :get
{:path-params {"war_id" war-id }
:header-params {"If-None-Match" if-none-match }
:query-params {"datasource" datasource }
:form-params {}
:content-types ["application/json"]
:accepts ["application/json"]
:auth-names []})))
(defn get-wars-war-id
"Get war information
Return details about a war
---
This route is cached for up to 3600 seconds"
([war-id ] (get-wars-war-id war-id nil))
([war-id optional-params]
(:data (get-wars-war-id-with-http-info war-id optional-params))))
(defn get-wars-war-id-killmails-with-http-info
"List kills for a war
Return a list of kills related to a war
---
This route is cached for up to 3600 seconds"
([war-id ] (get-wars-war-id-killmails-with-http-info war-id nil))
([war-id {:keys [datasource if-none-match page ]}]
(check-required-params war-id)
(call-api "/v1/wars/{war_id}/killmails/" :get
{:path-params {"war_id" war-id }
:header-params {"If-None-Match" if-none-match }
:query-params {"datasource" datasource "page" page }
:form-params {}
:content-types ["application/json"]
:accepts ["application/json"]
:auth-names []})))
(defn get-wars-war-id-killmails
"List kills for a war
Return a list of kills related to a war
---
This route is cached for up to 3600 seconds"
([war-id ] (get-wars-war-id-killmails war-id nil))
([war-id optional-params]
(:data (get-wars-war-id-killmails-with-http-info war-id optional-params))))