Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrizic committed Mar 30, 2023
1 parent 0f466ca commit 7f103e2
Show file tree
Hide file tree
Showing 114 changed files with 323 additions and 114 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This is an example of using OAuth2 Implicit Flow in a specification to describe
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 1.3.14
- API version: 1.3.15
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen

Expand Down Expand Up @@ -165,6 +165,7 @@ Class | Method | HTTP request | Description
*PersonApi* | [**GeneratePersonProfile**](docs/PersonApi.md#generatepersonprofile) | **Get** /persons/{personId}/profile | Generate a PDF profile from a Person
*PersonApi* | [**GetAvailabilities**](docs/PersonApi.md#getavailabilities) | **Get** /persons/{personId}/availabilities | Get a list of all activities for a person
*PersonApi* | [**GetPerson**](docs/PersonApi.md#getperson) | **Get** /persons/{personId} | Get basic info about a person
*PersonApi* | [**ReadPersonPicture**](docs/PersonApi.md#readpersonpicture) | **Get** /persons/{personId}/picture | Read person image
*PersonApi* | [**ReadPersonProject**](docs/PersonApi.md#readpersonproject) | **Get** /persons/{personId}/projects/{projectId} | Get a Project Partifipation of a Person
*PersonApi* | [**RemovePersonLanguage**](docs/PersonApi.md#removepersonlanguage) | **Delete** /persons/{personId}/languages/{languageId} | Remove a language from a person
*PersonApi* | [**SearchPersons**](docs/PersonApi.md#searchpersons) | **Post** /persons/search | Complex search over person entities
Expand Down
33 changes: 32 additions & 1 deletion api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ info:
description: This is an example of using OAuth2 Implicit Flow in a specification
to describe security to your API.
title: YASM (Yet Another Skill Management) API
version: 1.3.14
version: 1.3.15
servers:
- url: http://localhost:8080/api/v1
- url: https://dev-yasm.prodyna.com/api/v1
Expand Down Expand Up @@ -1767,6 +1767,37 @@ paths:
summary: Update an existing Person
tags:
- Person
/persons/{personId}/picture:
get:
operationId: readPersonPicture
parameters:
- explode: false
in: path
name: personId
required: true
schema:
format: uuid
type: string
style: simple
responses:
"200":
content:
image/jpeg:
schema:
example: !!binary |-
SlZCRVJpMHhMalFLSmNmcy4uLg==
format: binary
type: string
description: High resolution picture of a person
default:
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: The specified resource was not found
summary: Read person image
tags:
- Person
/persons/search:
post:
operationId: searchPersons
Expand Down
2 changes: 1 addition & 1 deletion api_availability.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_certification.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_country.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_industry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_language.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_office.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_organization.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

110 changes: 109 additions & 1 deletion api_person.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_project.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_search.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_skill.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_status.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion configuration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 69 additions & 0 deletions docs/PersonApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Method | HTTP request | Description
[**GeneratePersonProfile**](PersonApi.md#GeneratePersonProfile) | **Get** /persons/{personId}/profile | Generate a PDF profile from a Person
[**GetAvailabilities**](PersonApi.md#GetAvailabilities) | **Get** /persons/{personId}/availabilities | Get a list of all activities for a person
[**GetPerson**](PersonApi.md#GetPerson) | **Get** /persons/{personId} | Get basic info about a person
[**ReadPersonPicture**](PersonApi.md#ReadPersonPicture) | **Get** /persons/{personId}/picture | Read person image
[**ReadPersonProject**](PersonApi.md#ReadPersonProject) | **Get** /persons/{personId}/projects/{projectId} | Get a Project Partifipation of a Person
[**RemovePersonLanguage**](PersonApi.md#RemovePersonLanguage) | **Delete** /persons/{personId}/languages/{languageId} | Remove a language from a person
[**SearchPersons**](PersonApi.md#SearchPersons) | **Post** /persons/search | Complex search over person entities
Expand Down Expand Up @@ -1759,6 +1760,74 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)


## ReadPersonPicture

> *os.File ReadPersonPicture(ctx, personId).Execute()
Read person image

### Example

```go
package main

import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)

func main() {
personId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PersonApi.ReadPersonPicture(context.Background(), personId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PersonApi.ReadPersonPicture``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReadPersonPicture`: *os.File
fmt.Fprintf(os.Stdout, "Response from `PersonApi.ReadPersonPicture`: %v\n", resp)
}
```

### Path Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**personId** | **string** | |

### Other Parameters

Other parameters are passed through a pointer to a apiReadPersonPictureRequest struct via the builder pattern


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------


### Return type

[***os.File**](*os.File.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: image/jpeg, 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)


## ReadPersonProject

> ProjectParticipation ReadPersonProject(ctx, personId, projectId).Execute()
Expand Down
Loading

0 comments on commit 7f103e2

Please sign in to comment.