# \AgeGateApi

All URIs are relative to *http://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**approve_review**](AgeGateApi.md#approve_review) | **POST** /api/v1/admin/age-gate/reviews/{id}/approve | 
[**get_repo_age_gate**](AgeGateApi.md#get_repo_age_gate) | **GET** /api/v1/repositories/{key}/age-gate | 
[**get_review**](AgeGateApi.md#get_review) | **GET** /api/v1/admin/age-gate/reviews/{id} | 
[**list_reviews**](AgeGateApi.md#list_reviews) | **GET** /api/v1/admin/age-gate/reviews | 
[**reject_review**](AgeGateApi.md#reject_review) | **POST** /api/v1/admin/age-gate/reviews/{id}/reject | 
[**update_repo_age_gate**](AgeGateApi.md#update_repo_age_gate) | **PUT** /api/v1/repositories/{key}/age-gate | 



## approve_review

> models::AgeGateReviewResponse approve_review(id, review_action_request)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** |  | [required] |
**review_action_request** | [**ReviewActionRequest**](ReviewActionRequest.md) |  | [required] |

### Return type

[**models::AgeGateReviewResponse**](AgeGateReviewResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_repo_age_gate

> models::AgeGateConfigResponse get_repo_age_gate(key)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** |  | [required] |

### Return type

[**models::AgeGateConfigResponse**](AgeGateConfigResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_review

> models::AgeGateReviewResponse get_review(id)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** |  | [required] |

### Return type

[**models::AgeGateReviewResponse**](AgeGateReviewResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_reviews

> models::AgeGateReviewListResponse list_reviews(repository_key, status, page, per_page)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**repository_key** | Option<**String**> |  |  |
**status** | Option<**String**> |  |  |
**page** | Option<**i32**> |  |  |
**per_page** | Option<**i32**> |  |  |

### Return type

[**models::AgeGateReviewListResponse**](AgeGateReviewListResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## reject_review

> models::AgeGateReviewResponse reject_review(id, review_action_request)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** |  | [required] |
**review_action_request** | [**ReviewActionRequest**](ReviewActionRequest.md) |  | [required] |

### Return type

[**models::AgeGateReviewResponse**](AgeGateReviewResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## update_repo_age_gate

> models::AgeGateConfigResponse update_repo_age_gate(key, update_age_gate_config_request)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** |  | [required] |
**update_age_gate_config_request** | [**UpdateAgeGateConfigRequest**](UpdateAgeGateConfigRequest.md) |  | [required] |

### Return type

[**models::AgeGateConfigResponse**](AgeGateConfigResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

