277 lines
7.4 KiB
Markdown
277 lines
7.4 KiB
Markdown
# \RevisionApi
|
|
|
|
All URIs are relative to *http://localhost*
|
|
|
|
Method | HTTP request | Description
|
|
------------- | ------------- | -------------
|
|
[**AnswerApiV1RevisionsAuditPut**](RevisionApi.md#AnswerApiV1RevisionsAuditPut) | **Put** /answer/api/v1/revisions/audit | revision audit
|
|
[**AnswerApiV1RevisionsEditCheckGet**](RevisionApi.md#AnswerApiV1RevisionsEditCheckGet) | **Get** /answer/api/v1/revisions/edit/check | check can update revision
|
|
[**AnswerApiV1RevisionsGet**](RevisionApi.md#AnswerApiV1RevisionsGet) | **Get** /answer/api/v1/revisions | get revision list
|
|
[**AnswerApiV1RevisionsUnreviewedGet**](RevisionApi.md#AnswerApiV1RevisionsUnreviewedGet) | **Get** /answer/api/v1/revisions/unreviewed | get unreviewed revision list
|
|
|
|
|
|
|
|
## AnswerApiV1RevisionsAuditPut
|
|
|
|
> HandlerRespBody AnswerApiV1RevisionsAuditPut(ctx).Data(data).Execute()
|
|
|
|
revision audit
|
|
|
|
|
|
|
|
### Example
|
|
|
|
```go
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os"
|
|
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
|
)
|
|
|
|
func main() {
|
|
data := *openapiclient.NewSchemaRevisionAuditReq("Id_example", "Operation_example") // SchemaRevisionAuditReq | audit
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
resp, r, err := apiClient.RevisionApi.AnswerApiV1RevisionsAuditPut(context.Background()).Data(data).Execute()
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "Error when calling `RevisionApi.AnswerApiV1RevisionsAuditPut``: %v\n", err)
|
|
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
|
}
|
|
// response from `AnswerApiV1RevisionsAuditPut`: HandlerRespBody
|
|
fmt.Fprintf(os.Stdout, "Response from `RevisionApi.AnswerApiV1RevisionsAuditPut`: %v\n", resp)
|
|
}
|
|
```
|
|
|
|
### Path Parameters
|
|
|
|
|
|
|
|
### Other Parameters
|
|
|
|
Other parameters are passed through a pointer to a apiAnswerApiV1RevisionsAuditPutRequest struct via the builder pattern
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**data** | [**SchemaRevisionAuditReq**](SchemaRevisionAuditReq.md) | audit |
|
|
|
|
### Return type
|
|
|
|
[**HandlerRespBody**](HandlerRespBody.md)
|
|
|
|
### Authorization
|
|
|
|
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
|
|
### 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)
|
|
|
|
|
|
## AnswerApiV1RevisionsEditCheckGet
|
|
|
|
> HandlerRespBody AnswerApiV1RevisionsEditCheckGet(ctx).Id(id).Execute()
|
|
|
|
check can update revision
|
|
|
|
|
|
|
|
### Example
|
|
|
|
```go
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os"
|
|
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
|
)
|
|
|
|
func main() {
|
|
id := "id_example" // string | id (default to "string")
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
resp, r, err := apiClient.RevisionApi.AnswerApiV1RevisionsEditCheckGet(context.Background()).Id(id).Execute()
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "Error when calling `RevisionApi.AnswerApiV1RevisionsEditCheckGet``: %v\n", err)
|
|
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
|
}
|
|
// response from `AnswerApiV1RevisionsEditCheckGet`: HandlerRespBody
|
|
fmt.Fprintf(os.Stdout, "Response from `RevisionApi.AnswerApiV1RevisionsEditCheckGet`: %v\n", resp)
|
|
}
|
|
```
|
|
|
|
### Path Parameters
|
|
|
|
|
|
|
|
### Other Parameters
|
|
|
|
Other parameters are passed through a pointer to a apiAnswerApiV1RevisionsEditCheckGetRequest struct via the builder pattern
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**id** | **string** | id | [default to "string"]
|
|
|
|
### Return type
|
|
|
|
[**HandlerRespBody**](HandlerRespBody.md)
|
|
|
|
### Authorization
|
|
|
|
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
|
|
### 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)
|
|
|
|
|
|
## AnswerApiV1RevisionsGet
|
|
|
|
> AnswerApiV1RevisionsGet200Response AnswerApiV1RevisionsGet(ctx).ObjectId(objectId).Execute()
|
|
|
|
get revision list
|
|
|
|
|
|
|
|
### Example
|
|
|
|
```go
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os"
|
|
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
|
)
|
|
|
|
func main() {
|
|
objectId := "objectId_example" // string | object id
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
resp, r, err := apiClient.RevisionApi.AnswerApiV1RevisionsGet(context.Background()).ObjectId(objectId).Execute()
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "Error when calling `RevisionApi.AnswerApiV1RevisionsGet``: %v\n", err)
|
|
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
|
}
|
|
// response from `AnswerApiV1RevisionsGet`: AnswerApiV1RevisionsGet200Response
|
|
fmt.Fprintf(os.Stdout, "Response from `RevisionApi.AnswerApiV1RevisionsGet`: %v\n", resp)
|
|
}
|
|
```
|
|
|
|
### Path Parameters
|
|
|
|
|
|
|
|
### Other Parameters
|
|
|
|
Other parameters are passed through a pointer to a apiAnswerApiV1RevisionsGetRequest struct via the builder pattern
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**objectId** | **string** | object id |
|
|
|
|
### Return type
|
|
|
|
[**AnswerApiV1RevisionsGet200Response**](AnswerApiV1RevisionsGet200Response.md)
|
|
|
|
### Authorization
|
|
|
|
No authorization required
|
|
|
|
### 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)
|
|
|
|
|
|
## AnswerApiV1RevisionsUnreviewedGet
|
|
|
|
> AnswerApiV1RevisionsUnreviewedGet200Response AnswerApiV1RevisionsUnreviewedGet(ctx).Page(page).Execute()
|
|
|
|
get unreviewed revision list
|
|
|
|
|
|
|
|
### Example
|
|
|
|
```go
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os"
|
|
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
|
)
|
|
|
|
func main() {
|
|
page := "page_example" // string | page id
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
resp, r, err := apiClient.RevisionApi.AnswerApiV1RevisionsUnreviewedGet(context.Background()).Page(page).Execute()
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "Error when calling `RevisionApi.AnswerApiV1RevisionsUnreviewedGet``: %v\n", err)
|
|
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
|
}
|
|
// response from `AnswerApiV1RevisionsUnreviewedGet`: AnswerApiV1RevisionsUnreviewedGet200Response
|
|
fmt.Fprintf(os.Stdout, "Response from `RevisionApi.AnswerApiV1RevisionsUnreviewedGet`: %v\n", resp)
|
|
}
|
|
```
|
|
|
|
### Path Parameters
|
|
|
|
|
|
|
|
### Other Parameters
|
|
|
|
Other parameters are passed through a pointer to a apiAnswerApiV1RevisionsUnreviewedGetRequest struct via the builder pattern
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**page** | **string** | page id |
|
|
|
|
### Return type
|
|
|
|
[**AnswerApiV1RevisionsUnreviewedGet200Response**](AnswerApiV1RevisionsUnreviewedGet200Response.md)
|
|
|
|
### Authorization
|
|
|
|
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
|
|
### 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)
|
|
|