コード例 #1
0
 class Meta:
     queryset = BillboardImage.objects.all()
     resource_name = 'billboard_image'
     filtering = {
         'title': ALL,
         'group': ALL_WITH_RELATIONS,
     }
     authentication = ApiKeyAuthentication()
     throttle = SmartCacheDBThrottle()
コード例 #2
0
 class Meta:
     queryset = GoogleAnalytics.objects.all()
     resource_name = 'google_analytics'
     filtering = {
         'web_property_id': ALL,
         'group': ALL_WITH_RELATIONS,
     }
     authentication = ApiKeyAuthentication()
     throttle = SmartCacheDBThrottle()
コード例 #3
0
 class Meta:
     queryset = GoogleAnalyticsCampaign.objects.all()
     resource_name = 'google_analytics_campaign'
     filtering = {
         'name': ALL,
         'group': ALL_WITH_RELATIONS,
     }
     authentication = ApiKeyAuthentication()
     throttle = SmartCacheDBThrottle()
コード例 #4
0
 class Meta:
     queryset = FeaturedCompany.objects.all()
     resource_name = 'featured_company'
     filtering = {
         'seosite': ALL_WITH_RELATIONS,
         'company': ALL_WITH_RELATIONS,
         'is_featured': ALL
     }
     authentication = ApiKeyAuthentication()
     throttle = SmartCacheDBThrottle()
コード例 #5
0
 class Meta:
     queryset = Company.objects.all()
     resource_name = 'company'
     filtering = {
         'name': ALL,
         'company_slug': ALL,
         'member': ALL,
     }
     authentication = ApiKeyAuthentication()
     throttle = SmartCacheDBThrottle()
コード例 #6
0
 class Meta:
     queryset = Configuration.objects.all()
     resource_name = 'configuration'
     filtering = {
         'title': ALL,
         'status': ALL,
         'group': ALL_WITH_RELATIONS,
     }
     authentication = ApiKeyAuthentication()
     throttle = SmartCacheDBThrottle()
コード例 #7
0
 class Meta:
     queryset = MocDetail.objects.all()
     resource_name = 'moc_detail'
     filtering = {
         'primary_value': ALL,
         'service_branch': ALL,
         'military_description': ALL,
         'civilian_description': ALL
     }
     authentication = ApiKeyAuthentication()
     throttle = SmartCacheDBThrottle()
コード例 #8
0
 class Meta:
     queryset = ATSSourceCode.objects.all()
     resource_name = 'ats_source_code'
     filtering = {
         'ats_name': ALL,
         'name': ALL,
         'value': ALL,
         'group': ALL_WITH_RELATIONS
     }
     authentication = ApiKeyAuthentication()
     throttle = SmartCacheDBThrottle()
コード例 #9
0
 class Meta:
     queryset = BillboardHotspot.objects.all()
     resource_name = 'billboard_hotspot'
     filtering = {
         'billboard_image': ALL_WITH_RELATIONS,
         'title': ALL,
         'text': ALL,
         'url': ALL
     }
     authentication = ApiKeyAuthentication()
     throttle = SmartCacheDBThrottle()
コード例 #10
0
 class Meta:
     allowed_methods = ['get']
     resource_name = 'jobsearch'
     object_class = DESearchQuerySet
     document_uid_field = 'uid'
     dispatch_name = 'jobposting'
     index_fields = [
         'buid', 'city', 'company', 'country', 'date_new', 'moc', 'onet',
         'state', 'title', 'uid'
     ]
     authentication = ApiKeyAuthentication()
     throttle = SmartCacheDBThrottle()
コード例 #11
0
 class Meta:
     queryset = Moc.objects.all()
     resource_name = 'moc'
     filtering = {
         'moc_detail': ALL_WITH_RELATIONS,
         'onets': ALL_WITH_RELATIONS,
         'title-slug': ALL,
         'title': ALL,
         'branch': ALL,
         'code': ALL
     }
     authentication = ApiKeyAuthentication()
     throttle = SmartCacheDBThrottle()
コード例 #12
0
 class Meta:
     queryset = BusinessUnit.objects.all()
     resource_name = 'business_unit'
     filtering = {
         'title': ALL,
         'title_slug': ALL,
         'data_crawled': ALL,
         'date_updated': ALL,
         'associated_jobs': ALL,
         'federal_contractor': ALL,
         'id': ALL
     }
     authentication = ApiKeyAuthentication()
     throttle = SmartCacheDBThrottle()
コード例 #13
0
 class Meta:
     queryset = CustomFacet.objects.all()
     resource_name = 'custom_facet'
     filtering = {
         'group': ALL_WITH_RELATIONS,
         'business_units': ALL_WITH_RELATIONS,
         'country': ALL,
         'state': ALL,
         'city': ALL,
         'keyword': ALL,
         'onet': ALL,
         'always_show': ALL
     }
     authentication = ApiKeyAuthentication()
     throttle = SmartCacheDBThrottle()
コード例 #14
0
 class Meta:
     allowed_methods = ['get']
     authentication = ApiKeyAuthentication()
     resource_name = 'jobposting'
     excludes = [
         'reqid',
         'countrySlug',
         'titleSlug',
         'citySlug',
         'id',
         'hitkey',
         'link',
         'stateSlug',
     ]
     throttle = SmartCacheDBThrottle()
コード例 #15
0
 class Meta:
     queryset = SpecialCommitment.objects.all()
     resource_name = 'special_commitment'
     filtering = {'name': ALL, 'commit': ALL}
     authentication = ApiKeyAuthentication()
     throttle = SmartCacheDBThrottle()
コード例 #16
0
 class Meta:
     queryset = ViewSource.objects.all()
     resource_name = 'view_source'
     filtering = {'name': ALL, 'view_source': ALL}
     authentication = ApiKeyAuthentication()
     throttle = SmartCacheDBThrottle()
コード例 #17
0
 class Meta:
     queryset = Onet.objects.all()
     resource_name = 'onet'
     filtering = {'title': ALL, 'code': ALL}
     authentication = ApiKeyAuthentication()
     throttle = SmartCacheDBThrottle()
コード例 #18
0
 class Meta:
     queryset = Group.objects.all()
     resource_name = 'group'
     filtering = {'name': ALL, 'id': ALL}
     authentication = ApiKeyAuthentication()
     throttle = SmartCacheDBThrottle()