api_config.yml 4.15 KB
Newer Older
1
2
3
- model: Country
  viewset: CountryViewSet
  import_location: location
Florent Chehab's avatar
Florent Chehab committed
4
  api_end_point: countries
5
6
7
8

- model: City
  viewset: CityViewSet
  import_location: location
Florent Chehab's avatar
Florent Chehab committed
9
  api_end_point: cities
10

Florent Chehab's avatar
Florent Chehab committed
11
12
- model: University
  viewset: UniversityViewSet
13
  import_location: university
Florent Chehab's avatar
Florent Chehab committed
14
  api_end_point: universities
15

Florent Chehab's avatar
Florent Chehab committed
16
17
- model: Campus
  viewset: CampusViewSet
18
  import_location: university
Florent Chehab's avatar
Florent Chehab committed
19
  api_end_point: campuses
20
21
22
  versionned: true


Florent Chehab's avatar
Florent Chehab committed
23
24
25
26
27
28
29
30
31
32
33
- model: UserData
  viewset: UserDataViewSet
  import_location: user
  api_end_point: user_data
  api_name: user-data-detail


- model: Tag
  viewset: TagViewSet
  import_location: tag
  api_end_point: tags
34

35
36
- model: Currency
  viewset: CurrencyViewSet
Florent Chehab's avatar
Florent Chehab committed
37
  import_location: location
Florent Chehab's avatar
Florent Chehab committed
38
  api_end_point: currencies
39
40
41

- model: Department
  viewset: DepartmentViewSet
Florent Chehab's avatar
Florent Chehab committed
42
  import_location: other_core
Florent Chehab's avatar
Florent Chehab committed
43
  api_end_point: departments
44
45
46

- model: Specialty
  viewset: SpecialtyViewSet
Florent Chehab's avatar
Florent Chehab committed
47
  import_location: other_core
Florent Chehab's avatar
Florent Chehab committed
48
  api_end_point: specialties
49
50
51

- model: Semester
  viewset: SemesterViewSet
Florent Chehab's avatar
Florent Chehab committed
52
  import_location: other_core
Florent Chehab's avatar
Florent Chehab committed
53
  api_end_point: semesters
54
55
56

- model: Offer
  viewset: OfferViewSet
Florent Chehab's avatar
Florent Chehab committed
57
  import_location: other_core
Florent Chehab's avatar
Florent Chehab committed
58
59
60
61
62
63
64
65
66
  api_end_point: offers



- model: CountryTaggedItem
  viewset: CountryTaggedItemViewSet
  import_location: location
  api_end_point: countries_tagged_items
  versionned: true
67
68
69
70

- model: CountryScholarship
  viewset: CountryScholarshipViewSet
  import_location: location
Florent Chehab's avatar
Florent Chehab committed
71
  api_end_point: countries_scholarships
72
  versionned: true
73
74
75
76

- model: CountryDri
  viewset: CountryDriViewSet
  import_location: location
Florent Chehab's avatar
Florent Chehab committed
77
  api_end_point: countries_dri
78
  versionned: true
79
80


Florent Chehab's avatar
Florent Chehab committed
81
82
83
84
85

- model: CityTaggedItem
  viewset: CityTaggedItemViewSet
  import_location: location
  api_end_point: cities_tagged_items
86
  versionned: true
87

Florent Chehab's avatar
Florent Chehab committed
88
89
90
91


- model: UniversityTaggedItem
  viewset: UniversityTaggedItemViewSet
92
  import_location: university
Florent Chehab's avatar
Florent Chehab committed
93
94
  api_end_point: universities_tagged_items
  versionned: true
95
96
97
98

- model: UniversityScholarship
  viewset: UniversityScholarshipViewSet
  import_location: university
Florent Chehab's avatar
Florent Chehab committed
99
  api_end_point: universities_scholarships
100
  versionned: true
101
102
103
104

- model: UniversityInfo
  viewset: UniversityInfoViewSet
  import_location: university
Florent Chehab's avatar
Florent Chehab committed
105
  api_end_point: universities_info
106
  versionned: true
107
108
109
110

- model: UniversitySemestersDates
  viewset: UniversitySemestersDatesViewSet
  import_location: university
Florent Chehab's avatar
Florent Chehab committed
111
  api_end_point: universities_semesters_dates
112
  versionned: true
113
114
115
116

- model: UniversityDri
  viewset: UniversityDriViewSet
  import_location: university
Florent Chehab's avatar
Florent Chehab committed
117
  api_end_point: universities_dri
118
  versionned: true
119

120
- model: null
121
122
  viewset: UniversityModulesViewSet
  import_location: university
Florent Chehab's avatar
Florent Chehab committed
123
  api_end_point: university_all
124
125
126
  api_attr: (?P<univ_id>[0-9]+)
  api_name: university_details

Florent Chehab's avatar
Florent Chehab committed
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142


- model: CampusTaggedItem
  viewset: CampusTaggedItemViewSet
  import_location: university
  api_end_point: campuses_tagged_items
  versionned: true

- model: null
  viewset: MainCampusViewSet
  import_location: university
  api_end_point: main_campuses
  read_only: true



143
144
145
- model: Recommendation
  viewset: RecommendationViewSet
  import_location: user
Florent Chehab's avatar
Florent Chehab committed
146
  api_end_point: user_recommendations
147
148
149
150

- model: RecommendationList
  viewset: RecommendationListViewSet
  import_location: user
Florent Chehab's avatar
Florent Chehab committed
151
  api_end_point: user_recommendation_lists
152
153
154
155

- model: PreviousDeparture
  viewset: PreviousDepartureViewSet
  import_location: user
Florent Chehab's avatar
Florent Chehab committed
156
  api_end_point: universities_previous_departures
157
158
159
160

- model: PreviousDepartureFeedback
  viewset: PreviousDepartureFeedbackViewSet
  import_location: user
Florent Chehab's avatar
Florent Chehab committed
161
162
  api_end_point: universities_previous_departure_feedback

163
164
165
166
167
168
169
170
171
172
173
174
175


- model: PendingModeration
  viewset: PendingModerationViewSet
  import_location: my_model
  api_end_point: pending_moderation

- model: Version
  viewset: VersionViewSet
  import_location: my_model
  api_end_point: version
  api_attr: (?P<content_type_id>[0-9]+)/(?P<object_pk>[0-9A-Za-z]+)
  api_name: versions-list
176
  ignore_in_admin: true
177
178
179
180
181
182
183
184
185
186
187
188

- model: ForTestingModeration
  viewset: ForTestingModerationViewSet
  import_location: my_model
  api_end_point: test/moderation
  requires_testing: true

- model: ForTestingVersioning
  viewset: ForTestingVersioningViewSet
  import_location: my_model
  api_end_point: test/versioning
  requires_testing: true
189
  # versionned: true don't put it here, it is manually handled with @register decorator