api_config.yml 4.14 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
- model: Currency
  viewset: CurrencyViewSet
Florent Chehab's avatar
Florent Chehab committed
42
  import_location: location
43
44
45
46
  api_end_point: currency

- model: Department
  viewset: DepartmentViewSet
Florent Chehab's avatar
Florent Chehab committed
47
  import_location: other_core
48
49
50
51
  api_end_point: other/department

- model: Specialty
  viewset: SpecialtyViewSet
Florent Chehab's avatar
Florent Chehab committed
52
  import_location: other_core
53
54
55
56
  api_end_point: other/specialty

- model: Semester
  viewset: SemesterViewSet
Florent Chehab's avatar
Florent Chehab committed
57
  import_location: other_core
58
59
60
61
  api_end_point: other/semester

- model: Offer
  viewset: OfferViewSet
Florent Chehab's avatar
Florent Chehab committed
62
  import_location: other_core
63
64
65
66
67
68
  api_end_point: other/offer

- model: CountryScholarship
  viewset: CountryScholarshipViewSet
  import_location: location
  api_end_point: country_more/scholarship
69
  versionned: true
70
71
72
73
74

- model: CountryDri
  viewset: CountryDriViewSet
  import_location: location
  api_end_point: country_more/dri
75
  versionned: true
76
77
78
79
80
81
82
83
84
85

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

- model: Campus
  viewset: CampusViewSet
  import_location: university
  api_end_point: campus
86
  versionned: true
87

88
- model: null
89
90
91
92
93
94
95
96
97
  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
98
  versionned: true
99
100
101
102
103

- model: UniversityInfo
  viewset: UniversityInfoViewSet
  import_location: university
  api_end_point: university_more/info
104
  versionned: true
105
106
107
108
109

- model: UniversitySemestersDates
  viewset: UniversitySemestersDatesViewSet
  import_location: university
  api_end_point: university_more/semesters_dates
110
  versionned: true
111
112
113
114
115

- model: UniversityDri
  viewset: UniversityDriViewSet
  import_location: university
  api_end_point: university_more/dri
116
  versionned: true
117

118
- model: null
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
  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
162
  ignore_in_admin: true
163
164
165
166
167
168
169
170
171
172
173
174

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