Skip to content

feat: GET /v1/scraper/jobs/ — query jobs by CIF - #1114

Merged
ale23yfm merged 1 commit into
masterfrom
feat/scraper-jobs-query
Jul 26, 2026
Merged

feat: GET /v1/scraper/jobs/ — query jobs by CIF#1114
ale23yfm merged 1 commit into
masterfrom
feat/scraper-jobs-query

Conversation

@sebiboga

Copy link
Copy Markdown
Member

Closes #1112

Adds GET /v1/scraper/jobs/?cif=XXX endpoint that queries the Solr job core by company CIF.

Features:

  • Required cif parameter (8 digits, validated + Solr-escaped)
  • Optional rows (default 100, max 500) and start pagination
  • Returns {success, total, count, data} with standard job fields
  • Full EN/RO documentation on API docs page

After merge: scraper can replace direct querySOLR() with API call.

- Accepts cif (required, 8 digits), rows (max 500), start params
- Queries Solr job core with SolrEscape to prevent query injection
- Returns {success, total, count, data} with standard job fields
- Full EN/RO documentation on API docs page
- Closes #1112
@sebiboga
sebiboga requested a review from ale23yfm July 26, 2026 10:11
@ale23yfm
ale23yfm merged commit ca79738 into master Jul 26, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: GET /v1/scraper/jobs/ — query jobs by CIF

2 participants