api_config.yml 4.54 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
- model: Country
  viewset: CountryViewSet
  import_location: location
  api_end_point: country

- model: City
  viewset: CityViewSet
  import_location: location
  api_end_point: city

11
12
- model: Tag
  viewset: TagViewSet
Florent Chehab's avatar
Florent Chehab committed
13
  import_location: tag
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
  api_end_point: tag

- model: UniversityTaggedItem
  viewset: UniversityTaggedItemViewSet
  import_location: university
  api_end_point: university_more_tmp
  versionned: true

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

- model: CountryTaggedItem
  viewset: CountryTaggedItemViewSet
  import_location: location
  api_end_point: country_more_tmp
  versionned: true

- model: CityTaggedItem
  viewset: CityTaggedItemViewSet
  import_location: location
  api_end_point: city_more_tmp
  versionned: true

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
- model: Currency
  viewset: CurrencyViewSet
  import_location: module
  api_end_point: currency

- model: Department
  viewset: DepartmentViewSet
  import_location: otherCore
  api_end_point: other/department

- model: Specialty
  viewset: SpecialtyViewSet
  import_location: otherCore
  api_end_point: other/specialty

- model: Semester
  viewset: SemesterViewSet
  import_location: otherCore
  api_end_point: other/semester

- model: Offer
  viewset: OfferViewSet
  import_location: otherCore
  api_end_point: other/offer

- model: CountryPhoto
  viewset: CountryPhotoViewSet
  import_location: location
  api_end_point: country_more/photos
69
  versionned: true
70
71
72
73
74

- model: CountryScholarship
  viewset: CountryScholarshipViewSet
  import_location: location
  api_end_point: country_more/scholarship
75
  versionned: true
76
77
78
79
80

- model: CountryDri
  viewset: CountryDriViewSet
  import_location: location
  api_end_point: country_more/dri
81
  versionned: true
82
83
84
85
86

- model: CityPhoto
  viewset: CityPhotoViewSet
  import_location: location
  api_end_point: city_more/photos
87
  versionned: true
88
89
90
91
92
93
94
95
96
97
98


- model: University
  viewset: UniversityViewSet
  import_location: university
  api_end_point: university

- model: Campus
  viewset: CampusViewSet
  import_location: university
  api_end_point: campus
99
  versionned: true
100

101
- model: null
102
103
104
105
106
107
108
109
110
  viewset: MainCampusViewSet
  import_location: university
  api_end_point: main_campus
  read_only: true

- model: UniversityScholarship
  viewset: UniversityScholarshipViewSet
  import_location: university
  api_end_point: university_more/scholarship
111
  versionned: true
112
113
114
115
116

- model: UniversityInfo
  viewset: UniversityInfoViewSet
  import_location: university
  api_end_point: university_more/info
117
  versionned: true
118
119
120
121
122

- model: UniversitySemestersDates
  viewset: UniversitySemestersDatesViewSet
  import_location: university
  api_end_point: university_more/semesters_dates
123
  versionned: true
124
125
126
127
128

- model: UniversityPhoto
  viewset: UniversityPhotoViewSet
  import_location: university
  api_end_point: university_more/photo
129
  versionned: true
130
131
132
133
134

- model: UniversityDri
  viewset: UniversityDriViewSet
  import_location: university
  api_end_point: university_more/dri
135
  versionned: true
136

137
- model: null
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
  viewset: UniversityModulesViewSet
  import_location: university
  api_end_point: university_more/all
  api_attr: (?P<univ_id>[0-9]+)
  api_name: university_details

- model: Recommendation
  viewset: RecommendationViewSet
  import_location: user
  api_end_point: user/recommendation

- model: RecommendationList
  viewset: RecommendationListViewSet
  import_location: user
  api_end_point: user/recommendations_list

- model: PreviousDeparture
  viewset: PreviousDepartureViewSet
  import_location: user
  api_end_point: university_more/previous_departure

- model: PreviousDepartureFeedback
  viewset: PreviousDepartureFeedbackViewSet
  import_location: user
  api_end_point: university_more/previous_departure_feedback

- model: UserData
  viewset: UserDataViewSet
  import_location: user
  api_end_point: user/data
  api_name: user-data-detail

- 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
181
  ignore_in_admin: true
182
183
184
185
186
187
188
189
190
191
192
193

- 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
194
  # versionned: true don't put it here, it is manually handled with @register decorator