Search opportunities
This endpoint allows for the efficient searching and filtering of opportunity role records based on specified query parameters such as title, description, category, status, and created date. It is designed to support operations that require accessing detailed opportunity role information quickly and effectively.
Endpoint and Usage:
Endpoint: GET /api/opportunities/search/
Base URL: https://api.vomevolunteer.com
Query Parameters:
Core Filters
id(uuid): Filters opportunity roles by ID.title(string): Filters opportunity roles by title.description(string): Filters opportunity roles by description.status(string): Filters opportunity roles by status.created_at(string, ISO-8601): Filters opportunity roles by exactcreated_at.created_at.gt(string, ISO-8601): Filters bycreated_at > value.created_at.gte(string, ISO-8601): Filters bycreated_at >= value.created_at.lte(string, ISO-8601): Filters bycreated_at <= value.created_at.lt(string, ISO-8601): Filters bycreated_at < value.ordering(string): Sorts results bycreated_ator-created_at.
Opportunity Statuses
0: Draft1: Published2: Unpublished
Sample Requests
Category Filters Search by related category fields:
category.id(uuid): Filters opportunity roles by the related category ID.category_id(uuid): Alias forcategory.id.category.title(string): Filters opportunity roles by the related category title.category_title(string): Alias forcategory.title.
Sample Requests
Authorization:
Requests to this endpoint require an API-KEY in the header for authentication.
Response Structure: The response from this endpoint returns a paginated list of opportunities that match the query parameters, including details about each role’s related category and public share URL.
Example Response Object:
Example Response Structure
Summary Information
count: Total number of matching opportunity roles.next: URL for the next page of results, ornull.previous: URL for the previous page of results, ornull.
Opportunity Role Object
id: Unique ID of the opportunity role.category: Related category information.category.id: Unique ID of the category.category.title: Title of the category.category.description: Description of the category.title: Title of the opportunity.description: Description of the opportunity.share_opportunity_url: Public share URL for the opportunity. This may benullif the role is not published.
Last updated