From c9bff8eca1c727902eef0182163dee595a4f9b64 Mon Sep 17 00:00:00 2001 From: prodyna-yasm Date: Wed, 27 Mar 2024 13:57:48 +0000 Subject: [PATCH] Update from https://github.com/PRODYNA-YASM/yasm-api/commit/b38ea5ac901da3b57c1a64d4a687007991d9fd0d --- .openapi-generator/FILES | 21 + README.md | 61 +- api/openapi.yaml | 4221 ++++++++--------- api_availability.go | 2 +- api_certification.go | 337 +- api_countries.go | 136 + api_country.go | 123 +- api_industries.go | 136 + api_industry.go | 144 +- api_language.go | 131 +- api_languages.go | 136 + api_office.go | 296 +- api_offices.go | 136 + api_organization.go | 1025 +--- api_person.go | 160 +- api_profile.go | 123 +- api_profiles.go | 136 + api_project.go | 272 +- api_project_participation.go | 2 +- api_search.go | 60 +- api_skill.go | 318 +- api_status.go | 2 +- api_templates.go | 2 +- client.go | 19 +- configuration.go | 2 +- docs/CertificationAPI.md | 180 +- docs/CountriesAPI.md | 73 + docs/CountryAPI.md | 67 - docs/IndustriesAPI.md | 73 + docs/IndustryAPI.md | 69 - docs/LanguageAPI.md | 67 - docs/LanguagesAPI.md | 73 + docs/OfficeAPI.md | 177 +- docs/OfficeSearch.md | 56 + docs/OfficesAPI.md | 73 + docs/OrganizationAPI.md | 543 +-- docs/PersonAPI.md | 81 +- docs/ProfileAPI.md | 67 - docs/ProfilesAPI.md | 73 + docs/ProjectAPI.md | 157 +- docs/Search.md | 124 + docs/SearchAPI.md | 30 +- docs/SkillAPI.md | 157 +- docs/SkillSearch.md | 108 + model_abstract_entity_filter.go | 2 +- model_availability.go | 2 +- model_availability_detail.go | 2 +- model_availability_filter.go | 2 +- model_basic_domain_model.go | 2 +- model_certification.go | 2 +- model_certification_details.go | 2 +- model_certification_search.go | 15 +- model_confidentiality.go | 2 +- model_country.go | 2 +- model_country_details.go | 2 +- model_descriptable.go | 2 +- model_error.go | 2 +- model_experience.go | 2 +- model_experience_skill.go | 2 +- model_experience_skill_group.go | 2 +- model_geolocation.go | 2 +- model_industry.go | 2 +- model_industry_details.go | 2 +- model_language.go | 2 +- model_language_details.go | 2 +- model_language_level.go | 2 +- model_level.go | 2 +- model_linkable.go | 2 +- model_locateable.go | 2 +- model_min_max.go | 2 +- model_min_max_percent.go | 2 +- model_nameable.go | 2 +- model_named_domain_model.go | 2 +- model_office.go | 2 +- model_office_search.go | 137 + model_organization.go | 2 +- model_organization_details.go | 2 +- model_page.go | 2 +- model_paged_availabilities.go | 2 +- model_paged_certifications.go | 2 +- model_paged_countries.go | 2 +- model_paged_industries.go | 2 +- model_paged_languages.go | 2 +- model_paged_offices.go | 2 +- model_paged_organizations.go | 2 +- model_paged_persons.go | 2 +- model_paged_profiles.go | 2 +- model_paged_project_participation.go | 2 +- model_paged_projects.go | 2 +- model_paged_skills.go | 2 +- model_person.go | 2 +- model_person_details.go | 2 +- model_person_project_participation_details.go | 2 +- model_person_project_participation_item.go | 2 +- model_person_score_detail.go | 2 +- model_person_search.go | 15 +- model_person_skill_filter.go | 2 +- model_profile.go | 2 +- model_profile_details.go | 2 +- model_project.go | 2 +- model_project_details.go | 2 +- model_project_participation.go | 2 +- model_project_participation_create.go | 2 +- model_project_participation_details.go | 2 +- model_project_participation_search.go | 15 +- model_project_participation_update.go | 2 +- model_project_score_detail.go | 2 +- model_project_search.go | 15 +- model_project_status.go | 2 +- model_project_type.go | 2 +- model_score_result.go | 2 +- model_search.go | 220 + model_search_result.go | 2 +- model_search_result_item.go | 2 +- model_seniority.go | 2 +- model_skill.go | 2 +- model_skill_details.go | 2 +- model_skill_group.go | 2 +- model_skill_level.go | 2 +- model_skill_level_update.go | 2 +- model_skill_link.go | 2 +- model_skill_link_update.go | 2 +- model_skill_search.go | 220 + model_status.go | 2 +- model_suggestable.go | 2 +- model_synonymable.go | 2 +- model_timeframed.go | 2 +- model_version.go | 2 +- response.go | 2 +- test/api_certification_test.go | 34 +- test/api_countries_test.go | 37 + test/api_country_test.go | 12 - test/api_industries_test.go | 37 + test/api_industry_test.go | 12 - test/api_language_test.go | 12 - test/api_languages_test.go | 37 + test/api_office_test.go | 37 +- test/api_offices_test.go | 37 + test/api_organization_test.go | 111 +- test/api_person_test.go | 12 - test/api_profile_test.go | 12 - test/api_profiles_test.go | 37 + test/api_project_test.go | 30 +- test/api_search_test.go | 6 +- test/api_skill_test.go | 32 +- utils.go | 2 +- 146 files changed, 4708 insertions(+), 6831 deletions(-) create mode 100644 api_countries.go create mode 100644 api_industries.go create mode 100644 api_languages.go create mode 100644 api_offices.go create mode 100644 api_profiles.go create mode 100644 docs/CountriesAPI.md create mode 100644 docs/IndustriesAPI.md create mode 100644 docs/LanguagesAPI.md create mode 100644 docs/OfficeSearch.md create mode 100644 docs/OfficesAPI.md create mode 100644 docs/ProfilesAPI.md create mode 100644 docs/Search.md create mode 100644 docs/SkillSearch.md create mode 100644 model_office_search.go create mode 100644 model_search.go create mode 100644 model_skill_search.go create mode 100644 test/api_countries_test.go create mode 100644 test/api_industries_test.go create mode 100644 test/api_languages_test.go create mode 100644 test/api_offices_test.go create mode 100644 test/api_profiles_test.go diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index fa7ccca8..3d8ad47b 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -5,13 +5,18 @@ README.md api/openapi.yaml api_availability.go api_certification.go +api_countries.go api_country.go +api_industries.go api_industry.go api_language.go +api_languages.go api_office.go +api_offices.go api_organization.go api_person.go api_profile.go +api_profiles.go api_project.go api_project_participation.go api_search.go @@ -31,6 +36,7 @@ docs/CertificationAPI.md docs/CertificationDetails.md docs/CertificationSearch.md docs/Confidentiality.md +docs/CountriesAPI.md docs/Country.md docs/CountryAPI.md docs/CountryDetails.md @@ -40,6 +46,7 @@ docs/Experience.md docs/ExperienceSkill.md docs/ExperienceSkillGroup.md docs/Geolocation.md +docs/IndustriesAPI.md docs/Industry.md docs/IndustryAPI.md docs/IndustryDetails.md @@ -47,6 +54,7 @@ docs/Language.md docs/LanguageAPI.md docs/LanguageDetails.md docs/LanguageLevel.md +docs/LanguagesAPI.md docs/Level.md docs/Linkable.md docs/Locateable.md @@ -56,6 +64,8 @@ docs/Nameable.md docs/NamedDomainModel.md docs/Office.md docs/OfficeAPI.md +docs/OfficeSearch.md +docs/OfficesAPI.md docs/Organization.md docs/OrganizationAPI.md docs/OrganizationDetails.md @@ -83,6 +93,7 @@ docs/PersonSkillFilter.md docs/Profile.md docs/ProfileAPI.md docs/ProfileDetails.md +docs/ProfilesAPI.md docs/Project.md docs/ProjectAPI.md docs/ProjectDetails.md @@ -97,6 +108,7 @@ docs/ProjectSearch.md docs/ProjectStatus.md docs/ProjectType.md docs/ScoreResult.md +docs/Search.md docs/SearchAPI.md docs/SearchResult.md docs/SearchResultItem.md @@ -109,6 +121,7 @@ docs/SkillLevel.md docs/SkillLevelUpdate.md docs/SkillLink.md docs/SkillLinkUpdate.md +docs/SkillSearch.md docs/Status.md docs/StatusAPI.md docs/Suggestable.md @@ -149,6 +162,7 @@ model_min_max_percent.go model_nameable.go model_named_domain_model.go model_office.go +model_office_search.go model_organization.go model_organization_details.go model_page.go @@ -185,6 +199,7 @@ model_project_search.go model_project_status.go model_project_type.go model_score_result.go +model_search.go model_search_result.go model_search_result_item.go model_seniority.go @@ -195,6 +210,7 @@ model_skill_level.go model_skill_level_update.go model_skill_link.go model_skill_link_update.go +model_skill_search.go model_status.go model_suggestable.go model_synonymable.go @@ -203,13 +219,18 @@ model_version.go response.go test/api_availability_test.go test/api_certification_test.go +test/api_countries_test.go test/api_country_test.go +test/api_industries_test.go test/api_industry_test.go test/api_language_test.go +test/api_languages_test.go test/api_office_test.go +test/api_offices_test.go test/api_organization_test.go test/api_person_test.go test/api_profile_test.go +test/api_profiles_test.go test/api_project_participation_test.go test/api_project_test.go test/api_search_test.go diff --git a/README.md b/README.md index c87d0a71..fd1b4d3f 100644 --- a/README.md +++ b/README.md @@ -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.16.5 +- API version: 1.17.0 - Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -83,30 +83,28 @@ Class | Method | HTTP request | Description *AvailabilityAPI* | [**UpdateAvailability**](docs/AvailabilityAPI.md#updateavailability) | **Put** /persons/{personId}/availabilities/{availabilityId} | Update a person availability *CertificationAPI* | [**AddPersonCertification**](docs/CertificationAPI.md#addpersoncertification) | **Post** /persons/{personId}/certifications/{certificationId} | Add Certification to a Person *CertificationAPI* | [**AddSkillToCertification**](docs/CertificationAPI.md#addskilltocertification) | **Post** /certifications/{certificationId}/skills/{skillId} | -*CertificationAPI* | [**CreateCertification**](docs/CertificationAPI.md#createcertification) | **Post** /organizations/{organizationId}/certifications | Create a Certification in an Organization +*CertificationAPI* | [**CreateCertification**](docs/CertificationAPI.md#createcertification) | **Post** /certifications | Create a Certification in an Organization *CertificationAPI* | [**DeleteCertification**](docs/CertificationAPI.md#deletecertification) | **Delete** /certifications/{certificationId} | Delete a Certification *CertificationAPI* | [**DeletePersonCertification**](docs/CertificationAPI.md#deletepersoncertification) | **Delete** /persons/{personId}/certifications/{certificationId} | Remove an Interest to a Person *CertificationAPI* | [**DeleteSkillFromCertification**](docs/CertificationAPI.md#deleteskillfromcertification) | **Delete** /certifications/{certificationId}/skills/{skillId} | *CertificationAPI* | [**GetCertification**](docs/CertificationAPI.md#getcertification) | **Get** /certifications/{certificationId} | Get details about a Certification -*CertificationAPI* | [**GetCertifications**](docs/CertificationAPI.md#getcertifications) | **Get** /certifications | Get a list of all Certifications independent of the Organization -*CertificationAPI* | [**GetCertificationsForOrganization**](docs/CertificationAPI.md#getcertificationsfororganization) | **Get** /organizations/{organizationId}/certifications | Get a list of all certifications for a organization -*CertificationAPI* | [**MoveCertification**](docs/CertificationAPI.md#movecertification) | **Put** /organizations/{organizationId}/certificates/{certificationId} | Move a Certification to an Organization -*CertificationAPI* | [**SearchCertifications**](docs/CertificationAPI.md#searchcertifications) | **Post** /certifications/search | Complex search over certification entities +*CertificationAPI* | [**MoveCertification**](docs/CertificationAPI.md#movecertification) | **Put** /certifications/{certificationId}/organizations/{organizationId} | Move a Certification to an Organization +*CertificationAPI* | [**SearchCertifications**](docs/CertificationAPI.md#searchcertifications) | **Post** /certifications/search | Search over certifications *CertificationAPI* | [**UpdateCertification**](docs/CertificationAPI.md#updatecertification) | **Put** /certifications/{certificationId} | Update a Certification *CertificationAPI* | [**UpdatePersonCertification**](docs/CertificationAPI.md#updatepersoncertification) | **Put** /persons/{personId}/certifications/{certificationId} | Update a Certification of a Person *CertificationAPI* | [**UpdateSkillInCertification**](docs/CertificationAPI.md#updateskillincertification) | **Put** /certifications/{certificationId}/skills/{skillId} | +*CountriesAPI* | [**SearchCountries**](docs/CountriesAPI.md#searchcountries) | **Post** /countries/search | Search over countries *CountryAPI* | [**AddLanguageToCountry**](docs/CountryAPI.md#addlanguagetocountry) | **Post** /countries/{countryId}/languages/{languageId} | Assign a language to a country *CountryAPI* | [**CreateCountry**](docs/CountryAPI.md#createcountry) | **Post** /countries | Create a new Country *CountryAPI* | [**DeleteCountry**](docs/CountryAPI.md#deletecountry) | **Delete** /countries/{countryId} | Delete a Country -*CountryAPI* | [**GetCountries**](docs/CountryAPI.md#getcountries) | **Get** /countries | Get all Countries *CountryAPI* | [**GetCountry**](docs/CountryAPI.md#getcountry) | **Get** /countries/{countryId} | Get details about a Country *CountryAPI* | [**RemoveLanguageFromCountry**](docs/CountryAPI.md#removelanguagefromcountry) | **Delete** /countries/{countryId}/languages/{languageId} | Assign a language to a country *CountryAPI* | [**UpdateCountry**](docs/CountryAPI.md#updatecountry) | **Put** /countries/{countryId} | Update a Country +*IndustriesAPI* | [**SearchIndustries**](docs/IndustriesAPI.md#searchindustries) | **Post** /industries/search | Search over industries *IndustryAPI* | [**AttachOrganizationToIndustry**](docs/IndustryAPI.md#attachorganizationtoindustry) | **Post** /organizations/{organizationId}/industries/{industryId} | Add an Organization to an Industry *IndustryAPI* | [**CreateIndustry**](docs/IndustryAPI.md#createindustry) | **Post** /industries | Create an Industry *IndustryAPI* | [**DeleteIndustry**](docs/IndustryAPI.md#deleteindustry) | **Delete** /industries/{industryId} | Delete an Industry *IndustryAPI* | [**DetachOrganizationFromIndustry**](docs/IndustryAPI.md#detachorganizationfromindustry) | **Delete** /organizations/{organizationId}/industries/{industryId} | Remove an Organization to an Industry -*IndustryAPI* | [**GetIndustries**](docs/IndustryAPI.md#getindustries) | **Get** /industries | Get all Industries *IndustryAPI* | [**GetIndustry**](docs/IndustryAPI.md#getindustry) | **Get** /industries/{industryId} | Get details about an Industry *IndustryAPI* | [**UpdateIndustry**](docs/IndustryAPI.md#updateindustry) | **Put** /industries/{industryId} | Update an Industry *LanguageAPI* | [**AddLanguageToCountry**](docs/LanguageAPI.md#addlanguagetocountry) | **Post** /countries/{countryId}/languages/{languageId} | Assign a language to a country @@ -114,39 +112,32 @@ Class | Method | HTTP request | Description *LanguageAPI* | [**CreateLanguage**](docs/LanguageAPI.md#createlanguage) | **Post** /languages | Create a new language *LanguageAPI* | [**DeleteLanguage**](docs/LanguageAPI.md#deletelanguage) | **Delete** /languages/{languageId} | Delete a language *LanguageAPI* | [**GetLanguage**](docs/LanguageAPI.md#getlanguage) | **Get** /languages/{languageId} | Get details about a language -*LanguageAPI* | [**GetLanguages**](docs/LanguageAPI.md#getlanguages) | **Get** /languages | Get a list of Languages *LanguageAPI* | [**RemoveLanguageFromCountry**](docs/LanguageAPI.md#removelanguagefromcountry) | **Delete** /countries/{countryId}/languages/{languageId} | Assign a language to a country *LanguageAPI* | [**RemovePersonLanguage**](docs/LanguageAPI.md#removepersonlanguage) | **Delete** /persons/{personId}/languages/{languageId} | Remove a language from a person *LanguageAPI* | [**UpdatePersonLanguage**](docs/LanguageAPI.md#updatepersonlanguage) | **Put** /persons/{personId}/languages/{languageId} | Update a language of a person +*LanguagesAPI* | [**SearchLanguages**](docs/LanguagesAPI.md#searchlanguages) | **Post** /languages/search | Search over languages *OfficeAPI* | [**AddPersonOffice**](docs/OfficeAPI.md#addpersonoffice) | **Post** /persons/{personId}/offices/{officeId} | Assign a person to an office -*OfficeAPI* | [**CreateOffice**](docs/OfficeAPI.md#createoffice) | **Post** /organizations/{organizationId}/offices | Create an Office in an Organization -*OfficeAPI* | [**DeleteOffice**](docs/OfficeAPI.md#deleteoffice) | **Delete** /organizations/{organizationId}/offices/{officeId} | Delete an Office from an Organization +*OfficeAPI* | [**CreateOffice**](docs/OfficeAPI.md#createoffice) | **Post** /offices | Create an Office in an Organization +*OfficeAPI* | [**DeleteOffice**](docs/OfficeAPI.md#deleteoffice) | **Delete** /offices/{officeId} | Delete an Office from an Organization *OfficeAPI* | [**DeletePersonOffice**](docs/OfficeAPI.md#deletepersonoffice) | **Delete** /persons/{personId}/offices/{officeId} | Delete the office from a Person -*OfficeAPI* | [**GetOffice**](docs/OfficeAPI.md#getoffice) | **Get** /organizations/{organizationId}/offices/{officeId} | Get an Office for an Organization *OfficeAPI* | [**GetOfficeDetails**](docs/OfficeAPI.md#getofficedetails) | **Get** /offices/{officeId} | Get details about an Office independent of Organization -*OfficeAPI* | [**GetOffices**](docs/OfficeAPI.md#getoffices) | **Get** /offices | Get a list of all Offices -*OfficeAPI* | [**UpdateOffice**](docs/OfficeAPI.md#updateoffice) | **Put** /organizations/{organizationId}/offices/{officeId} | Update an Office for an Organization +*OfficeAPI* | [**UpdateOffice**](docs/OfficeAPI.md#updateoffice) | **Put** /offices/{officeId} | Update an Office for an Organization +*OfficesAPI* | [**SearchOffices**](docs/OfficesAPI.md#searchoffices) | **Post** /offices/search | Search over offices *OrganizationAPI* | [**AddExecutiveOrganizationToProject**](docs/OrganizationAPI.md#addexecutiveorganizationtoproject) | **Post** /projects/{projectId}/executive-organizations/{organizationId} | Add an Organization to a Project as executive organization *OrganizationAPI* | [**AddOrganizationToParentOrganization**](docs/OrganizationAPI.md#addorganizationtoparentorganization) | **Post** /organizations/{organizationId}/parents/{parentOrganizationId} | Attach an Organization to a parent Organization, returns the parent Organization *OrganizationAPI* | [**AttachOrganizationToIndustry**](docs/OrganizationAPI.md#attachorganizationtoindustry) | **Post** /organizations/{organizationId}/industries/{industryId} | Add an Organization to an Industry -*OrganizationAPI* | [**CreateCertification**](docs/OrganizationAPI.md#createcertification) | **Post** /organizations/{organizationId}/certifications | Create a Certification in an Organization -*OrganizationAPI* | [**CreateOffice**](docs/OrganizationAPI.md#createoffice) | **Post** /organizations/{organizationId}/offices | Create an Office in an Organization +*OrganizationAPI* | [**CreateOffice**](docs/OrganizationAPI.md#createoffice) | **Post** /offices | Create an Office in an Organization *OrganizationAPI* | [**CreateOrganization**](docs/OrganizationAPI.md#createorganization) | **Post** /organizations | Create an Organization -*OrganizationAPI* | [**CreateProject**](docs/OrganizationAPI.md#createproject) | **Post** /organizations/{organizationId}/projects | Create a Project in an Organization -*OrganizationAPI* | [**DeleteOffice**](docs/OrganizationAPI.md#deleteoffice) | **Delete** /organizations/{organizationId}/offices/{officeId} | Delete an Office from an Organization +*OrganizationAPI* | [**CreateProject**](docs/OrganizationAPI.md#createproject) | **Post** /projects | Create a Project in an Organization *OrganizationAPI* | [**DeleteOrganization**](docs/OrganizationAPI.md#deleteorganization) | **Delete** /organizations/{organizationId} | Delete an organization *OrganizationAPI* | [**DetachOrganizationFromIndustry**](docs/OrganizationAPI.md#detachorganizationfromindustry) | **Delete** /organizations/{organizationId}/industries/{industryId} | Remove an Organization to an Industry -*OrganizationAPI* | [**GetCertificationsForOrganization**](docs/OrganizationAPI.md#getcertificationsfororganization) | **Get** /organizations/{organizationId}/certifications | Get a list of all certifications for a organization -*OrganizationAPI* | [**GetOffice**](docs/OrganizationAPI.md#getoffice) | **Get** /organizations/{organizationId}/offices/{officeId} | Get an Office for an Organization *OrganizationAPI* | [**GetOrganization**](docs/OrganizationAPI.md#getorganization) | **Get** /organizations/{organizationId} | Get details about an Organization -*OrganizationAPI* | [**GetOrganizationProjects**](docs/OrganizationAPI.md#getorganizationprojects) | **Get** /organizations/{organizationId}/projects | Get a list of all Projects for an Organization -*OrganizationAPI* | [**GetOrganizations**](docs/OrganizationAPI.md#getorganizations) | **Get** /organizations | Get a list of all Organizations -*OrganizationAPI* | [**MoveCertification**](docs/OrganizationAPI.md#movecertification) | **Put** /organizations/{organizationId}/certificates/{certificationId} | Move a Certification to an Organization +*OrganizationAPI* | [**MoveCertification**](docs/OrganizationAPI.md#movecertification) | **Put** /certifications/{certificationId}/organizations/{organizationId} | Move a Certification to an Organization +*OrganizationAPI* | [**MoveProject**](docs/OrganizationAPI.md#moveproject) | **Put** /projects/{projectId}/organizations/{organizationId} | Move a Project to an Organization *OrganizationAPI* | [**RemoveExecutiveOrganizationFromProject**](docs/OrganizationAPI.md#removeexecutiveorganizationfromproject) | **Delete** /projects/{projectId}/executive-organizations/{organizationId} | Remove an Organization from a Project as executive organization *OrganizationAPI* | [**RemoveOrganizationFromParentOrganization**](docs/OrganizationAPI.md#removeorganizationfromparentorganization) | **Delete** /organizations/{organizationId}/parents/{parentOrganizationId} | Detaches an Organization from parent Organization, return the parent Organization -*OrganizationAPI* | [**UpdateOffice**](docs/OrganizationAPI.md#updateoffice) | **Put** /organizations/{organizationId}/offices/{officeId} | Update an Office for an Organization +*OrganizationAPI* | [**SearchOrganizations**](docs/OrganizationAPI.md#searchorganizations) | **Post** /organizations/search | Search over organizations *OrganizationAPI* | [**UpdateOrganization**](docs/OrganizationAPI.md#updateorganization) | **Put** /organizations/{organizationId} | Update an Organization -*OrganizationAPI* | [**UpdateProjectOrganization**](docs/OrganizationAPI.md#updateprojectorganization) | **Put** /organizations/{organizationId}/projects/{projectId} | project is now point to the new organization *PersonAPI* | [**AddPersonCertification**](docs/PersonAPI.md#addpersoncertification) | **Post** /persons/{personId}/certifications/{certificationId} | Add Certification to a Person *PersonAPI* | [**AddPersonInterest**](docs/PersonAPI.md#addpersoninterest) | **Post** /persons/{personId}/interests/skills/{skillId} | Add an Interest to a Person *PersonAPI* | [**AddPersonLanguage**](docs/PersonAPI.md#addpersonlanguage) | **Post** /persons/{personId}/languages/{languageId} | Assign a language to the person @@ -169,7 +160,6 @@ Class | Method | HTTP request | Description *PersonAPI* | [**DeletePersonSkillExperiences**](docs/PersonAPI.md#deletepersonskillexperiences) | **Delete** /persons/{personId}/experiences | Remove an Skill Experience to a Person *PersonAPI* | [**DeleteProjectParticipation**](docs/PersonAPI.md#deleteprojectparticipation) | **Delete** /project-participations/{projectParticipationId} | Remove an Project from a Person *PersonAPI* | [**GeneratePersonProfile**](docs/PersonAPI.md#generatepersonprofile) | **Get** /persons/{personId}/pdf-profile | Generate a PDF profile from a Person -*PersonAPI* | [**GetAllBusinessDepartments**](docs/PersonAPI.md#getallbusinessdepartments) | **Get** /persons/departments | Get all unique business departments *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 @@ -178,7 +168,7 @@ Class | Method | HTTP request | Description *PersonAPI* | [**RemoveManager**](docs/PersonAPI.md#removemanager) | **Delete** /persons/{personId}/manager | Remove a manager from a person *PersonAPI* | [**RemovePersonLanguage**](docs/PersonAPI.md#removepersonlanguage) | **Delete** /persons/{personId}/languages/{languageId} | Remove a language from a person *PersonAPI* | [**RemoveSkillConfirmation**](docs/PersonAPI.md#removeskillconfirmation) | **Delete** /project-participations/{projectParticipationId}/skills/{skillId}/confirmation/{confirmingPersonId} | Remove a confirmation -*PersonAPI* | [**SearchPersons**](docs/PersonAPI.md#searchpersons) | **Post** /persons/search | Complex search over person entities +*PersonAPI* | [**SearchPersons**](docs/PersonAPI.md#searchpersons) | **Post** /persons/search | Search over persons *PersonAPI* | [**SetManager**](docs/PersonAPI.md#setmanager) | **Put** /persons/{personId}/manager/{managerId} | Set a manager for a person *PersonAPI* | [**UpdateAvailability**](docs/PersonAPI.md#updateavailability) | **Put** /persons/{personId}/availabilities/{availabilityId} | Update a person availability *PersonAPI* | [**UpdatePerson**](docs/PersonAPI.md#updateperson) | **Put** /persons/{personId} | Update an existing Person @@ -193,26 +183,25 @@ Class | Method | HTTP request | Description *ProfileAPI* | [**DeletePersonProfile**](docs/ProfileAPI.md#deletepersonprofile) | **Delete** /persons/{personId}/profiles/{profileId} | Remove a Profile from a Person *ProfileAPI* | [**DeleteProfile**](docs/ProfileAPI.md#deleteprofile) | **Delete** /profiles/{profileId} | Delete a Profile *ProfileAPI* | [**GetProfile**](docs/ProfileAPI.md#getprofile) | **Get** /profiles/{profileId} | Get details about a Profile -*ProfileAPI* | [**GetProfiles**](docs/ProfileAPI.md#getprofiles) | **Get** /profiles | Get all Profiles *ProfileAPI* | [**UpdateProfile**](docs/ProfileAPI.md#updateprofile) | **Put** /profiles/{profileId} | Update a Profile +*ProfilesAPI* | [**SearchProfiles**](docs/ProfilesAPI.md#searchprofiles) | **Post** /profiles/search | Search over profiles *ProjectAPI* | [**AddExecutiveOrganizationToProject**](docs/ProjectAPI.md#addexecutiveorganizationtoproject) | **Post** /projects/{projectId}/executive-organizations/{organizationId} | Add an Organization to a Project as executive organization *ProjectAPI* | [**AddProjectParticipation**](docs/ProjectAPI.md#addprojectparticipation) | **Post** /project-participations | Add Project to a Person *ProjectAPI* | [**AddSkillConfirmation**](docs/ProjectAPI.md#addskillconfirmation) | **Post** /project-participations/{projectParticipationId}/skills/{skillId}/confirmation/{confirmingPersonId} | Confirm Skill -*ProjectAPI* | [**CreateProject**](docs/ProjectAPI.md#createproject) | **Post** /organizations/{organizationId}/projects | Create a Project in an Organization +*ProjectAPI* | [**CreateProject**](docs/ProjectAPI.md#createproject) | **Post** /projects | Create a Project in an Organization *ProjectAPI* | [**DeleteProject**](docs/ProjectAPI.md#deleteproject) | **Delete** /projects/{projectId} | Delete a project *ProjectAPI* | [**DeleteProjectParticipation**](docs/ProjectAPI.md#deleteprojectparticipation) | **Delete** /project-participations/{projectParticipationId} | Remove an Project from a Person -*ProjectAPI* | [**GetOrganizationProjects**](docs/ProjectAPI.md#getorganizationprojects) | **Get** /organizations/{organizationId}/projects | Get a list of all Projects for an Organization *ProjectAPI* | [**GetProject**](docs/ProjectAPI.md#getproject) | **Get** /projects/{projectId} | Get details about a Project +*ProjectAPI* | [**MoveProject**](docs/ProjectAPI.md#moveproject) | **Put** /projects/{projectId}/organizations/{organizationId} | Move a Project to an Organization *ProjectAPI* | [**ReadProjectParticipation**](docs/ProjectAPI.md#readprojectparticipation) | **Get** /project-participations/{projectParticipationId} | Get a project participation *ProjectAPI* | [**RemoveExecutiveOrganizationFromProject**](docs/ProjectAPI.md#removeexecutiveorganizationfromproject) | **Delete** /projects/{projectId}/executive-organizations/{organizationId} | Remove an Organization from a Project as executive organization *ProjectAPI* | [**RemoveSkillConfirmation**](docs/ProjectAPI.md#removeskillconfirmation) | **Delete** /project-participations/{projectParticipationId}/skills/{skillId}/confirmation/{confirmingPersonId} | Remove a confirmation -*ProjectAPI* | [**SearchProjectParticipations**](docs/ProjectAPI.md#searchprojectparticipations) | **Post** /project-participations/search | Complex search over project entities +*ProjectAPI* | [**SearchProjectParticipations**](docs/ProjectAPI.md#searchprojectparticipations) | **Post** /project-participations/search | Search over project participations *ProjectAPI* | [**SearchProjects**](docs/ProjectAPI.md#searchprojects) | **Post** /projects/search | Complex search over project entities *ProjectAPI* | [**UpdateProject**](docs/ProjectAPI.md#updateproject) | **Put** /projects/{projectId} | Update a Project -*ProjectAPI* | [**UpdateProjectOrganization**](docs/ProjectAPI.md#updateprojectorganization) | **Put** /organizations/{organizationId}/projects/{projectId} | project is now point to the new organization *ProjectAPI* | [**UpdateProjectParticipation**](docs/ProjectAPI.md#updateprojectparticipation) | **Put** /project-participations/{projectParticipationId} | Update a Project of a Person *ProjectParticipationAPI* | [**ReadPersonProjectParticipation**](docs/ProjectParticipationAPI.md#readpersonprojectparticipation) | **Get** /persons/{personId}/project-participation | Get a Project Participation of a Person -*SearchAPI* | [**SearchAll**](docs/SearchAPI.md#searchall) | **Get** /search/all/{text} | Fulltext search on all kinds of objects +*SearchAPI* | [**Search**](docs/SearchAPI.md#search) | **Post** /search | Fulltext search on all kinds of objects *SkillAPI* | [**AddPersonInterest**](docs/SkillAPI.md#addpersoninterest) | **Post** /persons/{personId}/interests/skills/{skillId} | Add an Interest to a Person *SkillAPI* | [**AddPersonSkillExperience**](docs/SkillAPI.md#addpersonskillexperience) | **Post** /persons/{personId}/experiences/skills/{skillId} | Add an Skill experience to a Person *SkillAPI* | [**AddPersonSkillExperiences**](docs/SkillAPI.md#addpersonskillexperiences) | **Post** /persons/{personId}/experiences | Add an Skill experience to a Person (bulk) @@ -226,10 +215,9 @@ Class | Method | HTTP request | Description *SkillAPI* | [**DeleteSkill**](docs/SkillAPI.md#deleteskill) | **Delete** /skills/{skillId} | Delete a Skill *SkillAPI* | [**DeleteSkillFromCertification**](docs/SkillAPI.md#deleteskillfromcertification) | **Delete** /certifications/{certificationId}/skills/{skillId} | *SkillAPI* | [**GetSkill**](docs/SkillAPI.md#getskill) | **Get** /skills/{skillId} | Get details for a single skill -*SkillAPI* | [**GetSkillParents**](docs/SkillAPI.md#getskillparents) | **Get** /skills/{skillId}/parents | Get ghe list of parents for a skill -*SkillAPI* | [**GetSkills**](docs/SkillAPI.md#getskills) | **Get** /skills | Get a list of all skills, optionally only root *SkillAPI* | [**RemoveSkillConfirmation**](docs/SkillAPI.md#removeskillconfirmation) | **Delete** /project-participations/{projectParticipationId}/skills/{skillId}/confirmation/{confirmingPersonId} | Remove a confirmation *SkillAPI* | [**RemoveSkillFromParentSkill**](docs/SkillAPI.md#removeskillfromparentskill) | **Delete** /skills/{skillId}/parents/{parentSkillId} | Detaches a Skill from parent Skill, return the parent Skill +*SkillAPI* | [**SearchSkills**](docs/SkillAPI.md#searchskills) | **Post** /skills/search | Search over skills *SkillAPI* | [**UpdatePersonSkillExperience**](docs/SkillAPI.md#updatepersonskillexperience) | **Put** /persons/{personId}/experiences/skills/{skillId} | Edit an Skill experience to a Person *SkillAPI* | [**UpdatePersonSkillExperiences**](docs/SkillAPI.md#updatepersonskillexperiences) | **Put** /persons/{personId}/experiences | Edit an Skill experience to a Person *SkillAPI* | [**UpdateSkill**](docs/SkillAPI.md#updateskill) | **Put** /skills/{skillId} | Update a Skill @@ -270,6 +258,7 @@ Class | Method | HTTP request | Description - [Nameable](docs/Nameable.md) - [NamedDomainModel](docs/NamedDomainModel.md) - [Office](docs/Office.md) + - [OfficeSearch](docs/OfficeSearch.md) - [Organization](docs/Organization.md) - [OrganizationDetails](docs/OrganizationDetails.md) - [Page](docs/Page.md) @@ -306,6 +295,7 @@ Class | Method | HTTP request | Description - [ProjectStatus](docs/ProjectStatus.md) - [ProjectType](docs/ProjectType.md) - [ScoreResult](docs/ScoreResult.md) + - [Search](docs/Search.md) - [SearchResult](docs/SearchResult.md) - [SearchResultItem](docs/SearchResultItem.md) - [Seniority](docs/Seniority.md) @@ -316,6 +306,7 @@ Class | Method | HTTP request | Description - [SkillLevelUpdate](docs/SkillLevelUpdate.md) - [SkillLink](docs/SkillLink.md) - [SkillLinkUpdate](docs/SkillLinkUpdate.md) + - [SkillSearch](docs/SkillSearch.md) - [Status](docs/Status.md) - [Suggestable](docs/Suggestable.md) - [Synonymable](docs/Synonymable.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index c9d54c02..5feb51f0 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -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.16.5 + version: 1.17.0 servers: - url: "{scheme}://{host}:{port}/api/v1" variables: @@ -80,62 +80,28 @@ paths: summary: Information about the server tags: - Status - /organizations: - get: - operationId: getOrganizations + /certifications: + post: + operationId: createCertification parameters: - - in: query - name: skip - required: false - schema: - default: 0 - example: 0 - type: integer - - in: query - name: limit - required: false - schema: - default: 20 - example: 20 - type: integer - - description: Optionally search via search term + - description: The ID of the organization in: query - name: term - required: false + name: organizationId + required: true schema: - default: "" - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/PagedOrganizations' - description: A paged array of Organizations - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: The specified resource was not found - summary: Get a list of all Organizations - tags: - - Organization - post: - operationId: createOrganization + $ref: '#/components/schemas/UUID' requestBody: content: application/json: schema: - $ref: '#/components/schemas/Organization' - description: Details about the Organization + $ref: '#/components/schemas/Certification' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/OrganizationDetails' + $ref: '#/components/schemas/CertificationDetails' description: OK default: content: @@ -143,15 +109,15 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Create an Organization + summary: Create a Certification in an Organization tags: - - Organization - /organizations/{organizationId}: + - Certification + /certifications/{certificationId}: delete: - operationId: deleteOrganization + operationId: deleteCertification parameters: - in: path - name: organizationId + name: certificationId required: true schema: $ref: '#/components/schemas/UUID' @@ -168,14 +134,14 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Delete an organization + summary: Delete a Certification tags: - - Organization + - Certification get: - operationId: getOrganization + operationId: getCertification parameters: - in: path - name: organizationId + name: certificationId required: true schema: $ref: '#/components/schemas/UUID' @@ -184,7 +150,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OrganizationDetails' + $ref: '#/components/schemas/CertificationDetails' description: OK default: content: @@ -192,14 +158,14 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get details about an Organization + summary: Get details about a Certification tags: - - Organization + - Certification put: - operationId: updateOrganization + operationId: updateCertification parameters: - in: path - name: organizationId + name: certificationId required: true schema: $ref: '#/components/schemas/UUID' @@ -207,15 +173,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Organization' - description: Details about the organization + $ref: '#/components/schemas/Certification' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/OrganizationDetails' + $ref: '#/components/schemas/CertificationDetails' description: OK default: content: @@ -223,20 +188,20 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Update an Organization + summary: Update a Certification tags: - - Organization - /organizations/{organizationId}/parents/{parentOrganizationId}: - delete: - operationId: removeOrganizationFromParentOrganization + - Certification + /certifications/{certificationId}/organizations/{organizationId}: + put: + operationId: moveCertification parameters: - in: path - name: organizationId + name: certificationId required: true schema: $ref: '#/components/schemas/UUID' - in: path - name: parentOrganizationId + name: organizationId required: true schema: $ref: '#/components/schemas/UUID' @@ -245,7 +210,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OrganizationDetails' + $ref: '#/components/schemas/CertificationDetails' description: OK default: content: @@ -253,20 +218,21 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: "Detaches an Organization from parent Organization, return the parent\ - \ Organization" + summary: Move a Certification to an Organization tags: - Organization - post: - operationId: addOrganizationToParentOrganization + - Certification + /certifications/{certificationId}/skills/{skillId}: + delete: + operationId: deleteSkillFromCertification parameters: - in: path - name: organizationId + name: certificationId required: true schema: $ref: '#/components/schemas/UUID' - in: path - name: parentOrganizationId + name: skillId required: true schema: $ref: '#/components/schemas/UUID' @@ -275,7 +241,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OrganizationDetails' + $ref: '#/components/schemas/CertificationDetails' description: OK default: content: @@ -283,30 +249,35 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: "Attach an Organization to a parent Organization, returns the parent\ - \ Organization" tags: - - Organization - /organizations/{organizationId}/industries/{industryId}: - delete: - operationId: detachOrganizationFromIndustry + - Certification + - Skill + post: + description: Add Skill to Certification + operationId: addSkillToCertification parameters: - in: path - name: organizationId + name: certificationId required: true schema: $ref: '#/components/schemas/UUID' - in: path - name: industryId + name: skillId required: true schema: $ref: '#/components/schemas/UUID' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Level' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/OrganizationDetails' + $ref: '#/components/schemas/CertificationDetails' description: OK default: content: @@ -314,29 +285,35 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Remove an Organization to an Industry tags: - - Organization - - Industry - post: - operationId: attachOrganizationToIndustry + - Certification + - Skill + put: + description: Update Skill in Certification + operationId: updateSkillInCertification parameters: - in: path - name: organizationId + name: certificationId required: true schema: $ref: '#/components/schemas/UUID' - in: path - name: industryId + name: skillId required: true schema: $ref: '#/components/schemas/UUID' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Level' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/OrganizationDetails' + $ref: '#/components/schemas/CertificationDetails' description: OK default: content: @@ -344,31 +321,49 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Add an Organization to an Industry tags: - - Organization - - Industry - /organizations/{organizationId}/offices: + - Certification + - Skill + /certifications/search: post: - operationId: createOffice - parameters: - - in: path - name: organizationId - required: true - schema: - $ref: '#/components/schemas/UUID' + operationId: searchCertifications requestBody: content: application/json: schema: - $ref: '#/components/schemas/Office' + $ref: '#/components/schemas/CertificationSearch' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PagedCertifications' + description: OK + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The specified resource was not found + summary: Search over certifications + tags: + - Certification + /countries: + post: + operationId: createCountry + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Country' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/OrganizationDetails' + $ref: '#/components/schemas/CountryDetails' description: OK default: content: @@ -376,21 +371,15 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Create an Office in an Organization + summary: Create a new Country tags: - - Organization - - Office - /organizations/{organizationId}/offices/{officeId}: + - Country + /countries/{countryId}: delete: - operationId: deleteOffice + operationId: deleteCountry parameters: - in: path - name: organizationId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: path - name: officeId + name: countryId required: true schema: $ref: '#/components/schemas/UUID' @@ -407,20 +396,14 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Delete an Office from an Organization + summary: Delete a Country tags: - - Organization - - Office + - Country get: - operationId: getOffice + operationId: getCountry parameters: - in: path - name: organizationId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: path - name: officeId + name: countryId required: true schema: $ref: '#/components/schemas/UUID' @@ -429,7 +412,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Office' + $ref: '#/components/schemas/CountryDetails' description: OK default: content: @@ -437,20 +420,14 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get an Office for an Organization + summary: Get details about a Country tags: - - Organization - - Office + - Country put: - operationId: updateOffice + operationId: updateCountry parameters: - in: path - name: organizationId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: path - name: officeId + name: countryId required: true schema: $ref: '#/components/schemas/UUID' @@ -458,14 +435,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Office' + $ref: '#/components/schemas/Country' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Office' + $ref: '#/components/schemas/CountryDetails' description: OK default: content: @@ -473,31 +450,21 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Update an Office for an Organization + summary: Update a Country tags: - - Organization - - Office - /offices: - get: - operationId: getOffices + - Country + /countries/{countryId}/languages/{languageId}: + delete: + operationId: removeLanguageFromCountry parameters: - - in: query - name: skip - required: false + - in: path + name: countryId + required: true schema: - default: 0 - example: 0 - type: integer - - in: query - name: limit - required: false - schema: - default: 20 - example: 20 - type: integer - - in: query - name: organizationId - required: false + $ref: '#/components/schemas/UUID' + - in: path + name: languageId + required: true schema: $ref: '#/components/schemas/UUID' responses: @@ -505,23 +472,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PagedOffices' - description: A paged array of Offices + $ref: '#/components/schemas/CountryDetails' + description: OK default: content: application/json: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get a list of all Offices + summary: Assign a language to a country tags: - - Office - /offices/{officeId}: - get: - operationId: getOfficeDetails + - Language + - Country + post: + operationId: addLanguageToCountry parameters: - in: path - name: officeId + name: countryId + required: true + schema: + $ref: '#/components/schemas/UUID' + - in: path + name: languageId required: true schema: $ref: '#/components/schemas/UUID' @@ -530,7 +502,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Office' + $ref: '#/components/schemas/CountryDetails' description: OK default: content: @@ -538,40 +510,25 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get details about an Office independent of Organization + summary: Assign a language to a country tags: - - Office - /industries: - get: - operationId: getIndustries - parameters: - - in: query - name: skip - required: false - schema: - default: 0 - example: 0 - type: integer - - in: query - name: limit - required: false - schema: - default: 20 - example: 20 - type: integer - - description: Optionally search via search term - in: query - name: term + - Language + - Country + /countries/search: + post: + operationId: searchCountries + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Search' required: false - schema: - default: "" - type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PagedIndustries' + $ref: '#/components/schemas/PagedCountries' description: OK default: content: @@ -579,9 +536,10 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get all Industries + summary: Search over countries tags: - - Industry + - Countries + /industries: post: operationId: createIndustry requestBody: @@ -685,35 +643,21 @@ paths: summary: Update an Industry tags: - Industry - /organizations/{organizationId}/certifications: - get: - operationId: getCertificationsForOrganization - parameters: - - in: path - name: organizationId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: query - name: skip - required: false - schema: - default: 0 - example: 0 - type: integer - - in: query - name: limit + /industries/search: + post: + operationId: searchIndustries + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Search' required: false - schema: - default: 20 - example: 20 - type: integer responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PagedCertifications' + $ref: '#/components/schemas/PagedIndustries' description: OK default: content: @@ -721,30 +665,24 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get a list of all certifications for a organization + summary: Search over industries tags: - - Organization - - Certification + - Industries + /languages: post: - operationId: createCertification - parameters: - - in: path - name: organizationId - required: true - schema: - $ref: '#/components/schemas/UUID' + operationId: createLanguage requestBody: content: application/json: schema: - $ref: '#/components/schemas/Certification' + $ref: '#/components/schemas/Language' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CertificationDetails' + $ref: '#/components/schemas/LanguageDetails' description: OK default: content: @@ -752,21 +690,15 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Create a Certification in an Organization + summary: Create a new language tags: - - Organization - - Certification - /organizations/{organizationId}/certificates/{certificationId}: - put: - operationId: moveCertification + - Language + /languages/{languageId}: + delete: + operationId: deleteLanguage parameters: - in: path - name: organizationId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: path - name: certificationId + name: languageId required: true schema: $ref: '#/components/schemas/UUID' @@ -775,47 +707,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CertificationDetails' + $ref: '#/components/schemas/Status' description: OK - default: + "400": content: application/json: schema: $ref: '#/components/schemas/Error' - description: The specified resource was not found - summary: Move a Certification to an Organization + description: Error + summary: Delete a language tags: - - Organization - - Certification - /organizations/{organizationId}/projects: + - Language get: - operationId: getOrganizationProjects + operationId: getLanguage parameters: - in: path - name: organizationId + name: languageId required: true schema: $ref: '#/components/schemas/UUID' - - in: query - name: skip - required: false - schema: - default: 0 - example: 0 - type: integer - - in: query - name: limit - required: false - schema: - default: 20 - example: 20 - type: integer responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PagedProjects' + $ref: '#/components/schemas/LanguageDetails' description: OK default: content: @@ -823,30 +739,24 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get a list of all Projects for an Organization + summary: Get details about a language tags: - - Organization - - Project + - Language + /languages/search: post: - operationId: createProject - parameters: - - in: path - name: organizationId - required: true - schema: - $ref: '#/components/schemas/UUID' + operationId: searchLanguages requestBody: content: application/json: schema: - $ref: '#/components/schemas/Project' - required: true + $ref: '#/components/schemas/Search' + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ProjectDetails' + $ref: '#/components/schemas/PagedLanguages' description: OK default: content: @@ -854,30 +764,31 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Create a Project in an Organization + summary: Search over languages tags: - - Organization - - Project - /organizations/{organizationId}/projects/{projectId}: - put: - operationId: updateProjectOrganization + - Languages + /offices: + post: + operationId: createOffice parameters: - - in: path + - description: The ID of the organization + in: query name: organizationId required: true schema: $ref: '#/components/schemas/UUID' - - in: path - name: projectId + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Office' required: true - schema: - $ref: '#/components/schemas/UUID' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ProjectDetails' + $ref: '#/components/schemas/Office' description: OK default: content: @@ -885,57 +796,16 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: project is now point to the new organization + summary: Create an Office in an Organization tags: - Organization - - Project - /certifications: - get: - operationId: getCertifications - parameters: - - in: query - name: skip - required: false - schema: - default: 0 - example: 0 - type: integer - - in: query - name: limit - required: false - schema: - default: 20 - example: 20 - type: integer - - description: Optionally search via search term - in: query - name: term - required: false - schema: - default: "" - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/PagedCertifications' - description: OK - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: The specified resource was not found - summary: Get a list of all Certifications independent of the Organization - tags: - - Certification - /certifications/{certificationId}: + - Office + /offices/{officeId}: delete: - operationId: deleteCertification + operationId: deleteOffice parameters: - in: path - name: certificationId + name: officeId required: true schema: $ref: '#/components/schemas/UUID' @@ -952,14 +822,14 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Delete a Certification + summary: Delete an Office from an Organization tags: - - Certification + - Office get: - operationId: getCertification + operationId: getOfficeDetails parameters: - in: path - name: certificationId + name: officeId required: true schema: $ref: '#/components/schemas/UUID' @@ -968,7 +838,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CertificationDetails' + $ref: '#/components/schemas/Office' description: OK default: content: @@ -976,14 +846,14 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get details about a Certification + summary: Get details about an Office independent of Organization tags: - - Certification + - Office put: - operationId: updateCertification + operationId: updateOffice parameters: - in: path - name: certificationId + name: officeId required: true schema: $ref: '#/components/schemas/UUID' @@ -991,14 +861,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Certification' + $ref: '#/components/schemas/Office' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CertificationDetails' + $ref: '#/components/schemas/Office' description: OK default: content: @@ -1006,29 +876,24 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Update a Certification + summary: Update an Office for an Organization tags: - - Certification - /certifications/{certificationId}/skills/{skillId}: - delete: - operationId: deleteSkillFromCertification - parameters: - - in: path - name: certificationId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: path - name: skillId - required: true - schema: - $ref: '#/components/schemas/UUID' + - Office + /offices/search: + post: + operationId: searchOffices + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OfficeSearch' + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CertificationDetails' + $ref: '#/components/schemas/PagedOffices' description: OK default: content: @@ -1036,35 +901,25 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found + summary: Search over offices tags: - - Certification - - Skill + - Offices + /organizations: post: - description: Add Skill to Certification - operationId: addSkillToCertification - parameters: - - in: path - name: certificationId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: path - name: skillId - required: true - schema: - $ref: '#/components/schemas/UUID' + operationId: createOrganization requestBody: content: application/json: schema: - $ref: '#/components/schemas/Level' + $ref: '#/components/schemas/Organization' + description: Details about the Organization required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CertificationDetails' + $ref: '#/components/schemas/OrganizationDetails' description: OK default: content: @@ -1072,35 +927,24 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found + summary: Create an Organization tags: - - Certification - - Skill - put: - description: Update Skill in Certification - operationId: updateSkillInCertification + - Organization + /organizations/{organizationId}: + delete: + operationId: deleteOrganization parameters: - in: path - name: certificationId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: path - name: skillId + name: organizationId required: true schema: $ref: '#/components/schemas/UUID' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Level' - required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CertificationDetails' + $ref: '#/components/schemas/Status' description: OK default: content: @@ -1108,39 +952,23 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found + summary: Delete an organization tags: - - Certification - - Skill - /certifications/search: - post: - operationId: searchCertifications + - Organization + get: + operationId: getOrganization parameters: - - in: query - name: skip - required: false - schema: - default: 0 - example: 0 - type: integer - - in: query - name: limit - required: false - schema: - default: 20 - example: 20 - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CertificationSearch' + - in: path + name: organizationId required: true + schema: + $ref: '#/components/schemas/UUID' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PagedCertifications' + $ref: '#/components/schemas/OrganizationDetails' description: OK default: content: @@ -1148,39 +976,30 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Complex search over certification entities + summary: Get details about an Organization tags: - - Certification - /projects/search: - post: - operationId: searchProjects + - Organization + put: + operationId: updateOrganization parameters: - - in: query - name: skip - required: false - schema: - default: 0 - example: 0 - type: integer - - in: query - name: limit - required: false + - in: path + name: organizationId + required: true schema: - default: 20 - example: 20 - type: integer + $ref: '#/components/schemas/UUID' requestBody: content: application/json: schema: - $ref: '#/components/schemas/ProjectSearch' + $ref: '#/components/schemas/Organization' + description: Details about the organization required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PagedProjects' + $ref: '#/components/schemas/OrganizationDetails' description: OK default: content: @@ -1188,15 +1007,20 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Complex search over project entities + summary: Update an Organization tags: - - Project - /projects/{projectId}: + - Organization + /organizations/{organizationId}/industries/{industryId}: delete: - operationId: deleteProject + operationId: detachOrganizationFromIndustry parameters: - in: path - name: projectId + name: organizationId + required: true + schema: + $ref: '#/components/schemas/UUID' + - in: path + name: industryId required: true schema: $ref: '#/components/schemas/UUID' @@ -1205,7 +1029,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Status' + $ref: '#/components/schemas/OrganizationDetails' description: OK default: content: @@ -1213,14 +1037,20 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Delete a project + summary: Remove an Organization to an Industry tags: - - Project - get: - operationId: getProject + - Organization + - Industry + post: + operationId: attachOrganizationToIndustry parameters: - in: path - name: projectId + name: organizationId + required: true + schema: + $ref: '#/components/schemas/UUID' + - in: path + name: industryId required: true schema: $ref: '#/components/schemas/UUID' @@ -1229,7 +1059,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProjectDetails' + $ref: '#/components/schemas/OrganizationDetails' description: OK default: content: @@ -1237,29 +1067,30 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get details about a Project + summary: Add an Organization to an Industry tags: - - Project - put: - operationId: updateProject + - Organization + - Industry + /organizations/{organizationId}/parents/{parentOrganizationId}: + delete: + operationId: removeOrganizationFromParentOrganization parameters: - in: path - name: projectId + name: organizationId required: true schema: $ref: '#/components/schemas/UUID' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Project' + - in: path + name: parentOrganizationId required: true + schema: + $ref: '#/components/schemas/UUID' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ProjectDetails' + $ref: '#/components/schemas/OrganizationDetails' description: OK default: content: @@ -1267,20 +1098,20 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Update a Project + summary: "Detaches an Organization from parent Organization, return the parent\ + \ Organization" tags: - - Project - /projects/{projectId}/executive-organizations/{organizationId}: - delete: - operationId: removeExecutiveOrganizationFromProject + - Organization + post: + operationId: addOrganizationToParentOrganization parameters: - in: path - name: projectId + name: organizationId required: true schema: $ref: '#/components/schemas/UUID' - in: path - name: organizationId + name: parentOrganizationId required: true schema: $ref: '#/components/schemas/UUID' @@ -1289,7 +1120,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProjectDetails' + $ref: '#/components/schemas/OrganizationDetails' description: OK default: content: @@ -1297,29 +1128,25 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Remove an Organization from a Project as executive organization + summary: "Attach an Organization to a parent Organization, returns the parent\ + \ Organization" tags: - - Project - Organization + /organizations/search: post: - operationId: addExecutiveOrganizationToProject - parameters: - - in: path - name: projectId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: path - name: organizationId - required: true - schema: - $ref: '#/components/schemas/UUID' + operationId: searchOrganizations + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Search' + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ProjectDetails' + $ref: '#/components/schemas/PagedOrganizations' description: OK default: content: @@ -1327,40 +1154,24 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Add an Organization to a Project as executive organization + summary: Search over organizations tags: - - Project - Organization - /project-participations/search: + /persons: post: - operationId: searchProjectParticipations - parameters: - - in: query - name: skip - required: false - schema: - default: 0 - example: 0 - type: integer - - in: query - name: limit - required: false - schema: - default: 20 - example: 20 - type: integer + operationId: createPerson requestBody: content: application/json: schema: - $ref: '#/components/schemas/ProjectParticipationSearch' + $ref: '#/components/schemas/Person' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PagedProjectParticipation' + $ref: '#/components/schemas/PersonDetails' description: OK default: content: @@ -1368,71 +1179,24 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Complex search over project entities + summary: Create a new Person tags: - - Project - /skills: - get: - operationId: getSkills + - Person + /persons/{personId}: + delete: + operationId: deletePerson parameters: - - in: query - name: skip - required: false + - in: path + name: personId + required: true schema: - default: 0 - example: 0 - type: integer - - in: query - name: limit - required: false - schema: - default: 20 - example: 20 - type: integer - - description: Optionally search via search term - in: query - name: term - required: false - schema: - default: "" - type: string - - description: "Gives you either all skills, only the root kills" - in: query - name: types - required: false - schema: - default: all - enum: - - all - - root - - group - example: all - type: string - - description: Optionally filter skills based on suggestion - in: query - name: suggestions - required: false - schema: - default: all - enum: - - all - - suggested - - notsuggested - example: all - type: string - - description: Optionally filter skills based on linkable - in: query - name: linkable - required: false - schema: - example: true - type: boolean + $ref: '#/components/schemas/UUID' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PagedSkills' + $ref: '#/components/schemas/Status' description: OK default: content: @@ -1440,23 +1204,23 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: "Get a list of all skills, optionally only root" + summary: Delete an existing Person tags: - - Skill - post: - operationId: createSkill - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Skill' + - Person + get: + operationId: getPerson + parameters: + - in: path + name: personId required: true + schema: + $ref: '#/components/schemas/UUID' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SkillDetails' + $ref: '#/components/schemas/PersonDetails' description: OK default: content: @@ -1464,24 +1228,29 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Create a Skill + summary: Get basic info about a person tags: - - Skill - /skills/{skillId}: - delete: - operationId: deleteSkill + - Person + put: + operationId: updatePerson parameters: - in: path - name: skillId + name: personId required: true schema: $ref: '#/components/schemas/UUID' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Person' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Status' + $ref: '#/components/schemas/PersonDetails' description: OK default: content: @@ -1489,14 +1258,15 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Delete a Skill + summary: Update an existing Person tags: - - Skill + - Person + /persons/{personId}/availabilities: get: - operationId: getSkill + operationId: getAvailabilities parameters: - in: path - name: skillId + name: personId required: true schema: $ref: '#/components/schemas/UUID' @@ -1505,7 +1275,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SkillDetails' + $ref: '#/components/schemas/PagedAvailabilities' description: OK default: content: @@ -1513,14 +1283,15 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get details for a single skill + summary: Get a list of all activities for a person tags: - - Skill - put: - operationId: updateSkill + - Person + - Availability + post: + operationId: createAvailability parameters: - in: path - name: skillId + name: personId required: true schema: $ref: '#/components/schemas/UUID' @@ -1528,14 +1299,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Skill' + $ref: '#/components/schemas/Availability' + description: The availability required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SkillDetails' + $ref: '#/components/schemas/AvailabilityDetail' description: OK default: content: @@ -1543,38 +1315,30 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Update a Skill + summary: Create a availability for a person tags: - - Skill - /skills/{skillId}/parents: - get: - operationId: getSkillParents + - Person + - Availability + /persons/{personId}/availabilities/{availabilityId}: + delete: + operationId: deleteAvailability parameters: - in: path - name: skillId + name: personId required: true schema: $ref: '#/components/schemas/UUID' - - in: query - name: skip - required: false - schema: - default: 0 - example: 0 - type: integer - - in: query - name: limit - required: false + - in: path + name: availabilityId + required: true schema: - default: 20 - example: 20 - type: integer + $ref: '#/components/schemas/UUID' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PagedSkills' + $ref: '#/components/schemas/Status' description: OK default: content: @@ -1582,29 +1346,36 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get ghe list of parents for a skill + summary: Delete a person availability tags: - - Skill - /skills/{skillId}/parents/{parentSkillId}: - delete: - operationId: removeSkillFromParentSkill + - Person + - Availability + put: + operationId: updateAvailability parameters: - in: path - name: skillId + name: personId required: true schema: $ref: '#/components/schemas/UUID' - in: path - name: parentSkillId + name: availabilityId required: true schema: $ref: '#/components/schemas/UUID' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Availability' + description: The availability + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SkillDetails' + $ref: '#/components/schemas/AvailabilityDetail' description: OK default: content: @@ -1612,34 +1383,30 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: "Detaches a Skill from parent Skill, return the parent Skill" + summary: Update a person availability tags: - - Skill - post: - operationId: addSkillToParentSkill + - Person + - Availability + /persons/{personId}/certifications/{certificationId}: + delete: + operationId: deletePersonCertification parameters: - in: path - name: skillId + name: personId required: true schema: $ref: '#/components/schemas/UUID' - in: path - name: parentSkillId + name: certificationId required: true schema: $ref: '#/components/schemas/UUID' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SkillLinkUpdate' - required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SkillDetails' + $ref: '#/components/schemas/PersonDetails' description: OK default: content: @@ -1647,17 +1414,28 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: "Attach a Skill to a parent Skill, returns the parent Skill" + summary: Remove an Interest to a Person tags: - - Skill - /persons: + - Person + - Certification post: - operationId: createPerson + operationId: addPersonCertification + parameters: + - in: path + name: personId + required: true + schema: + $ref: '#/components/schemas/UUID' + - in: path + name: certificationId + required: true + schema: + $ref: '#/components/schemas/UUID' requestBody: content: application/json: schema: - $ref: '#/components/schemas/Person' + $ref: '#/components/schemas/DateModel' required: true responses: "200": @@ -1672,24 +1450,35 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Create a new Person + summary: Add Certification to a Person tags: - Person - /persons/{personId}: - delete: - operationId: deletePerson + - Certification + put: + operationId: updatePersonCertification parameters: - in: path name: personId required: true schema: $ref: '#/components/schemas/UUID' + - in: path + name: certificationId + required: true + schema: + $ref: '#/components/schemas/UUID' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DateModel' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Status' + $ref: '#/components/schemas/PersonDetails' description: OK default: content: @@ -1697,17 +1486,26 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Delete an existing Person + summary: Update a Certification of a Person tags: - Person - get: - operationId: getPerson + - Certification + /persons/{personId}/experiences: + delete: + operationId: deletePersonSkillExperiences parameters: - in: path name: personId required: true schema: $ref: '#/components/schemas/UUID' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UUIDS' + description: A list of skillIds + required: true responses: "200": content: @@ -1721,11 +1519,12 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get basic info about a person + summary: Remove an Skill Experience to a Person tags: - Person - put: - operationId: updatePerson + - Skill + post: + operationId: addPersonSkillExperiences parameters: - in: path name: personId @@ -1736,7 +1535,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Person' + items: + $ref: '#/components/schemas/SkillLevelUpdate' + type: array required: true responses: "200": @@ -1751,118 +1552,63 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Update an existing Person + summary: Add an Skill experience to a Person (bulk) tags: - Person - /persons/{personId}/picture: - delete: - operationId: deletePersonPicture + - Skill + put: + operationId: updatePersonSkillExperiences parameters: - in: path name: personId required: true schema: $ref: '#/components/schemas/UUID' + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/SkillLevelUpdate' + type: array + required: true responses: - "204": + "200": content: application/json: schema: - $ref: '#/components/schemas/Status' - description: Deleted + $ref: '#/components/schemas/PersonDetails' + description: OK default: content: application/json: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Delete person image + summary: Edit an Skill experience to a Person tags: - Person - get: - operationId: readPersonPicture + - Skill + /persons/{personId}/experiences/skills/{skillId}: + delete: + operationId: deletePersonSkillExperience parameters: - in: path name: personId required: true schema: $ref: '#/components/schemas/UUID' - responses: - "200": - content: - image/jpeg: - schema: - example: JVBERi0xLjQKJcfs... - 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 - put: - operationId: updatePersonPicture - parameters: - in: path - name: personId + name: skillId required: true schema: $ref: '#/components/schemas/UUID' - requestBody: - content: - application/octet-stream: - schema: - example: JVBERi0xLjQKJcfs... - format: binary - type: string - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Status' - description: High resolution picture of a person - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: The specified resource was not found - summary: Update person image - tags: - - Person - /persons/departments: - get: - operationId: getAllBusinessDepartments - parameters: - - in: query - name: skip - required: false - schema: - default: 0 - example: 0 - type: integer - - in: query - name: limit - required: false - schema: - default: 20 - example: 20 - type: integer responses: "200": content: application/json: schema: - items: - type: string - type: array + $ref: '#/components/schemas/PersonDetails' description: OK default: content: @@ -1870,39 +1616,35 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get all unique business departments + summary: Remove an Skill Experience to a Person tags: - Person - /persons/search: + - Skill post: - operationId: searchPersons + operationId: addPersonSkillExperience parameters: - - in: query - name: skip - required: false + - in: path + name: personId + required: true schema: - default: 0 - example: 0 - type: integer - - in: query - name: limit - required: false + $ref: '#/components/schemas/UUID' + - in: path + name: skillId + required: true schema: - default: 20 - example: 20 - type: integer + $ref: '#/components/schemas/UUID' requestBody: content: application/json: schema: - $ref: '#/components/schemas/PersonSearch' + $ref: '#/components/schemas/Level' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PagedPersons' + $ref: '#/components/schemas/PersonDetails' description: OK default: content: @@ -1910,74 +1652,46 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Complex search over person entities + summary: Add an Skill experience to a Person tags: - Person - /persons/{personId}/pdf-profile: - get: - operationId: generatePersonProfile + - Skill + put: + operationId: updatePersonSkillExperience parameters: - in: path name: personId required: true schema: $ref: '#/components/schemas/UUID' - - explode: true - in: query - name: projectIds - required: false - schema: - $ref: '#/components/schemas/UUIDS' - style: form - - explode: true - in: query - name: skillIds - required: false - schema: - $ref: '#/components/schemas/UUIDS' - style: form - - explode: true - in: query - name: certificationIds - required: false - schema: - $ref: '#/components/schemas/UUIDS' - style: form - - explode: true - in: query - name: profileIds - required: false - schema: - $ref: '#/components/schemas/UUIDS' - style: form - - in: query - name: seniority - required: false - schema: - $ref: '#/components/schemas/Seniority' - - in: query - name: template - required: false + - in: path + name: skillId + required: true schema: - type: string + $ref: '#/components/schemas/UUID' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Level' + required: true responses: "200": content: - application/octet-stream: + application/json: schema: - example: JVBERi0xLjQKJcfs... - format: binary - type: string - description: A PDF profile of a Person + $ref: '#/components/schemas/PersonDetails' + description: OK default: content: application/json: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Generate a PDF profile from a Person + summary: Edit an Skill experience to a Person tags: - Person + - Skill /persons/{personId}/interests/skills/{skillId}: delete: operationId: deletePersonInterest @@ -2039,22 +1753,20 @@ paths: tags: - Person - Skill - /persons/{personId}/experiences: + /persons/{personId}/languages/{languageId}: delete: - operationId: deletePersonSkillExperiences + operationId: removePersonLanguage parameters: - in: path name: personId required: true schema: $ref: '#/components/schemas/UUID' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UUIDS_1' - description: A list of skillIds + - in: path + name: languageId required: true + schema: + $ref: '#/components/schemas/UUID' responses: "200": content: @@ -2068,25 +1780,28 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Remove an Skill Experience to a Person + summary: Remove a language from a person tags: - Person - - Skill + - Language post: - operationId: addPersonSkillExperiences + operationId: addPersonLanguage parameters: - in: path name: personId required: true schema: $ref: '#/components/schemas/UUID' + - in: path + name: languageId + required: true + schema: + $ref: '#/components/schemas/UUID' requestBody: content: application/json: schema: - items: - $ref: '#/components/schemas/SkillLevelUpdate' - type: array + $ref: '#/components/schemas/Level' required: true responses: "200": @@ -2101,25 +1816,28 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Add an Skill experience to a Person (bulk) + summary: Assign a language to the person tags: - Person - - Skill + - Language put: - operationId: updatePersonSkillExperiences + operationId: updatePersonLanguage parameters: - in: path name: personId required: true schema: $ref: '#/components/schemas/UUID' + - in: path + name: languageId + required: true + schema: + $ref: '#/components/schemas/UUID' requestBody: content: application/json: schema: - items: - $ref: '#/components/schemas/SkillLevelUpdate' - type: array + $ref: '#/components/schemas/Level' required: true responses: "200": @@ -2134,24 +1852,19 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Edit an Skill experience to a Person + summary: Update a language of a person tags: - Person - - Skill - /persons/{personId}/languages/{languageId}: + - Language + /persons/{personId}/manager: delete: - operationId: removePersonLanguage + operationId: removeManager parameters: - in: path name: personId required: true schema: $ref: '#/components/schemas/UUID' - - in: path - name: languageId - required: true - schema: - $ref: '#/components/schemas/UUID' responses: "200": content: @@ -2165,12 +1878,12 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Remove a language from a person + summary: Remove a manager from a person tags: - Person - - Language - post: - operationId: addPersonLanguage + /persons/{personId}/offices/{officeId}: + delete: + operationId: deletePersonOffice parameters: - in: path name: personId @@ -2178,16 +1891,10 @@ paths: schema: $ref: '#/components/schemas/UUID' - in: path - name: languageId + name: officeId required: true schema: $ref: '#/components/schemas/UUID' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Level' - required: true responses: "200": content: @@ -2201,12 +1908,12 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Assign a language to the person + summary: Delete the office from a Person tags: - Person - - Language - put: - operationId: updatePersonLanguage + - Office + post: + operationId: addPersonOffice parameters: - in: path name: personId @@ -2214,16 +1921,10 @@ paths: schema: $ref: '#/components/schemas/UUID' - in: path - name: languageId + name: officeId required: true schema: $ref: '#/components/schemas/UUID' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Level' - required: true responses: "200": content: @@ -2237,116 +1938,161 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Update a language of a person + summary: Assign a person to an office tags: - Person - - Language - /persons/{personId}/experiences/skills/{skillId}: - delete: - operationId: deletePersonSkillExperience - parameters: - - in: path + - Office + /persons/{personId}/pdf-profile: + get: + operationId: generatePersonProfile + parameters: + - in: path name: personId required: true schema: $ref: '#/components/schemas/UUID' - - in: path - name: skillId - required: true + - explode: true + in: query + name: projectIds + required: false schema: - $ref: '#/components/schemas/UUID' + $ref: '#/components/schemas/UUIDS_1' + style: form + - explode: true + in: query + name: skillIds + required: false + schema: + $ref: '#/components/schemas/UUIDS_1' + style: form + - explode: true + in: query + name: certificationIds + required: false + schema: + $ref: '#/components/schemas/UUIDS_1' + style: form + - explode: true + in: query + name: profileIds + required: false + schema: + $ref: '#/components/schemas/UUIDS_1' + style: form + - in: query + name: seniority + required: false + schema: + $ref: '#/components/schemas/Seniority' + - in: query + name: template + required: false + schema: + type: string responses: "200": content: - application/json: + application/octet-stream: schema: - $ref: '#/components/schemas/PersonDetails' - description: OK + example: JVBERi0xLjQKJcfs... + format: binary + type: string + description: A PDF profile of a Person default: content: application/json: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Remove an Skill Experience to a Person + summary: Generate a PDF profile from a Person tags: - Person - - Skill - post: - operationId: addPersonSkillExperience + /persons/{personId}/picture: + delete: + operationId: deletePersonPicture parameters: - in: path name: personId required: true schema: $ref: '#/components/schemas/UUID' + responses: + "204": + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + description: Deleted + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The specified resource was not found + summary: Delete person image + tags: + - Person + get: + operationId: readPersonPicture + parameters: - in: path - name: skillId + name: personId required: true schema: $ref: '#/components/schemas/UUID' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Level' - required: true responses: "200": content: - application/json: + image/jpeg: schema: - $ref: '#/components/schemas/PersonDetails' - description: OK + example: JVBERi0xLjQKJcfs... + 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: Add an Skill experience to a Person + summary: Read person image tags: - Person - - Skill put: - operationId: updatePersonSkillExperience + operationId: updatePersonPicture parameters: - in: path name: personId required: true schema: $ref: '#/components/schemas/UUID' - - in: path - name: skillId - required: true - schema: - $ref: '#/components/schemas/UUID' requestBody: content: - application/json: + application/octet-stream: schema: - $ref: '#/components/schemas/Level' + example: JVBERi0xLjQKJcfs... + format: binary + type: string required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PersonDetails' - description: OK + $ref: '#/components/schemas/Status' + description: High resolution picture of a person default: content: application/json: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Edit an Skill experience to a Person + summary: Update person image tags: - Person - - Skill - /persons/{personId}/certifications/{certificationId}: + /persons/{personId}/profiles/{profileId}: delete: - operationId: deletePersonCertification + operationId: deletePersonProfile parameters: - in: path name: personId @@ -2354,7 +2100,7 @@ paths: schema: $ref: '#/components/schemas/UUID' - in: path - name: certificationId + name: profileId required: true schema: $ref: '#/components/schemas/UUID' @@ -2371,12 +2117,12 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Remove an Interest to a Person + summary: Remove a Profile from a Person tags: - Person - - Certification + - Profile post: - operationId: addPersonCertification + operationId: addPersonProfile parameters: - in: path name: personId @@ -2384,16 +2130,10 @@ paths: schema: $ref: '#/components/schemas/UUID' - in: path - name: certificationId + name: profileId required: true schema: $ref: '#/components/schemas/UUID' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DateModel' - required: true responses: "200": content: @@ -2407,35 +2147,25 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Add Certification to a Person + summary: Add a Profile to a Person tags: - Person - - Certification - put: - operationId: updatePersonCertification - parameters: - - in: path - name: personId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: path - name: certificationId - required: true - schema: - $ref: '#/components/schemas/UUID' + - Profile + /persons/search: + post: + operationId: searchPersons requestBody: content: application/json: schema: - $ref: '#/components/schemas/DateModel' - required: true + $ref: '#/components/schemas/PersonSearch' + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PersonDetails' + $ref: '#/components/schemas/PagedPersons' description: OK default: content: @@ -2443,30 +2173,34 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Update a Certification of a Person + summary: Search over persons tags: - Person - - Certification - /persons/{personId}/profiles/{profileId}: - delete: - operationId: deletePersonProfile + /persons/{personId}/project-participation: + get: + operationId: readPersonProjectParticipation parameters: - in: path name: personId required: true schema: $ref: '#/components/schemas/UUID' - - in: path - name: profileId - required: true + - description: "Filter by project ids, if not set, all projects are returned" + explode: true + in: query + name: projectIds + required: false schema: - $ref: '#/components/schemas/UUID' + $ref: '#/components/schemas/UUIDS' + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PersonDetails' + items: + $ref: '#/components/schemas/PersonProjectParticipationDetails' + type: array description: OK default: content: @@ -2474,12 +2208,13 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Remove a Profile from a Person + summary: Get a Project Participation of a Person tags: - Person - - Profile - post: - operationId: addPersonProfile + - ProjectParticipation + /persons/{personId}/manager/{managerId}: + put: + operationId: setManager parameters: - in: path name: personId @@ -2487,7 +2222,7 @@ paths: schema: $ref: '#/components/schemas/UUID' - in: path - name: profileId + name: managerId required: true schema: $ref: '#/components/schemas/UUID' @@ -2504,30 +2239,24 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Add a Profile to a Person + summary: Set a manager for a person tags: - Person - - Profile - /persons/{personId}/offices/{officeId}: - delete: - operationId: deletePersonOffice - parameters: - - in: path - name: personId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: path - name: officeId + /profiles: + post: + operationId: createProfile + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Profile' required: true - schema: - $ref: '#/components/schemas/UUID' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PersonDetails' + $ref: '#/components/schemas/ProfileDetails' description: OK default: content: @@ -2535,20 +2264,15 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Delete the office from a Person + summary: Create a new Profile tags: - - Person - - Office - post: - operationId: addPersonOffice + - Profile + /profiles/{profileId}: + delete: + operationId: deleteProfile parameters: - in: path - name: personId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: path - name: officeId + name: profileId required: true schema: $ref: '#/components/schemas/UUID' @@ -2557,7 +2281,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PersonDetails' + $ref: '#/components/schemas/Status' description: OK default: content: @@ -2565,35 +2289,53 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Assign a person to an office + summary: Delete a Profile tags: - - Person - - Office - /persons/{personId}/project-participation: + - Profile get: - operationId: readPersonProjectParticipation + operationId: getProfile parameters: - in: path - name: personId + name: profileId required: true schema: $ref: '#/components/schemas/UUID' - - description: "Filter by project ids, if not set, all projects are returned" - explode: true - in: query - name: projectIds - required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ProfileDetails' + description: OK + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The specified resource was not found + summary: Get details about a Profile + tags: + - Profile + put: + operationId: updateProfile + parameters: + - in: path + name: profileId + required: true schema: - $ref: '#/components/schemas/UUIDS_1' - style: form + $ref: '#/components/schemas/UUID' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Profile' + required: true responses: "200": content: application/json: schema: - items: - $ref: '#/components/schemas/PersonProjectParticipationDetails' - type: array + $ref: '#/components/schemas/ProfileDetails' description: OK default: content: @@ -2601,26 +2343,56 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get a Project Participation of a Person + summary: Update a Profile tags: - - Person - - ProjectParticipation - /project-participations: + - Profile + /profiles/search: post: - operationId: addProjectParticipation + operationId: searchProfiles requestBody: content: application/json: schema: - $ref: '#/components/schemas/ProjectParticipationCreate' - description: List of Skills with level and timeframe + $ref: '#/components/schemas/Search' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PagedProfiles' + description: OK + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The specified resource was not found + summary: Search over profiles + tags: + - Profiles + /projects: + post: + operationId: createProject + parameters: + - description: The ID of the organization + in: query + name: organizationId + required: true + schema: + $ref: '#/components/schemas/UUID' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Project' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ProjectParticipationDetails' + $ref: '#/components/schemas/ProjectDetails' description: OK default: content: @@ -2628,16 +2400,16 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Add Project to a Person + summary: Create a Project in an Organization tags: - - Person + - Organization - Project - /project-participations/{projectParticipationId}: + /projects/{projectId}: delete: - operationId: deleteProjectParticipation + operationId: deleteProject parameters: - in: path - name: projectParticipationId + name: projectId required: true schema: $ref: '#/components/schemas/UUID' @@ -2654,15 +2426,14 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Remove an Project from a Person + summary: Delete a project tags: - - Person - Project get: - operationId: readProjectParticipation + operationId: getProject parameters: - in: path - name: projectParticipationId + name: projectId required: true schema: $ref: '#/components/schemas/UUID' @@ -2671,7 +2442,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProjectParticipationDetails' + $ref: '#/components/schemas/ProjectDetails' description: OK default: content: @@ -2679,15 +2450,14 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get a project participation + summary: Get details about a Project tags: - - Person - Project put: - operationId: updateProjectParticipation + operationId: updateProject parameters: - in: path - name: projectParticipationId + name: projectId required: true schema: $ref: '#/components/schemas/UUID' @@ -2695,15 +2465,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProjectParticipationUpdate' - description: A time frame and a list of Skills + $ref: '#/components/schemas/Project' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ProjectParticipationDetails' + $ref: '#/components/schemas/ProjectDetails' description: OK default: content: @@ -2711,26 +2480,20 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Update a Project of a Person + summary: Update a Project tags: - - Person - Project - /project-participations/{projectParticipationId}/skills/{skillId}/confirmation/{confirmingPersonId}: + /projects/{projectId}/executive-organizations/{organizationId}: delete: - operationId: removeSkillConfirmation + operationId: removeExecutiveOrganizationFromProject parameters: - in: path - name: projectParticipationId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: path - name: skillId + name: projectId required: true schema: $ref: '#/components/schemas/UUID' - in: path - name: confirmingPersonId + name: organizationId required: true schema: $ref: '#/components/schemas/UUID' @@ -2739,7 +2502,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProjectParticipationDetails' + $ref: '#/components/schemas/ProjectDetails' description: OK default: content: @@ -2747,26 +2510,20 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Remove a confirmation + summary: Remove an Organization from a Project as executive organization tags: - - Person - Project - - Skill + - Organization post: - operationId: addSkillConfirmation + operationId: addExecutiveOrganizationToProject parameters: - in: path - name: projectParticipationId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: path - name: skillId + name: projectId required: true schema: $ref: '#/components/schemas/UUID' - in: path - name: confirmingPersonId + name: organizationId required: true schema: $ref: '#/components/schemas/UUID' @@ -2775,7 +2532,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProjectParticipationDetails' + $ref: '#/components/schemas/ProjectDetails' description: OK default: content: @@ -2783,17 +2540,21 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Confirm Skill + summary: Add an Organization to a Project as executive organization tags: - - Person - Project - - Skill - /persons/{personId}/availabilities: - get: - operationId: getAvailabilities + - Organization + /projects/{projectId}/organizations/{organizationId}: + put: + operationId: moveProject parameters: - in: path - name: personId + name: projectId + required: true + schema: + $ref: '#/components/schemas/UUID' + - in: path + name: organizationId required: true schema: $ref: '#/components/schemas/UUID' @@ -2802,7 +2563,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PagedAvailabilities' + $ref: '#/components/schemas/ProjectDetails' description: OK default: content: @@ -2810,31 +2571,25 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get a list of all activities for a person + summary: Move a Project to an Organization tags: - - Person - - Availability + - Organization + - Project + /projects/search: post: - operationId: createAvailability - parameters: - - in: path - name: personId - required: true - schema: - $ref: '#/components/schemas/UUID' + operationId: searchProjects requestBody: content: application/json: schema: - $ref: '#/components/schemas/Availability' - description: The availability - required: true + $ref: '#/components/schemas/ProjectSearch' + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AvailabilityDetail' + $ref: '#/components/schemas/PagedProjects' description: OK default: content: @@ -2842,30 +2597,25 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Create a availability for a person + summary: Complex search over project entities tags: - - Person - - Availability - /persons/{personId}/availabilities/{availabilityId}: - delete: - operationId: deleteAvailability - parameters: - - in: path - name: personId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: path - name: availabilityId + - Project + /project-participations: + post: + operationId: addProjectParticipation + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProjectParticipationCreate' + description: List of Skills with level and timeframe required: true - schema: - $ref: '#/components/schemas/UUID' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Status' + $ref: '#/components/schemas/ProjectParticipationDetails' description: OK default: content: @@ -2873,36 +2623,25 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Delete a person availability + summary: Add Project to a Person tags: - Person - - Availability - put: - operationId: updateAvailability + - Project + /project-participations/{projectParticipationId}: + delete: + operationId: deleteProjectParticipation parameters: - in: path - name: personId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: path - name: availabilityId + name: projectParticipationId required: true schema: $ref: '#/components/schemas/UUID' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Availability' - description: The availability - required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AvailabilityDetail' + $ref: '#/components/schemas/Status' description: OK default: content: @@ -2910,16 +2649,15 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Update a person availability + summary: Remove an Project from a Person tags: - Person - - Availability - /persons/{personId}/manager: - delete: - operationId: removeManager + - Project + get: + operationId: readProjectParticipation parameters: - in: path - name: personId + name: projectParticipationId required: true schema: $ref: '#/components/schemas/UUID' @@ -2928,7 +2666,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PersonDetails' + $ref: '#/components/schemas/ProjectParticipationDetails' description: OK default: content: @@ -2936,29 +2674,31 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Remove a manager from a person + summary: Get a project participation tags: - Person - /persons/{personId}/manager/{managerId}: + - Project put: - operationId: setManager + operationId: updateProjectParticipation parameters: - in: path - name: personId + name: projectParticipationId required: true schema: $ref: '#/components/schemas/UUID' - - in: path - name: managerId + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProjectParticipationUpdate' + description: A time frame and a list of Skills required: true - schema: - $ref: '#/components/schemas/UUID' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PersonDetails' + $ref: '#/components/schemas/ProjectParticipationDetails' description: OK default: content: @@ -2966,38 +2706,60 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Set a manager for a person + summary: Update a Project of a Person tags: - Person - /search/all/{text}: - get: - operationId: searchAll + - Project + /project-participations/search: + post: + operationId: searchProjectParticipations + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProjectParticipationSearch' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PagedProjectParticipation' + description: OK + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The specified resource was not found + summary: Search over project participations + tags: + - Project + /project-participations/{projectParticipationId}/skills/{skillId}/confirmation/{confirmingPersonId}: + delete: + operationId: removeSkillConfirmation parameters: - in: path - name: text + name: projectParticipationId required: true schema: - type: string - - in: query - name: skip - required: false + $ref: '#/components/schemas/UUID' + - in: path + name: skillId + required: true schema: - default: 0 - example: 0 - type: integer - - in: query - name: limit - required: false + $ref: '#/components/schemas/UUID' + - in: path + name: confirmingPersonId + required: true schema: - default: 20 - example: 20 - type: integer + $ref: '#/components/schemas/UUID' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SearchResult' + $ref: '#/components/schemas/ProjectParticipationDetails' description: OK default: content: @@ -3005,54 +2767,62 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Fulltext search on all kinds of objects + summary: Remove a confirmation tags: - - Search - /templates: - get: - operationId: getTemplates + - Person + - Project + - Skill + post: + operationId: addSkillConfirmation parameters: - in: path - name: text + name: projectParticipationId required: true schema: - type: string + $ref: '#/components/schemas/UUID' + - in: path + name: skillId + required: true + schema: + $ref: '#/components/schemas/UUID' + - in: path + name: confirmingPersonId + required: true + schema: + $ref: '#/components/schemas/UUID' responses: "200": content: application/json: schema: - items: - type: string - type: array + $ref: '#/components/schemas/ProjectParticipationDetails' description: OK - summary: list of existing templates + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The specified resource was not found + summary: Confirm Skill tags: - - Templates - /languages: - get: - operationId: getLanguages - parameters: - - in: query - name: skip - required: false - schema: - default: 0 - example: 0 - type: integer - - in: query - name: limit - required: false - schema: - default: 20 - example: 20 - type: integer + - Person + - Project + - Skill + /search: + post: + operationId: search + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Search' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PagedLanguages' + $ref: '#/components/schemas/SearchResult' description: OK default: content: @@ -3060,23 +2830,24 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get a list of Languages + summary: Fulltext search on all kinds of objects tags: - - Language + - Search + /skills: post: - operationId: createLanguage + operationId: createSkill requestBody: content: application/json: schema: - $ref: '#/components/schemas/Language' + $ref: '#/components/schemas/Skill' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/LanguageDetails' + $ref: '#/components/schemas/SkillDetails' description: OK default: content: @@ -3084,15 +2855,15 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Create a new language + summary: Create a Skill tags: - - Language - /languages/{languageId}: + - Skill + /skills/{skillId}: delete: - operationId: deleteLanguage + operationId: deleteSkill parameters: - in: path - name: languageId + name: skillId required: true schema: $ref: '#/components/schemas/UUID' @@ -3103,20 +2874,20 @@ paths: schema: $ref: '#/components/schemas/Status' description: OK - "400": + default: content: application/json: schema: $ref: '#/components/schemas/Error' - description: Error - summary: Delete a language + description: The specified resource was not found + summary: Delete a Skill tags: - - Language + - Skill get: - operationId: getLanguage + operationId: getSkill parameters: - in: path - name: languageId + name: skillId required: true schema: $ref: '#/components/schemas/UUID' @@ -3125,7 +2896,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LanguageDetails' + $ref: '#/components/schemas/SkillDetails' description: OK default: content: @@ -3133,51 +2904,54 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get details about a language + summary: Get details for a single skill tags: - - Language - /countries: - get: - operationId: getCountries + - Skill + put: + operationId: updateSkill parameters: - - in: query - name: skip - required: false - schema: - default: 0 - example: 0 - type: integer - - in: query - name: limit - required: false + - in: path + name: skillId + required: true schema: - default: 20 - example: 20 - type: integer + $ref: '#/components/schemas/UUID' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Skill' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PagedCountries' + $ref: '#/components/schemas/SkillDetails' description: OK - summary: Get all Countries + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The specified resource was not found + summary: Update a Skill tags: - - Country + - Skill + /skills/search: post: - operationId: createCountry + operationId: searchSkills requestBody: content: application/json: schema: - $ref: '#/components/schemas/Country' - required: true + $ref: '#/components/schemas/SkillSearch' + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CountryDetails' + $ref: '#/components/schemas/PagedSkills' description: OK default: content: @@ -3185,15 +2959,20 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Create a new Country + summary: Search over skills tags: - - Country - /countries/{countryId}: + - Skill + /skills/{skillId}/parents/{parentSkillId}: delete: - operationId: deleteCountry + operationId: removeSkillFromParentSkill parameters: - in: path - name: countryId + name: skillId + required: true + schema: + $ref: '#/components/schemas/UUID' + - in: path + name: parentSkillId required: true schema: $ref: '#/components/schemas/UUID' @@ -3202,7 +2981,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Status' + $ref: '#/components/schemas/SkillDetails' description: OK default: content: @@ -3210,23 +2989,34 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Delete a Country + summary: "Detaches a Skill from parent Skill, return the parent Skill" tags: - - Country - get: - operationId: getCountry + - Skill + post: + operationId: addSkillToParentSkill parameters: - in: path - name: countryId + name: skillId + required: true + schema: + $ref: '#/components/schemas/UUID' + - in: path + name: parentSkillId required: true schema: $ref: '#/components/schemas/UUID' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SkillLinkUpdate' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CountryDetails' + $ref: '#/components/schemas/SkillDetails' description: OK default: content: @@ -3234,290 +3024,71 @@ paths: schema: $ref: '#/components/schemas/Error' description: The specified resource was not found - summary: Get details about a Country + summary: "Attach a Skill to a parent Skill, returns the parent Skill" tags: - - Country - put: - operationId: updateCountry - parameters: - - in: path - name: countryId - required: true - schema: - $ref: '#/components/schemas/UUID' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Country' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/CountryDetails' - description: OK - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: The specified resource was not found - summary: Update a Country - tags: - - Country - /countries/{countryId}/languages/{languageId}: - delete: - operationId: removeLanguageFromCountry - parameters: - - in: path - name: countryId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: path - name: languageId - required: true - schema: - $ref: '#/components/schemas/UUID' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/CountryDetails' - description: OK - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: The specified resource was not found - summary: Assign a language to a country - tags: - - Language - - Country - post: - operationId: addLanguageToCountry - parameters: - - in: path - name: countryId - required: true - schema: - $ref: '#/components/schemas/UUID' - - in: path - name: languageId - required: true - schema: - $ref: '#/components/schemas/UUID' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/CountryDetails' - description: OK - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: The specified resource was not found - summary: Assign a language to a country - tags: - - Language - - Country - /profiles: - get: - operationId: getProfiles - parameters: - - in: query - name: skip - required: false - schema: - default: 0 - example: 0 - type: integer - - in: query - name: limit - required: false - schema: - default: 20 - example: 20 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/PagedProfiles' - description: OK - summary: Get all Profiles - tags: - - Profile - post: - operationId: createProfile - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Profile' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ProfileDetails' - description: OK - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: The specified resource was not found - summary: Create a new Profile - tags: - - Profile - /profiles/{profileId}: - delete: - operationId: deleteProfile - parameters: - - in: path - name: profileId - required: true - schema: - $ref: '#/components/schemas/UUID' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Status' - description: OK - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: The specified resource was not found - summary: Delete a Profile - tags: - - Profile + - Skill + /templates: get: - operationId: getProfile - parameters: - - in: path - name: profileId - required: true - schema: - $ref: '#/components/schemas/UUID' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ProfileDetails' - description: OK - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: The specified resource was not found - summary: Get details about a Profile - tags: - - Profile - put: - operationId: updateProfile + operationId: getTemplates parameters: - in: path - name: profileId + name: text required: true schema: - $ref: '#/components/schemas/UUID' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Profile' - required: true + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ProfileDetails' + items: + type: string + type: array description: OK - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: The specified resource was not found - summary: Update a Profile + summary: list of existing templates tags: - - Profile + - Templates components: parameters: - Skip: - in: query - name: skip - required: false - schema: - default: 0 - example: 0 - type: integer - Limit: - in: query - name: limit - required: false - schema: - default: 20 - example: 20 - type: integer - Term: - description: Optionally search via search term - in: query - name: term - required: false + CertificationId: + in: path + name: certificationId + required: true schema: - default: "" - type: string + $ref: '#/components/schemas/UUID' OrganizationId: in: path name: organizationId required: true schema: $ref: '#/components/schemas/UUID' - IndustryId: + SkillId: in: path - name: industryId + name: skillId required: true schema: $ref: '#/components/schemas/UUID' - OfficeId: + CountryId: in: path - name: officeId + name: countryId required: true schema: $ref: '#/components/schemas/UUID' - CertificationId: + LanguageId: in: path - name: certificationId + name: languageId required: true schema: $ref: '#/components/schemas/UUID' - ProjectId: + IndustryId: in: path - name: projectId + name: industryId required: true schema: $ref: '#/components/schemas/UUID' - SkillId: + OfficeId: in: path - name: skillId + name: officeId required: true schema: $ref: '#/components/schemas/UUID' @@ -3527,9 +3098,9 @@ components: required: true schema: $ref: '#/components/schemas/UUID' - LanguageId: + AvailabilityId: in: path - name: languageId + name: availabilityId required: true schema: $ref: '#/components/schemas/UUID' @@ -3539,21 +3110,15 @@ components: required: true schema: $ref: '#/components/schemas/UUID' - ProjectParticipationId: + ProjectId: in: path - name: projectParticipationId + name: projectId required: true schema: $ref: '#/components/schemas/UUID' - AvailabilityId: + ProjectParticipationId: in: path - name: availabilityId - required: true - schema: - $ref: '#/components/schemas/UUID' - CountryId: - in: path - name: countryId + name: projectParticipationId required: true schema: $ref: '#/components/schemas/UUID' @@ -3587,16 +3152,235 @@ components: type: string title: Error type: object - PagedOrganizations: + UUID: + format: uuid + title: UUID + type: string + Certification: + allOf: + - $ref: '#/components/schemas/NamedDomainModel' + - $ref: '#/components/schemas/Suggestable' + - $ref: '#/components/schemas/Synonymable' + - $ref: '#/components/schemas/Descriptable' + - properties: + validity: + type: string + type: object + title: Certification + CertificationDetails: + example: + skillLevels: + - level: + level: 1 + skill: null + - level: + level: 1 + skill: null + organization: null + certification: null + properties: + certification: + $ref: '#/components/schemas/Certification' + organization: + $ref: '#/components/schemas/Organization' + skillLevels: + items: + $ref: '#/components/schemas/SkillLevel' + type: array + title: CertificationDetails + type: object + Status: + example: + status: status + properties: + status: + type: string + title: Status + type: object + Level: + example: + level: 1 + properties: + level: + maximum: 5 + minimum: 1 + type: integer + title: Level + type: object + CertificationSearch: + allOf: + - $ref: '#/components/schemas/Search' + - properties: + certificationIds: + $ref: '#/components/schemas/UUIDS' + skillIds: + $ref: '#/components/schemas/UUIDS' + organizationIds: + $ref: '#/components/schemas/UUIDS' + type: object + title: CertificationSearch + PagedCertifications: allOf: - $ref: '#/components/schemas/Page' - properties: - organizations: + certifications: items: - $ref: '#/components/schemas/OrganizationDetails' + $ref: '#/components/schemas/CertificationDetails' type: array type: object - title: PagedOrganizations + title: PagedCertifications + Country: + allOf: + - $ref: '#/components/schemas/NamedDomainModel' + - properties: + picture: + description: base64 encoded image + type: string + type: object + title: Country + CountryDetails: + example: + country: null + languages: + - null + - null + properties: + country: + $ref: '#/components/schemas/Country' + languages: + items: + $ref: '#/components/schemas/Language' + type: array + title: CountryDetails + type: object + Search: + discriminator: + propertyName: objectType + example: + limit: 1 + term: term + skip: 0 + objectType: objectType + properties: + term: + type: string + skip: + default: 0 + minimum: 0 + nullable: false + type: integer + limit: + default: 20 + minimum: 1 + nullable: false + type: integer + objectType: + type: string + required: + - limit + - skip + title: Search + type: object + PagedCountries: + allOf: + - $ref: '#/components/schemas/Page' + - properties: + countries: + items: + $ref: '#/components/schemas/Country' + type: array + type: object + title: PagedCountries + Industry: + allOf: + - $ref: '#/components/schemas/NamedDomainModel' + - $ref: '#/components/schemas/Suggestable' + - $ref: '#/components/schemas/Synonymable' + title: Industry + IndustryDetails: + example: + organizationsCount: 0 + industry: null + properties: + industry: + $ref: '#/components/schemas/Industry' + organizationsCount: + type: integer + title: IndustryDetails + type: object + PagedIndustries: + allOf: + - $ref: '#/components/schemas/Page' + - properties: + industries: + items: + $ref: '#/components/schemas/IndustryDetails' + type: array + type: object + title: PagedIndustries + Language: + allOf: + - $ref: '#/components/schemas/NamedDomainModel' + - properties: + code: + description: Two letter ISO code + example: de + type: string + nativeName: + description: The native description of a language + example: العربية + type: string + type: object + title: Language + LanguageDetails: + example: + language: null + countries: + - null + - null + properties: + language: + $ref: '#/components/schemas/Language' + countries: + items: + $ref: '#/components/schemas/Country' + type: array + title: LanguageDetails + type: object + PagedLanguages: + allOf: + - $ref: '#/components/schemas/Page' + - properties: + languages: + items: + $ref: '#/components/schemas/Language' + type: array + type: object + title: PagedLanguages + Office: + allOf: + - $ref: '#/components/schemas/NamedDomainModel' + - $ref: '#/components/schemas/Synonymable' + - $ref: '#/components/schemas/Locateable' + title: Office + OfficeSearch: + allOf: + - $ref: '#/components/schemas/Search' + - properties: + organizationIds: + $ref: '#/components/schemas/UUIDS' + type: object + title: OfficeSearch + PagedOffices: + allOf: + - $ref: '#/components/schemas/Page' + - properties: + offices: + items: + $ref: '#/components/schemas/Office' + type: array + type: object + title: PagedOffices Organization: allOf: - $ref: '#/components/schemas/NamedDomainModel' @@ -3667,442 +3451,17 @@ components: type: array title: OrganizationDetails type: object - UUID: - format: uuid - title: UUID - type: string - Status: - example: - status: status - properties: - status: - type: string - title: Status - type: object - Office: - allOf: - - $ref: '#/components/schemas/NamedDomainModel' - - $ref: '#/components/schemas/Synonymable' - - $ref: '#/components/schemas/Locateable' - title: Office - PagedOffices: - allOf: - - $ref: '#/components/schemas/Page' - - properties: - offices: - items: - $ref: '#/components/schemas/Office' - type: array - type: object - title: PagedOffices - PagedIndustries: + PagedOrganizations: allOf: - $ref: '#/components/schemas/Page' - properties: - industries: + organizations: items: - $ref: '#/components/schemas/IndustryDetails' + $ref: '#/components/schemas/OrganizationDetails' type: array type: object - title: PagedIndustries - Industry: - allOf: - - $ref: '#/components/schemas/NamedDomainModel' - - $ref: '#/components/schemas/Suggestable' - - $ref: '#/components/schemas/Synonymable' - title: Industry - IndustryDetails: - example: - organizationsCount: 0 - industry: null - properties: - industry: - $ref: '#/components/schemas/Industry' - organizationsCount: - type: integer - title: IndustryDetails - type: object - PagedCertifications: - allOf: - - $ref: '#/components/schemas/Page' - - properties: - certifications: - items: - $ref: '#/components/schemas/CertificationDetails' - type: array - type: object - title: PagedCertifications - Certification: - allOf: - - $ref: '#/components/schemas/NamedDomainModel' - - $ref: '#/components/schemas/Suggestable' - - $ref: '#/components/schemas/Synonymable' - - $ref: '#/components/schemas/Descriptable' - - properties: - validity: - type: string - type: object - title: Certification - CertificationDetails: - example: - skillLevels: - - level: - level: 1 - skill: null - - level: - level: 1 - skill: null - organization: null - certification: null - properties: - certification: - $ref: '#/components/schemas/Certification' - organization: - $ref: '#/components/schemas/Organization' - skillLevels: - items: - $ref: '#/components/schemas/SkillLevel' - type: array - title: CertificationDetails - type: object - PagedProjects: - allOf: - - $ref: '#/components/schemas/Page' - - properties: - projects: - items: - $ref: '#/components/schemas/ProjectScoreDetail' - type: array - type: object - title: PagedProjects - Project: - allOf: - - $ref: '#/components/schemas/NamedDomainModel' - - $ref: '#/components/schemas/Suggestable' - - $ref: '#/components/schemas/Synonymable' - - $ref: '#/components/schemas/Locateable' - - $ref: '#/components/schemas/Descriptable' - - properties: - external: - default: false - description: true if project was done outside of the organization - type: boolean - projectType: - $ref: '#/components/schemas/ProjectType' - confidentiality: - $ref: '#/components/schemas/Confidentiality' - type: object - title: Project - ProjectDetails: - discriminator: - propertyName: objectType - example: - persons: - - null - - null - timeframe: - enddate: 2000-01-23 - startdate: 2000-01-23 - objectType: objectType - organization: null - industries: - - null - - null - skillGroups: - - skills: - - null - - null - group: null - - skills: - - null - - null - group: null - project: null - executiveOrganizations: - - null - - null - objectType: objectType - properties: - project: - $ref: '#/components/schemas/Project' - executiveOrganizations: - items: - $ref: '#/components/schemas/Organization' - type: array - organization: - $ref: '#/components/schemas/Organization' - industries: - items: - $ref: '#/components/schemas/Industry' - type: array - persons: - items: - $ref: '#/components/schemas/Person' - type: array - skillGroups: - items: - $ref: '#/components/schemas/SkillGroup' - type: array - timeframe: - $ref: '#/components/schemas/Timeframed' - objectType: - type: string - title: ProjectDetails - type: object - Level: - example: - level: 1 - properties: - level: - maximum: 5 - minimum: 1 - type: integer - title: Level - type: object - CertificationSearch: - example: - certificationIds: - - null - - null - skillIds: - - null - - null - organizationIds: - - null - - null - properties: - certificationIds: - items: - $ref: '#/components/schemas/UUID' - title: UUIDS - type: array - skillIds: - items: - $ref: '#/components/schemas/UUID' - title: UUIDS - type: array - organizationIds: - items: - $ref: '#/components/schemas/UUID' - title: UUIDS - type: array - title: CertificationSearch - type: object - ProjectSearch: - example: - minStartDate: 2000-01-23 - maxEndDate: 2000-01-23 - projectStatuses: - - null - - null - industryIds: - - null - - null - confidentiality: - - null - - null - involvedCountryIds: - - null - - null - projectType: - - null - - null - organizationCountryIds: - - null - - null - projectIds: - - null - - null - amountOfInvolvedPersons: - min: 0 - max: 100 - skillIds: - - null - - null - organizationIds: - - null - - null - participantIds: - - null - - null - participationAmountInMonths: - min: 0 - max: 100 - properties: - projectIds: - items: - $ref: '#/components/schemas/UUID' - title: UUIDS - type: array - minStartDate: - format: date - type: string - maxEndDate: - format: date - type: string - projectStatuses: - items: - $ref: '#/components/schemas/ProjectStatus' - type: array - participationAmountInMonths: - $ref: '#/components/schemas/MinMax' - involvedCountryIds: - items: - $ref: '#/components/schemas/UUID' - title: UUIDS - type: array - organizationCountryIds: - items: - $ref: '#/components/schemas/UUID' - title: UUIDS - type: array - amountOfInvolvedPersons: - $ref: '#/components/schemas/MinMax' - skillIds: - items: - $ref: '#/components/schemas/UUID' - title: UUIDS - type: array - projectType: - items: - $ref: '#/components/schemas/ProjectType' - type: array - confidentiality: - items: - $ref: '#/components/schemas/Confidentiality' - type: array - participantIds: - items: - $ref: '#/components/schemas/UUID' - title: UUIDS - type: array - industryIds: - items: - $ref: '#/components/schemas/UUID' - title: UUIDS - type: array - organizationIds: - items: - $ref: '#/components/schemas/UUID' - title: UUIDS - type: array - title: ProjectSearch - type: object - ProjectParticipationSearch: - example: - personIds: - - null - - null - projectIds: - - null - - null - projectParticipationIds: - - null - - null - properties: - projectIds: - items: - $ref: '#/components/schemas/UUID' - title: UUIDS - type: array - personIds: - items: - $ref: '#/components/schemas/UUID' - title: UUIDS - type: array - projectParticipationIds: - items: - $ref: '#/components/schemas/UUID' - title: UUIDS - type: array - title: ProjectParticipationSearch - type: object - PagedProjectParticipation: - allOf: - - $ref: '#/components/schemas/Page' - - properties: - projectParticipation: - items: - $ref: '#/components/schemas/ProjectParticipationDetails' - type: array - type: object - title: PagedProjectParticipation - PagedSkills: - allOf: - - $ref: '#/components/schemas/Page' - - properties: - skills: - items: - $ref: '#/components/schemas/SkillDetails' - type: array - type: object - title: PagedSkills - Skill: - allOf: - - $ref: '#/components/schemas/NamedDomainModel' - - $ref: '#/components/schemas/Suggestable' - - $ref: '#/components/schemas/Linkable' - - $ref: '#/components/schemas/Synonymable' - - $ref: '#/components/schemas/Descriptable' - - properties: - invest: - default: false - type: boolean - kindGiver: - default: false - type: boolean - groupPriority: - type: integer - type: object - title: Skill - SkillDetails: - example: - children: - - skill: null - kindGiver: false - - skill: null - kindGiver: false - displayName: displayName - skill: null - kinds: - - null - - null - parents: - - skill: null - kindGiver: false - - skill: null - kindGiver: false - properties: - skill: - $ref: '#/components/schemas/Skill' - children: - items: - $ref: '#/components/schemas/SkillLink' - type: array - parents: - items: - $ref: '#/components/schemas/SkillLink' - type: array - kinds: - items: - $ref: '#/components/schemas/Skill' - type: array - displayName: - description: "The display name of the skill, e.g. \"Communication (Computing)\"\ - \ or \"Communication (Design)\" or \"Protcool (Communication,IT)\"" - type: string - title: SkillDetails - type: object - SkillLinkUpdate: - example: - kindGiver: false - properties: - kindGiver: - default: false - type: boolean - title: SkillLinkUpdate - type: object - Person: + title: PagedOrganizations + Person: allOf: - $ref: '#/components/schemas/NamedDomainModel' - $ref: '#/components/schemas/Suggestable' @@ -4219,174 +3578,112 @@ components: organization: null certification: null experiences: - - null - - null + - confirmedBy: + - null + - null + skillLevel: + level: + level: 1 + skill: null + - confirmedBy: + - null + - null + skillLevel: + level: + level: 1 + skill: null objectType: objectType properties: - person: - $ref: '#/components/schemas/Person' - industries: - items: - $ref: '#/components/schemas/Industry' - type: array - experiences: - items: - $ref: '#/components/schemas/Experience' - type: array - interests: - items: - $ref: '#/components/schemas/Skill' - type: array - certifications: - items: - $ref: '#/components/schemas/CertificationDetails' - type: array - languages: - items: - $ref: '#/components/schemas/LanguageLevel' - type: array - office: - $ref: '#/components/schemas/Office' - availabilities: - items: - $ref: '#/components/schemas/AvailabilityDetail' - type: array - skillGroups: - items: - $ref: '#/components/schemas/ExperienceSkillGroup' - type: array - profiles: - items: - $ref: '#/components/schemas/Profile' - type: array - manager: - $ref: '#/components/schemas/Person' - objectType: - type: string - title: PersonDetails - type: object - PersonSearch: - example: - industryIds: - - null - - null - profileIds: - - null - - null - languageIds: - - null - - null - onsiteRatio: - min: 0 - max: 100 - availability: null - projectIds: - - null - - null - skills: - - null - - null - employeeIds: - - employeeIds - - employeeIds - certificationIds: - - null - - null - officeIds: - - null - - null - organizationIds: - - null - - null - personIds: - - null - - null - seniority: - - null - - null - properties: - personIds: - items: - $ref: '#/components/schemas/UUID' - title: UUIDS - type: array - employeeIds: - items: - type: string - type: array - profileIds: - items: - $ref: '#/components/schemas/UUID' - title: UUIDS - type: array - officeIds: + person: + $ref: '#/components/schemas/Person' + industries: items: - $ref: '#/components/schemas/UUID' - title: UUIDS + $ref: '#/components/schemas/Industry' type: array - languageIds: + experiences: items: - $ref: '#/components/schemas/UUID' - title: UUIDS + $ref: '#/components/schemas/Experience' type: array - availability: - $ref: '#/components/schemas/AvailabilityFilter' - onsiteRatio: - $ref: '#/components/schemas/MinMaxPercent' - seniority: + interests: items: - $ref: '#/components/schemas/Seniority' + $ref: '#/components/schemas/Skill' type: array - skills: + certifications: items: - $ref: '#/components/schemas/PersonSkillFilter' + $ref: '#/components/schemas/CertificationDetails' type: array - projectIds: + languages: items: - $ref: '#/components/schemas/UUID' - title: UUIDS + $ref: '#/components/schemas/LanguageLevel' type: array - organizationIds: + office: + $ref: '#/components/schemas/Office' + availabilities: items: - $ref: '#/components/schemas/UUID' - title: UUIDS + $ref: '#/components/schemas/AvailabilityDetail' type: array - industryIds: + skillGroups: items: - $ref: '#/components/schemas/UUID' - title: UUIDS + $ref: '#/components/schemas/ExperienceSkillGroup' type: array - certificationIds: + profiles: items: - $ref: '#/components/schemas/UUID' - title: UUIDS + $ref: '#/components/schemas/Profile' type: array - title: PersonSearch + manager: + $ref: '#/components/schemas/Person' + objectType: + type: string + title: PersonDetails type: object - PagedPersons: + PagedAvailabilities: allOf: - $ref: '#/components/schemas/Page' - properties: - persons: + availabilities: items: - $ref: '#/components/schemas/PersonScoreDetail' + $ref: '#/components/schemas/AvailabilityDetail' type: array type: object - title: PagedPersons - UUIDS: - items: - $ref: '#/components/schemas/UUID' - title: UUIDS - type: array - Seniority: - enum: - - UNKNOWN - - ENTRY_LEVEL - - PROFESSIONAL - - SENIOR - - MANAGING - - PRINCIPAL - title: Seniority + title: PagedAvailabilities + Availability: + allOf: + - $ref: '#/components/schemas/NamedDomainModel' + - $ref: '#/components/schemas/Timeframed' + - properties: + workHours: + example: 38.5 + format: float + type: number + plannedHours: + example: 22.5 + format: float + type: number + descriptions: + items: + type: string + type: array + required: + - plannedHours + - workHours + type: object + title: Availability + AvailabilityDetail: + example: + availability: null + percent: 8.008281904610115 + properties: + availability: + $ref: '#/components/schemas/Availability' + percent: + maximum: 100 + minimum: 0 + type: number + title: AvailabilityDetail + type: object + DateModel: + format: date + title: DateModel type: string SkillLevelUpdate: example: @@ -4402,26 +3699,293 @@ components: $ref: '#/components/schemas/Level' title: SkillLevelUpdate type: object + UUIDS: + items: + $ref: '#/components/schemas/UUID' + title: UUIDS + type: array UUIDS_1: items: $ref: '#/components/schemas/UUID' title: UUIDS type: array - DateModel: - format: date - title: DateModel + Seniority: + enum: + - UNKNOWN + - ENTRY_LEVEL + - PROFESSIONAL + - SENIOR + - MANAGING + - PRINCIPAL + title: Seniority type: string + PersonSearch: + allOf: + - $ref: '#/components/schemas/Search' + - properties: + personIds: + $ref: '#/components/schemas/UUIDS' + employeeIds: + items: + type: string + type: array + profileIds: + $ref: '#/components/schemas/UUIDS' + officeIds: + $ref: '#/components/schemas/UUIDS' + languageIds: + $ref: '#/components/schemas/UUIDS' + availability: + $ref: '#/components/schemas/AvailabilityFilter' + onsiteRatio: + $ref: '#/components/schemas/MinMaxPercent' + seniority: + items: + $ref: '#/components/schemas/Seniority' + type: array + skills: + items: + $ref: '#/components/schemas/PersonSkillFilter' + type: array + projectIds: + $ref: '#/components/schemas/UUIDS' + organizationIds: + $ref: '#/components/schemas/UUIDS' + industryIds: + $ref: '#/components/schemas/UUIDS' + certificationIds: + $ref: '#/components/schemas/UUIDS' + type: object + title: PersonSearch + PagedPersons: + allOf: + - $ref: '#/components/schemas/Page' + - properties: + persons: + items: + $ref: '#/components/schemas/PersonScoreDetail' + type: array + type: object + title: PagedPersons PersonProjectParticipationDetails: + example: + participationItems: + - participation: null + experiences: + - confirmedBy: + - null + - null + skillLevel: + level: + level: 1 + skill: null + - confirmedBy: + - null + - null + skillLevel: + level: + level: 1 + skill: null + - participation: null + experiences: + - confirmedBy: + - null + - null + skillLevel: + level: + level: 1 + skill: null + - confirmedBy: + - null + - null + skillLevel: + level: + level: 1 + skill: null + projectDetails: + persons: + - null + - null + timeframe: + enddate: 2000-01-23 + startdate: 2000-01-23 + objectType: objectType + organization: null + industries: + - null + - null + skillGroups: + - skills: + - null + - null + group: null + - skills: + - null + - null + group: null + project: null + executiveOrganizations: + - null + - null + objectType: objectType + properties: + projectDetails: + $ref: '#/components/schemas/ProjectDetails' + participationItems: + items: + $ref: '#/components/schemas/PersonProjectParticipationItem' + type: array + title: PersonProjectParticipationDetails + type: object + Profile: + allOf: + - $ref: '#/components/schemas/NamedDomainModel' + - $ref: '#/components/schemas/Synonymable' + title: Profile + ProfileDetails: + example: + profile: null + properties: + profile: + $ref: '#/components/schemas/Profile' + title: ProfileDetails + type: object + PagedProfiles: + allOf: + - $ref: '#/components/schemas/Page' + - properties: + profiles: + items: + $ref: '#/components/schemas/ProfileDetails' + type: array + type: object + title: PagedProfiles + Project: + allOf: + - $ref: '#/components/schemas/NamedDomainModel' + - $ref: '#/components/schemas/Suggestable' + - $ref: '#/components/schemas/Synonymable' + - $ref: '#/components/schemas/Locateable' + - $ref: '#/components/schemas/Descriptable' + - properties: + external: + default: false + description: true if project was done outside of the organization + type: boolean + projectType: + $ref: '#/components/schemas/ProjectType' + confidentiality: + $ref: '#/components/schemas/Confidentiality' + type: object + title: Project + ProjectDetails: + discriminator: + propertyName: objectType + example: + persons: + - null + - null + timeframe: + enddate: 2000-01-23 + startdate: 2000-01-23 + objectType: objectType + organization: null + industries: + - null + - null + skillGroups: + - skills: + - null + - null + group: null + - skills: + - null + - null + group: null + project: null + executiveOrganizations: + - null + - null + objectType: objectType + properties: + project: + $ref: '#/components/schemas/Project' + executiveOrganizations: + items: + $ref: '#/components/schemas/Organization' + type: array + organization: + $ref: '#/components/schemas/Organization' + industries: + items: + $ref: '#/components/schemas/Industry' + type: array + persons: + items: + $ref: '#/components/schemas/Person' + type: array + skillGroups: + items: + $ref: '#/components/schemas/SkillGroup' + type: array + timeframe: + $ref: '#/components/schemas/Timeframed' + objectType: + type: string + title: ProjectDetails + type: object + ProjectSearch: + allOf: + - $ref: '#/components/schemas/Search' + - properties: + projectIds: + $ref: '#/components/schemas/UUIDS' + minStartDate: + format: date + type: string + maxEndDate: + format: date + type: string + projectStatuses: + items: + $ref: '#/components/schemas/ProjectStatus' + type: array + participationAmountInMonths: + $ref: '#/components/schemas/MinMax' + involvedCountryIds: + $ref: '#/components/schemas/UUIDS' + organizationCountryIds: + $ref: '#/components/schemas/UUIDS' + amountOfInvolvedPersons: + $ref: '#/components/schemas/MinMax' + skillIds: + $ref: '#/components/schemas/UUIDS' + projectType: + items: + $ref: '#/components/schemas/ProjectType' + type: array + confidentiality: + items: + $ref: '#/components/schemas/Confidentiality' + type: array + participantIds: + $ref: '#/components/schemas/UUIDS' + industryIds: + $ref: '#/components/schemas/UUIDS' + organizationIds: + $ref: '#/components/schemas/UUIDS' + type: object + title: ProjectSearch + PagedProjects: allOf: + - $ref: '#/components/schemas/Page' - properties: - projectDetails: - $ref: '#/components/schemas/ProjectDetails' - participationItems: + projects: items: - $ref: '#/components/schemas/PersonProjectParticipationItem' + $ref: '#/components/schemas/ProjectScoreDetail' type: array type: object - title: PersonProjectParticipationDetails + title: PagedProjects ProjectParticipationCreate: allOf: - $ref: '#/components/schemas/ProjectParticipationUpdate' @@ -4439,21 +4003,39 @@ components: type: object title: ProjectParticipationCreate ProjectParticipationDetails: - allOf: - - properties: - participation: - $ref: '#/components/schemas/ProjectParticipation' - experiences: - items: - $ref: '#/components/schemas/Experience' - readOnly: true - type: array - person: - $ref: '#/components/schemas/Person' - project: - $ref: '#/components/schemas/Project' - type: object + example: + participation: null + person: null + project: null + experiences: + - confirmedBy: + - null + - null + skillLevel: + level: + level: 1 + skill: null + - confirmedBy: + - null + - null + skillLevel: + level: + level: 1 + skill: null + properties: + participation: + $ref: '#/components/schemas/ProjectParticipation' + experiences: + items: + $ref: '#/components/schemas/Experience' + readOnly: true + type: array + person: + $ref: '#/components/schemas/Person' + project: + $ref: '#/components/schemas/Project' title: ProjectParticipationDetails + type: object ProjectParticipationUpdate: example: skills: @@ -4481,51 +4063,28 @@ components: - timeframe title: ProjectParticipationUpdate type: object - PagedAvailabilities: + ProjectParticipationSearch: allOf: - - $ref: '#/components/schemas/Page' + - $ref: '#/components/schemas/Search' - properties: - availabilities: - items: - $ref: '#/components/schemas/AvailabilityDetail' - type: array + projectIds: + $ref: '#/components/schemas/UUIDS' + personIds: + $ref: '#/components/schemas/UUIDS' + projectParticipationIds: + $ref: '#/components/schemas/UUIDS' type: object - title: PagedAvailabilities - Availability: + title: ProjectParticipationSearch + PagedProjectParticipation: allOf: - - $ref: '#/components/schemas/NamedDomainModel' - - $ref: '#/components/schemas/Timeframed' + - $ref: '#/components/schemas/Page' - properties: - workHours: - example: 38.5 - format: float - type: number - plannedHours: - example: 22.5 - format: float - type: number - descriptions: + projectParticipation: items: - type: string + $ref: '#/components/schemas/ProjectParticipationDetails' type: array - required: - - plannedHours - - workHours type: object - title: Availability - AvailabilityDetail: - example: - availability: null - percent: 8.008281904610115 - properties: - availability: - $ref: '#/components/schemas/Availability' - percent: - maximum: 100 - minimum: 0 - type: number - title: AvailabilityDetail - type: object + title: PagedProjectParticipation SearchResult: allOf: - $ref: '#/components/schemas/Page' @@ -4536,119 +4095,108 @@ components: type: array type: object title: SearchResult - PagedLanguages: - allOf: - - $ref: '#/components/schemas/Page' - - properties: - languages: - items: - $ref: '#/components/schemas/Language' - type: array - type: object - title: PagedLanguages - Language: + Skill: allOf: - $ref: '#/components/schemas/NamedDomainModel' + - $ref: '#/components/schemas/Suggestable' + - $ref: '#/components/schemas/Linkable' + - $ref: '#/components/schemas/Synonymable' + - $ref: '#/components/schemas/Descriptable' - properties: - code: - description: Two letter ISO code - example: de - type: string - nativeName: - description: The native description of a language - example: العربية - type: string + invest: + default: false + type: boolean + kindGiver: + default: false + type: boolean + groupPriority: + type: integer type: object - title: Language - LanguageDetails: + title: Skill + SkillDetails: example: - language: null - countries: + children: + - skill: null + kindGiver: false + - skill: null + kindGiver: false + displayName: displayName + skill: null + kinds: - null - null + parents: + - skill: null + kindGiver: false + - skill: null + kindGiver: false properties: - language: - $ref: '#/components/schemas/Language' - countries: + skill: + $ref: '#/components/schemas/Skill' + children: items: - $ref: '#/components/schemas/Country' + $ref: '#/components/schemas/SkillLink' type: array - title: LanguageDetails + parents: + items: + $ref: '#/components/schemas/SkillLink' + type: array + kinds: + items: + $ref: '#/components/schemas/Skill' + type: array + displayName: + description: "The display name of the skill, e.g. \"Communication (Computing)\"\ + \ or \"Communication (Design)\" or \"Protcool (Communication,IT)\"" + type: string + title: SkillDetails type: object - PagedCountries: - allOf: - - $ref: '#/components/schemas/Page' - - properties: - countries: - items: - $ref: '#/components/schemas/Country' - type: array - type: object - title: PagedCountries - Country: + SkillSearch: allOf: - - $ref: '#/components/schemas/NamedDomainModel' + - $ref: '#/components/schemas/Search' - properties: - picture: - description: base64 encoded image + types: + default: all + description: "Gives you either all skills, only the root kills" + enum: + - all + - root + - group + example: all + type: string + suggestions: + default: all + description: Optionally filter skills based on suggestion + enum: + - all + - suggested + - notsuggested + example: all type: string + linkable: + description: Optionally filter skills based on linkable + example: true + type: boolean type: object - title: Country - CountryDetails: - example: - country: null - languages: - - null - - null - properties: - country: - $ref: '#/components/schemas/Country' - languages: - items: - $ref: '#/components/schemas/Language' - type: array - title: CountryDetails - type: object - PagedProfiles: + title: SkillSearch + PagedSkills: allOf: - $ref: '#/components/schemas/Page' - properties: - profiles: + skills: items: - $ref: '#/components/schemas/ProfileDetails' + $ref: '#/components/schemas/SkillDetails' type: array type: object - title: PagedProfiles - Profile: - allOf: - - $ref: '#/components/schemas/NamedDomainModel' - - $ref: '#/components/schemas/Synonymable' - title: Profile - ProfileDetails: - discriminator: - propertyName: objectType + title: PagedSkills + SkillLinkUpdate: example: - profile: null - properties: - profile: - $ref: '#/components/schemas/Profile' - title: ProfileDetails - type: object - Page: - discriminator: - propertyName: objectType + kindGiver: false properties: - skip: - minimum: 0 - type: integer - limit: - minimum: 1 - type: integer - count: - type: integer - objectType: - type: string - title: Page + kindGiver: + default: false + type: boolean + title: SkillLinkUpdate type: object NamedDomainModel: allOf: @@ -4672,15 +4220,6 @@ components: type: array title: Synonymable type: object - Locateable: - properties: - location: - example: "Frankfurt, Germany" - type: string - geolocation: - $ref: '#/components/schemas/Geolocation' - title: Locateable - type: object Descriptable: properties: description: @@ -4700,111 +4239,49 @@ components: $ref: '#/components/schemas/Level' title: SkillLevel type: object - ProjectScoreDetail: - allOf: - - $ref: '#/components/schemas/ProjectDetails' - - $ref: '#/components/schemas/ScoreResult' - title: ProjectScoreDetail - ProjectType: - enum: - - UNKNOWN_TYPE - - INTERNAL - - EXTERNAL - title: ProjectType - type: string - Confidentiality: - enum: - - UNKNOWN_CONFIDENTIALITY - - PUBLIC - - CONFIDENTIAL - title: Confidentiality - type: string - SkillGroup: - example: - skills: - - null - - null - group: null - properties: - group: - $ref: '#/components/schemas/Skill' - skills: - items: - $ref: '#/components/schemas/Skill' - type: array - title: SkillGroup - type: object - Timeframed: + Page: discriminator: propertyName: objectType - example: - enddate: 2000-01-23 - startdate: 2000-01-23 - objectType: objectType - properties: - startdate: - format: date - type: string - enddate: - format: date - type: string - objectType: - type: string - required: - - startdate - title: Timeframed - type: object - ProjectStatus: - enum: - - PLANNING - - ACTIVE - - DONE - title: ProjectStatus - type: string - MinMax: - example: - min: 0 - max: 100 properties: - min: - example: 0 + skip: + minimum: 0 type: integer - max: - example: 100 + limit: + minimum: 1 type: integer - title: MinMax + count: + type: integer + objectType: + type: string + title: Page type: object - Linkable: + Locateable: properties: - linkable: - default: false - description: The entity can be linked - type: boolean - title: Linkable + location: + example: "Frankfurt, Germany" + type: string + geolocation: + $ref: '#/components/schemas/Geolocation' + title: Locateable type: object - SkillLink: + Experience: example: - skill: null - kindGiver: false + confirmedBy: + - null + - null + skillLevel: + level: + level: 1 + skill: null properties: - skill: - $ref: '#/components/schemas/Skill' - kindGiver: - default: false - type: boolean - title: SkillLink - type: object - Experience: - allOf: - - properties: - skillLevel: - $ref: '#/components/schemas/SkillLevel' - confirmedBy: - items: - $ref: '#/components/schemas/Person' - type: array - type: object + skillLevel: + $ref: '#/components/schemas/SkillLevel' + confirmedBy: + items: + $ref: '#/components/schemas/Person' + type: array title: Experience + type: object LanguageLevel: example: level: @@ -4832,15 +4309,32 @@ components: type: array title: ExperienceSkillGroup type: object + Timeframed: + discriminator: + propertyName: objectType + example: + enddate: 2000-01-23 + startdate: 2000-01-23 + objectType: objectType + properties: + startdate: + format: date + type: string + enddate: + format: date + type: string + objectType: + type: string + required: + - startdate + title: Timeframed + type: object AvailabilityFilter: allOf: - $ref: '#/components/schemas/Timeframed' - $ref: '#/components/schemas/MinMaxPercent' title: AvailabilityFilter MinMaxPercent: - example: - min: 0 - max: 100 properties: min: example: 0 @@ -4872,17 +4366,84 @@ components: - $ref: '#/components/schemas/ScoreResult' title: PersonScoreDetail PersonProjectParticipationItem: - allOf: - - properties: - participation: - $ref: '#/components/schemas/ProjectParticipation' - experiences: - items: - $ref: '#/components/schemas/Experience' - readOnly: true - type: array - type: object + example: + participation: null + experiences: + - confirmedBy: + - null + - null + skillLevel: + level: + level: 1 + skill: null + - confirmedBy: + - null + - null + skillLevel: + level: + level: 1 + skill: null + properties: + participation: + $ref: '#/components/schemas/ProjectParticipation' + experiences: + items: + $ref: '#/components/schemas/Experience' + readOnly: true + type: array title: PersonProjectParticipationItem + type: object + ProjectType: + enum: + - UNKNOWN_TYPE + - INTERNAL + - EXTERNAL + title: ProjectType + type: string + Confidentiality: + enum: + - UNKNOWN_CONFIDENTIALITY + - PUBLIC + - CONFIDENTIAL + title: Confidentiality + type: string + SkillGroup: + example: + skills: + - null + - null + group: null + properties: + group: + $ref: '#/components/schemas/Skill' + skills: + items: + $ref: '#/components/schemas/Skill' + type: array + title: SkillGroup + type: object + ProjectStatus: + enum: + - PLANNING + - ACTIVE + - DONE + title: ProjectStatus + type: string + MinMax: + properties: + min: + example: 0 + type: integer + max: + example: 100 + type: integer + title: MinMax + type: object + ProjectScoreDetail: + allOf: + - $ref: '#/components/schemas/ProjectDetails' + - $ref: '#/components/schemas/ScoreResult' + title: ProjectScoreDetail ProjectParticipation: allOf: - $ref: '#/components/schemas/BasicDomainModel' @@ -4905,6 +4466,26 @@ components: $ref: '#/components/schemas/NamedDomainModel' title: SearchResultItem type: object + Linkable: + properties: + linkable: + default: false + description: The entity can be linked + type: boolean + title: Linkable + type: object + SkillLink: + example: + skill: null + kindGiver: false + properties: + skill: + $ref: '#/components/schemas/Skill' + kindGiver: + default: false + type: boolean + title: SkillLink + type: object BasicDomainModel: discriminator: propertyName: objectType @@ -4940,16 +4521,6 @@ components: - longitude title: Geolocation type: object - ScoreResult: - properties: - score: - example: 0.5 - type: number - directHit: - example: true - type: boolean - title: ScoreResult - type: object ExperienceSkill: allOf: - $ref: '#/components/schemas/Skill' @@ -4971,6 +4542,16 @@ components: - id title: AbstractEntityFilter type: object + ScoreResult: + properties: + score: + example: 0.5 + type: number + directHit: + example: true + type: boolean + title: ScoreResult + type: object securitySchemes: oidcScheme: description: Authentication diff --git a/api_availability.go b/api_availability.go index 04237939..b636c812 100644 --- a/api_availability.go +++ b/api_availability.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_certification.go b/api_certification.go index 783e25bd..4dbc64f9 100644 --- a/api_certification.go +++ b/api_certification.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -276,10 +276,16 @@ func (a *CertificationAPIService) AddSkillToCertificationExecute(r Certification type CertificationAPICreateCertificationRequest struct { ctx context.Context ApiService *CertificationAPIService - organizationId string + organizationId *string certification *Certification } +// The ID of the organization +func (r CertificationAPICreateCertificationRequest) OrganizationId(organizationId string) CertificationAPICreateCertificationRequest { + r.organizationId = &organizationId + return r +} + func (r CertificationAPICreateCertificationRequest) Certification(certification Certification) CertificationAPICreateCertificationRequest { r.certification = &certification return r @@ -293,14 +299,12 @@ func (r CertificationAPICreateCertificationRequest) Execute() (*CertificationDet CreateCertification Create a Certification in an Organization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId @return CertificationAPICreateCertificationRequest */ -func (a *CertificationAPIService) CreateCertification(ctx context.Context, organizationId string) CertificationAPICreateCertificationRequest { +func (a *CertificationAPIService) CreateCertification(ctx context.Context) CertificationAPICreateCertificationRequest { return CertificationAPICreateCertificationRequest{ ApiService: a, ctx: ctx, - organizationId: organizationId, } } @@ -319,16 +323,19 @@ func (a *CertificationAPIService) CreateCertificationExecute(r CertificationAPIC return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/organizations/{organizationId}/certifications" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) + localVarPath := localBasePath + "/certifications" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.organizationId == nil { + return localVarReturnValue, nil, reportError("organizationId is required and must be specified") + } if r.certification == nil { return localVarReturnValue, nil, reportError("certification is required and must be specified") } + parameterAddToHeaderOrQuery(localVarQueryParams, "organizationId", r.organizationId, "") // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -837,286 +844,11 @@ func (a *CertificationAPIService) GetCertificationExecute(r CertificationAPIGetC return localVarReturnValue, localVarHTTPResponse, nil } -type CertificationAPIGetCertificationsRequest struct { - ctx context.Context - ApiService *CertificationAPIService - skip *int32 - limit *int32 - term *string -} - -func (r CertificationAPIGetCertificationsRequest) Skip(skip int32) CertificationAPIGetCertificationsRequest { - r.skip = &skip - return r -} - -func (r CertificationAPIGetCertificationsRequest) Limit(limit int32) CertificationAPIGetCertificationsRequest { - r.limit = &limit - return r -} - -// Optionally search via search term -func (r CertificationAPIGetCertificationsRequest) Term(term string) CertificationAPIGetCertificationsRequest { - r.term = &term - return r -} - -func (r CertificationAPIGetCertificationsRequest) Execute() (*PagedCertifications, *http.Response, error) { - return r.ApiService.GetCertificationsExecute(r) -} - -/* -GetCertifications Get a list of all Certifications independent of the Organization - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return CertificationAPIGetCertificationsRequest -*/ -func (a *CertificationAPIService) GetCertifications(ctx context.Context) CertificationAPIGetCertificationsRequest { - return CertificationAPIGetCertificationsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return PagedCertifications -func (a *CertificationAPIService) GetCertificationsExecute(r CertificationAPIGetCertificationsRequest) (*PagedCertifications, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PagedCertifications - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CertificationAPIService.GetCertifications") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/certifications" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue - } - if r.term != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "term", r.term, "") - } else { - var defaultValue string = "" - r.term = &defaultValue - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type CertificationAPIGetCertificationsForOrganizationRequest struct { - ctx context.Context - ApiService *CertificationAPIService - organizationId string - skip *int32 - limit *int32 -} - -func (r CertificationAPIGetCertificationsForOrganizationRequest) Skip(skip int32) CertificationAPIGetCertificationsForOrganizationRequest { - r.skip = &skip - return r -} - -func (r CertificationAPIGetCertificationsForOrganizationRequest) Limit(limit int32) CertificationAPIGetCertificationsForOrganizationRequest { - r.limit = &limit - return r -} - -func (r CertificationAPIGetCertificationsForOrganizationRequest) Execute() (*PagedCertifications, *http.Response, error) { - return r.ApiService.GetCertificationsForOrganizationExecute(r) -} - -/* -GetCertificationsForOrganization Get a list of all certifications for a organization - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId - @return CertificationAPIGetCertificationsForOrganizationRequest -*/ -func (a *CertificationAPIService) GetCertificationsForOrganization(ctx context.Context, organizationId string) CertificationAPIGetCertificationsForOrganizationRequest { - return CertificationAPIGetCertificationsForOrganizationRequest{ - ApiService: a, - ctx: ctx, - organizationId: organizationId, - } -} - -// Execute executes the request -// @return PagedCertifications -func (a *CertificationAPIService) GetCertificationsForOrganizationExecute(r CertificationAPIGetCertificationsForOrganizationRequest) (*PagedCertifications, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PagedCertifications - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CertificationAPIService.GetCertificationsForOrganization") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/organizations/{organizationId}/certifications" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type CertificationAPIMoveCertificationRequest struct { ctx context.Context ApiService *CertificationAPIService - organizationId string certificationId string + organizationId string } func (r CertificationAPIMoveCertificationRequest) Execute() (*CertificationDetails, *http.Response, error) { @@ -1127,16 +859,16 @@ func (r CertificationAPIMoveCertificationRequest) Execute() (*CertificationDetai MoveCertification Move a Certification to an Organization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId @param certificationId + @param organizationId @return CertificationAPIMoveCertificationRequest */ -func (a *CertificationAPIService) MoveCertification(ctx context.Context, organizationId string, certificationId string) CertificationAPIMoveCertificationRequest { +func (a *CertificationAPIService) MoveCertification(ctx context.Context, certificationId string, organizationId string) CertificationAPIMoveCertificationRequest { return CertificationAPIMoveCertificationRequest{ ApiService: a, ctx: ctx, - organizationId: organizationId, certificationId: certificationId, + organizationId: organizationId, } } @@ -1155,9 +887,9 @@ func (a *CertificationAPIService) MoveCertificationExecute(r CertificationAPIMov return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/organizations/{organizationId}/certificates/{certificationId}" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) + localVarPath := localBasePath + "/certifications/{certificationId}/organizations/{organizationId}" localVarPath = strings.Replace(localVarPath, "{"+"certificationId"+"}", url.PathEscape(parameterValueToString(r.certificationId, "certificationId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1229,8 +961,6 @@ type CertificationAPISearchCertificationsRequest struct { ctx context.Context ApiService *CertificationAPIService certificationSearch *CertificationSearch - skip *int32 - limit *int32 } func (r CertificationAPISearchCertificationsRequest) CertificationSearch(certificationSearch CertificationSearch) CertificationAPISearchCertificationsRequest { @@ -1238,22 +968,12 @@ func (r CertificationAPISearchCertificationsRequest) CertificationSearch(certifi return r } -func (r CertificationAPISearchCertificationsRequest) Skip(skip int32) CertificationAPISearchCertificationsRequest { - r.skip = &skip - return r -} - -func (r CertificationAPISearchCertificationsRequest) Limit(limit int32) CertificationAPISearchCertificationsRequest { - r.limit = &limit - return r -} - func (r CertificationAPISearchCertificationsRequest) Execute() (*PagedCertifications, *http.Response, error) { return r.ApiService.SearchCertificationsExecute(r) } /* -SearchCertifications Complex search over certification entities +SearchCertifications Search over certifications @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return CertificationAPISearchCertificationsRequest @@ -1285,22 +1005,7 @@ func (a *CertificationAPIService) SearchCertificationsExecute(r CertificationAPI localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.certificationSearch == nil { - return localVarReturnValue, nil, reportError("certificationSearch is required and must be specified") - } - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue - } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} diff --git a/api_countries.go b/api_countries.go new file mode 100644 index 00000000..bf90752f --- /dev/null +++ b/api_countries.go @@ -0,0 +1,136 @@ +/* +YASM (Yet Another Skill Management) API + +This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. + +API version: 1.17.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// CountriesAPIService CountriesAPI service +type CountriesAPIService service + +type CountriesAPISearchCountriesRequest struct { + ctx context.Context + ApiService *CountriesAPIService + search *Search +} + +func (r CountriesAPISearchCountriesRequest) Search(search Search) CountriesAPISearchCountriesRequest { + r.search = &search + return r +} + +func (r CountriesAPISearchCountriesRequest) Execute() (*PagedCountries, *http.Response, error) { + return r.ApiService.SearchCountriesExecute(r) +} + +/* +SearchCountries Search over countries + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return CountriesAPISearchCountriesRequest +*/ +func (a *CountriesAPIService) SearchCountries(ctx context.Context) CountriesAPISearchCountriesRequest { + return CountriesAPISearchCountriesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PagedCountries +func (a *CountriesAPIService) SearchCountriesExecute(r CountriesAPISearchCountriesRequest) (*PagedCountries, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PagedCountries + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CountriesAPIService.SearchCountries") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/countries/search" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.search + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_country.go b/api_country.go index 37023c5a..a9a636f8 100644 --- a/api_country.go +++ b/api_country.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -361,127 +361,6 @@ func (a *CountryAPIService) DeleteCountryExecute(r CountryAPIDeleteCountryReques return localVarReturnValue, localVarHTTPResponse, nil } -type CountryAPIGetCountriesRequest struct { - ctx context.Context - ApiService *CountryAPIService - skip *int32 - limit *int32 -} - -func (r CountryAPIGetCountriesRequest) Skip(skip int32) CountryAPIGetCountriesRequest { - r.skip = &skip - return r -} - -func (r CountryAPIGetCountriesRequest) Limit(limit int32) CountryAPIGetCountriesRequest { - r.limit = &limit - return r -} - -func (r CountryAPIGetCountriesRequest) Execute() (*PagedCountries, *http.Response, error) { - return r.ApiService.GetCountriesExecute(r) -} - -/* -GetCountries Get all Countries - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return CountryAPIGetCountriesRequest -*/ -func (a *CountryAPIService) GetCountries(ctx context.Context) CountryAPIGetCountriesRequest { - return CountryAPIGetCountriesRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return PagedCountries -func (a *CountryAPIService) GetCountriesExecute(r CountryAPIGetCountriesRequest) (*PagedCountries, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PagedCountries - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CountryAPIService.GetCountries") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/countries" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type CountryAPIGetCountryRequest struct { ctx context.Context ApiService *CountryAPIService diff --git a/api_industries.go b/api_industries.go new file mode 100644 index 00000000..f7833799 --- /dev/null +++ b/api_industries.go @@ -0,0 +1,136 @@ +/* +YASM (Yet Another Skill Management) API + +This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. + +API version: 1.17.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// IndustriesAPIService IndustriesAPI service +type IndustriesAPIService service + +type IndustriesAPISearchIndustriesRequest struct { + ctx context.Context + ApiService *IndustriesAPIService + search *Search +} + +func (r IndustriesAPISearchIndustriesRequest) Search(search Search) IndustriesAPISearchIndustriesRequest { + r.search = &search + return r +} + +func (r IndustriesAPISearchIndustriesRequest) Execute() (*PagedIndustries, *http.Response, error) { + return r.ApiService.SearchIndustriesExecute(r) +} + +/* +SearchIndustries Search over industries + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return IndustriesAPISearchIndustriesRequest +*/ +func (a *IndustriesAPIService) SearchIndustries(ctx context.Context) IndustriesAPISearchIndustriesRequest { + return IndustriesAPISearchIndustriesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PagedIndustries +func (a *IndustriesAPIService) SearchIndustriesExecute(r IndustriesAPISearchIndustriesRequest) (*PagedIndustries, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PagedIndustries + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IndustriesAPIService.SearchIndustries") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/industries/search" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.search + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_industry.go b/api_industry.go index 29c60674..597c45d5 100644 --- a/api_industry.go +++ b/api_industry.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -474,148 +474,6 @@ func (a *IndustryAPIService) DetachOrganizationFromIndustryExecute(r IndustryAPI return localVarReturnValue, localVarHTTPResponse, nil } -type IndustryAPIGetIndustriesRequest struct { - ctx context.Context - ApiService *IndustryAPIService - skip *int32 - limit *int32 - term *string -} - -func (r IndustryAPIGetIndustriesRequest) Skip(skip int32) IndustryAPIGetIndustriesRequest { - r.skip = &skip - return r -} - -func (r IndustryAPIGetIndustriesRequest) Limit(limit int32) IndustryAPIGetIndustriesRequest { - r.limit = &limit - return r -} - -// Optionally search via search term -func (r IndustryAPIGetIndustriesRequest) Term(term string) IndustryAPIGetIndustriesRequest { - r.term = &term - return r -} - -func (r IndustryAPIGetIndustriesRequest) Execute() (*PagedIndustries, *http.Response, error) { - return r.ApiService.GetIndustriesExecute(r) -} - -/* -GetIndustries Get all Industries - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return IndustryAPIGetIndustriesRequest -*/ -func (a *IndustryAPIService) GetIndustries(ctx context.Context) IndustryAPIGetIndustriesRequest { - return IndustryAPIGetIndustriesRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return PagedIndustries -func (a *IndustryAPIService) GetIndustriesExecute(r IndustryAPIGetIndustriesRequest) (*PagedIndustries, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PagedIndustries - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IndustryAPIService.GetIndustries") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/industries" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue - } - if r.term != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "term", r.term, "") - } else { - var defaultValue string = "" - r.term = &defaultValue - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type IndustryAPIGetIndustryRequest struct { ctx context.Context ApiService *IndustryAPIService diff --git a/api_language.go b/api_language.go index 0392896e..2dde570a 100644 --- a/api_language.go +++ b/api_language.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -596,135 +596,6 @@ func (a *LanguageAPIService) GetLanguageExecute(r LanguageAPIGetLanguageRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type LanguageAPIGetLanguagesRequest struct { - ctx context.Context - ApiService *LanguageAPIService - skip *int32 - limit *int32 -} - -func (r LanguageAPIGetLanguagesRequest) Skip(skip int32) LanguageAPIGetLanguagesRequest { - r.skip = &skip - return r -} - -func (r LanguageAPIGetLanguagesRequest) Limit(limit int32) LanguageAPIGetLanguagesRequest { - r.limit = &limit - return r -} - -func (r LanguageAPIGetLanguagesRequest) Execute() (*PagedLanguages, *http.Response, error) { - return r.ApiService.GetLanguagesExecute(r) -} - -/* -GetLanguages Get a list of Languages - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return LanguageAPIGetLanguagesRequest -*/ -func (a *LanguageAPIService) GetLanguages(ctx context.Context) LanguageAPIGetLanguagesRequest { - return LanguageAPIGetLanguagesRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return PagedLanguages -func (a *LanguageAPIService) GetLanguagesExecute(r LanguageAPIGetLanguagesRequest) (*PagedLanguages, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PagedLanguages - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LanguageAPIService.GetLanguages") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/languages" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type LanguageAPIRemoveLanguageFromCountryRequest struct { ctx context.Context ApiService *LanguageAPIService diff --git a/api_languages.go b/api_languages.go new file mode 100644 index 00000000..317630bd --- /dev/null +++ b/api_languages.go @@ -0,0 +1,136 @@ +/* +YASM (Yet Another Skill Management) API + +This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. + +API version: 1.17.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// LanguagesAPIService LanguagesAPI service +type LanguagesAPIService service + +type LanguagesAPISearchLanguagesRequest struct { + ctx context.Context + ApiService *LanguagesAPIService + search *Search +} + +func (r LanguagesAPISearchLanguagesRequest) Search(search Search) LanguagesAPISearchLanguagesRequest { + r.search = &search + return r +} + +func (r LanguagesAPISearchLanguagesRequest) Execute() (*PagedLanguages, *http.Response, error) { + return r.ApiService.SearchLanguagesExecute(r) +} + +/* +SearchLanguages Search over languages + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return LanguagesAPISearchLanguagesRequest +*/ +func (a *LanguagesAPIService) SearchLanguages(ctx context.Context) LanguagesAPISearchLanguagesRequest { + return LanguagesAPISearchLanguagesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PagedLanguages +func (a *LanguagesAPIService) SearchLanguagesExecute(r LanguagesAPISearchLanguagesRequest) (*PagedLanguages, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PagedLanguages + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LanguagesAPIService.SearchLanguages") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/languages/search" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.search + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_office.go b/api_office.go index 4b10cebc..1d5b1aa1 100644 --- a/api_office.go +++ b/api_office.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -139,16 +139,22 @@ func (a *OfficeAPIService) AddPersonOfficeExecute(r OfficeAPIAddPersonOfficeRequ type OfficeAPICreateOfficeRequest struct { ctx context.Context ApiService *OfficeAPIService - organizationId string + organizationId *string office *Office } +// The ID of the organization +func (r OfficeAPICreateOfficeRequest) OrganizationId(organizationId string) OfficeAPICreateOfficeRequest { + r.organizationId = &organizationId + return r +} + func (r OfficeAPICreateOfficeRequest) Office(office Office) OfficeAPICreateOfficeRequest { r.office = &office return r } -func (r OfficeAPICreateOfficeRequest) Execute() (*OrganizationDetails, *http.Response, error) { +func (r OfficeAPICreateOfficeRequest) Execute() (*Office, *http.Response, error) { return r.ApiService.CreateOfficeExecute(r) } @@ -156,25 +162,23 @@ func (r OfficeAPICreateOfficeRequest) Execute() (*OrganizationDetails, *http.Res CreateOffice Create an Office in an Organization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId @return OfficeAPICreateOfficeRequest */ -func (a *OfficeAPIService) CreateOffice(ctx context.Context, organizationId string) OfficeAPICreateOfficeRequest { +func (a *OfficeAPIService) CreateOffice(ctx context.Context) OfficeAPICreateOfficeRequest { return OfficeAPICreateOfficeRequest{ ApiService: a, ctx: ctx, - organizationId: organizationId, } } // Execute executes the request -// @return OrganizationDetails -func (a *OfficeAPIService) CreateOfficeExecute(r OfficeAPICreateOfficeRequest) (*OrganizationDetails, *http.Response, error) { +// @return Office +func (a *OfficeAPIService) CreateOfficeExecute(r OfficeAPICreateOfficeRequest) (*Office, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *OrganizationDetails + localVarReturnValue *Office ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OfficeAPIService.CreateOffice") @@ -182,16 +186,19 @@ func (a *OfficeAPIService) CreateOfficeExecute(r OfficeAPICreateOfficeRequest) ( return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/organizations/{organizationId}/offices" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) + localVarPath := localBasePath + "/offices" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.organizationId == nil { + return localVarReturnValue, nil, reportError("organizationId is required and must be specified") + } if r.office == nil { return localVarReturnValue, nil, reportError("office is required and must be specified") } + parameterAddToHeaderOrQuery(localVarQueryParams, "organizationId", r.organizationId, "") // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -259,7 +266,6 @@ func (a *OfficeAPIService) CreateOfficeExecute(r OfficeAPICreateOfficeRequest) ( type OfficeAPIDeleteOfficeRequest struct { ctx context.Context ApiService *OfficeAPIService - organizationId string officeId string } @@ -271,15 +277,13 @@ func (r OfficeAPIDeleteOfficeRequest) Execute() (*Status, *http.Response, error) DeleteOffice Delete an Office from an Organization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId @param officeId @return OfficeAPIDeleteOfficeRequest */ -func (a *OfficeAPIService) DeleteOffice(ctx context.Context, organizationId string, officeId string) OfficeAPIDeleteOfficeRequest { +func (a *OfficeAPIService) DeleteOffice(ctx context.Context, officeId string) OfficeAPIDeleteOfficeRequest { return OfficeAPIDeleteOfficeRequest{ ApiService: a, ctx: ctx, - organizationId: organizationId, officeId: officeId, } } @@ -299,8 +303,7 @@ func (a *OfficeAPIService) DeleteOfficeExecute(r OfficeAPIDeleteOfficeRequest) ( return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/organizations/{organizationId}/offices/{officeId}" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) + localVarPath := localBasePath + "/offices/{officeId}" localVarPath = strings.Replace(localVarPath, "{"+"officeId"+"}", url.PathEscape(parameterValueToString(r.officeId, "officeId")), -1) localVarHeaderParams := make(map[string]string) @@ -482,119 +485,6 @@ func (a *OfficeAPIService) DeletePersonOfficeExecute(r OfficeAPIDeletePersonOffi return localVarReturnValue, localVarHTTPResponse, nil } -type OfficeAPIGetOfficeRequest struct { - ctx context.Context - ApiService *OfficeAPIService - organizationId string - officeId string -} - -func (r OfficeAPIGetOfficeRequest) Execute() (*Office, *http.Response, error) { - return r.ApiService.GetOfficeExecute(r) -} - -/* -GetOffice Get an Office for an Organization - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId - @param officeId - @return OfficeAPIGetOfficeRequest -*/ -func (a *OfficeAPIService) GetOffice(ctx context.Context, organizationId string, officeId string) OfficeAPIGetOfficeRequest { - return OfficeAPIGetOfficeRequest{ - ApiService: a, - ctx: ctx, - organizationId: organizationId, - officeId: officeId, - } -} - -// Execute executes the request -// @return Office -func (a *OfficeAPIService) GetOfficeExecute(r OfficeAPIGetOfficeRequest) (*Office, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Office - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OfficeAPIService.GetOffice") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/organizations/{organizationId}/offices/{officeId}" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"officeId"+"}", url.PathEscape(parameterValueToString(r.officeId, "officeId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type OfficeAPIGetOfficeDetailsRequest struct { ctx context.Context ApiService *OfficeAPIService @@ -704,148 +594,9 @@ func (a *OfficeAPIService) GetOfficeDetailsExecute(r OfficeAPIGetOfficeDetailsRe return localVarReturnValue, localVarHTTPResponse, nil } -type OfficeAPIGetOfficesRequest struct { - ctx context.Context - ApiService *OfficeAPIService - skip *int32 - limit *int32 - organizationId *string -} - -func (r OfficeAPIGetOfficesRequest) Skip(skip int32) OfficeAPIGetOfficesRequest { - r.skip = &skip - return r -} - -func (r OfficeAPIGetOfficesRequest) Limit(limit int32) OfficeAPIGetOfficesRequest { - r.limit = &limit - return r -} - -func (r OfficeAPIGetOfficesRequest) OrganizationId(organizationId string) OfficeAPIGetOfficesRequest { - r.organizationId = &organizationId - return r -} - -func (r OfficeAPIGetOfficesRequest) Execute() (*PagedOffices, *http.Response, error) { - return r.ApiService.GetOfficesExecute(r) -} - -/* -GetOffices Get a list of all Offices - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OfficeAPIGetOfficesRequest -*/ -func (a *OfficeAPIService) GetOffices(ctx context.Context) OfficeAPIGetOfficesRequest { - return OfficeAPIGetOfficesRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return PagedOffices -func (a *OfficeAPIService) GetOfficesExecute(r OfficeAPIGetOfficesRequest) (*PagedOffices, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PagedOffices - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OfficeAPIService.GetOffices") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/offices" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue - } - if r.organizationId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "organizationId", r.organizationId, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type OfficeAPIUpdateOfficeRequest struct { ctx context.Context ApiService *OfficeAPIService - organizationId string officeId string office *Office } @@ -863,15 +614,13 @@ func (r OfficeAPIUpdateOfficeRequest) Execute() (*Office, *http.Response, error) UpdateOffice Update an Office for an Organization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId @param officeId @return OfficeAPIUpdateOfficeRequest */ -func (a *OfficeAPIService) UpdateOffice(ctx context.Context, organizationId string, officeId string) OfficeAPIUpdateOfficeRequest { +func (a *OfficeAPIService) UpdateOffice(ctx context.Context, officeId string) OfficeAPIUpdateOfficeRequest { return OfficeAPIUpdateOfficeRequest{ ApiService: a, ctx: ctx, - organizationId: organizationId, officeId: officeId, } } @@ -891,8 +640,7 @@ func (a *OfficeAPIService) UpdateOfficeExecute(r OfficeAPIUpdateOfficeRequest) ( return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/organizations/{organizationId}/offices/{officeId}" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) + localVarPath := localBasePath + "/offices/{officeId}" localVarPath = strings.Replace(localVarPath, "{"+"officeId"+"}", url.PathEscape(parameterValueToString(r.officeId, "officeId")), -1) localVarHeaderParams := make(map[string]string) diff --git a/api_offices.go b/api_offices.go new file mode 100644 index 00000000..511d73b8 --- /dev/null +++ b/api_offices.go @@ -0,0 +1,136 @@ +/* +YASM (Yet Another Skill Management) API + +This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. + +API version: 1.17.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// OfficesAPIService OfficesAPI service +type OfficesAPIService service + +type OfficesAPISearchOfficesRequest struct { + ctx context.Context + ApiService *OfficesAPIService + officeSearch *OfficeSearch +} + +func (r OfficesAPISearchOfficesRequest) OfficeSearch(officeSearch OfficeSearch) OfficesAPISearchOfficesRequest { + r.officeSearch = &officeSearch + return r +} + +func (r OfficesAPISearchOfficesRequest) Execute() (*PagedOffices, *http.Response, error) { + return r.ApiService.SearchOfficesExecute(r) +} + +/* +SearchOffices Search over offices + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return OfficesAPISearchOfficesRequest +*/ +func (a *OfficesAPIService) SearchOffices(ctx context.Context) OfficesAPISearchOfficesRequest { + return OfficesAPISearchOfficesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PagedOffices +func (a *OfficesAPIService) SearchOfficesExecute(r OfficesAPISearchOfficesRequest) (*PagedOffices, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PagedOffices + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OfficesAPIService.SearchOffices") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/offices/search" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.officeSearch + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_organization.go b/api_organization.go index e0760fce..8d4feb88 100644 --- a/api_organization.go +++ b/api_organization.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -362,139 +362,25 @@ func (a *OrganizationAPIService) AttachOrganizationToIndustryExecute(r Organizat return localVarReturnValue, localVarHTTPResponse, nil } -type OrganizationAPICreateCertificationRequest struct { +type OrganizationAPICreateOfficeRequest struct { ctx context.Context ApiService *OrganizationAPIService - organizationId string - certification *Certification + organizationId *string + office *Office } -func (r OrganizationAPICreateCertificationRequest) Certification(certification Certification) OrganizationAPICreateCertificationRequest { - r.certification = &certification +// The ID of the organization +func (r OrganizationAPICreateOfficeRequest) OrganizationId(organizationId string) OrganizationAPICreateOfficeRequest { + r.organizationId = &organizationId return r } -func (r OrganizationAPICreateCertificationRequest) Execute() (*CertificationDetails, *http.Response, error) { - return r.ApiService.CreateCertificationExecute(r) -} - -/* -CreateCertification Create a Certification in an Organization - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId - @return OrganizationAPICreateCertificationRequest -*/ -func (a *OrganizationAPIService) CreateCertification(ctx context.Context, organizationId string) OrganizationAPICreateCertificationRequest { - return OrganizationAPICreateCertificationRequest{ - ApiService: a, - ctx: ctx, - organizationId: organizationId, - } -} - -// Execute executes the request -// @return CertificationDetails -func (a *OrganizationAPIService) CreateCertificationExecute(r OrganizationAPICreateCertificationRequest) (*CertificationDetails, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CertificationDetails - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.CreateCertification") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/organizations/{organizationId}/certifications" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.certification == nil { - return localVarReturnValue, nil, reportError("certification is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.certification - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type OrganizationAPICreateOfficeRequest struct { - ctx context.Context - ApiService *OrganizationAPIService - organizationId string - office *Office -} - func (r OrganizationAPICreateOfficeRequest) Office(office Office) OrganizationAPICreateOfficeRequest { r.office = &office return r } -func (r OrganizationAPICreateOfficeRequest) Execute() (*OrganizationDetails, *http.Response, error) { +func (r OrganizationAPICreateOfficeRequest) Execute() (*Office, *http.Response, error) { return r.ApiService.CreateOfficeExecute(r) } @@ -502,25 +388,23 @@ func (r OrganizationAPICreateOfficeRequest) Execute() (*OrganizationDetails, *ht CreateOffice Create an Office in an Organization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId @return OrganizationAPICreateOfficeRequest */ -func (a *OrganizationAPIService) CreateOffice(ctx context.Context, organizationId string) OrganizationAPICreateOfficeRequest { +func (a *OrganizationAPIService) CreateOffice(ctx context.Context) OrganizationAPICreateOfficeRequest { return OrganizationAPICreateOfficeRequest{ ApiService: a, ctx: ctx, - organizationId: organizationId, } } // Execute executes the request -// @return OrganizationDetails -func (a *OrganizationAPIService) CreateOfficeExecute(r OrganizationAPICreateOfficeRequest) (*OrganizationDetails, *http.Response, error) { +// @return Office +func (a *OrganizationAPIService) CreateOfficeExecute(r OrganizationAPICreateOfficeRequest) (*Office, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *OrganizationDetails + localVarReturnValue *Office ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.CreateOffice") @@ -528,16 +412,19 @@ func (a *OrganizationAPIService) CreateOfficeExecute(r OrganizationAPICreateOffi return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/organizations/{organizationId}/offices" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) + localVarPath := localBasePath + "/offices" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.organizationId == nil { + return localVarReturnValue, nil, reportError("organizationId is required and must be specified") + } if r.office == nil { return localVarReturnValue, nil, reportError("office is required and must be specified") } + parameterAddToHeaderOrQuery(localVarQueryParams, "organizationId", r.organizationId, "") // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -722,10 +609,16 @@ func (a *OrganizationAPIService) CreateOrganizationExecute(r OrganizationAPICrea type OrganizationAPICreateProjectRequest struct { ctx context.Context ApiService *OrganizationAPIService - organizationId string + organizationId *string project *Project } +// The ID of the organization +func (r OrganizationAPICreateProjectRequest) OrganizationId(organizationId string) OrganizationAPICreateProjectRequest { + r.organizationId = &organizationId + return r +} + func (r OrganizationAPICreateProjectRequest) Project(project Project) OrganizationAPICreateProjectRequest { r.project = &project return r @@ -736,517 +629,48 @@ func (r OrganizationAPICreateProjectRequest) Execute() (*ProjectDetails, *http.R } /* -CreateProject Create a Project in an Organization - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId - @return OrganizationAPICreateProjectRequest -*/ -func (a *OrganizationAPIService) CreateProject(ctx context.Context, organizationId string) OrganizationAPICreateProjectRequest { - return OrganizationAPICreateProjectRequest{ - ApiService: a, - ctx: ctx, - organizationId: organizationId, - } -} - -// Execute executes the request -// @return ProjectDetails -func (a *OrganizationAPIService) CreateProjectExecute(r OrganizationAPICreateProjectRequest) (*ProjectDetails, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProjectDetails - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.CreateProject") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/organizations/{organizationId}/projects" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.project == nil { - return localVarReturnValue, nil, reportError("project is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.project - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type OrganizationAPIDeleteOfficeRequest struct { - ctx context.Context - ApiService *OrganizationAPIService - organizationId string - officeId string -} - -func (r OrganizationAPIDeleteOfficeRequest) Execute() (*Status, *http.Response, error) { - return r.ApiService.DeleteOfficeExecute(r) -} - -/* -DeleteOffice Delete an Office from an Organization - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId - @param officeId - @return OrganizationAPIDeleteOfficeRequest -*/ -func (a *OrganizationAPIService) DeleteOffice(ctx context.Context, organizationId string, officeId string) OrganizationAPIDeleteOfficeRequest { - return OrganizationAPIDeleteOfficeRequest{ - ApiService: a, - ctx: ctx, - organizationId: organizationId, - officeId: officeId, - } -} - -// Execute executes the request -// @return Status -func (a *OrganizationAPIService) DeleteOfficeExecute(r OrganizationAPIDeleteOfficeRequest) (*Status, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Status - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.DeleteOffice") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/organizations/{organizationId}/offices/{officeId}" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"officeId"+"}", url.PathEscape(parameterValueToString(r.officeId, "officeId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type OrganizationAPIDeleteOrganizationRequest struct { - ctx context.Context - ApiService *OrganizationAPIService - organizationId string -} - -func (r OrganizationAPIDeleteOrganizationRequest) Execute() (*Status, *http.Response, error) { - return r.ApiService.DeleteOrganizationExecute(r) -} - -/* -DeleteOrganization Delete an organization - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId - @return OrganizationAPIDeleteOrganizationRequest -*/ -func (a *OrganizationAPIService) DeleteOrganization(ctx context.Context, organizationId string) OrganizationAPIDeleteOrganizationRequest { - return OrganizationAPIDeleteOrganizationRequest{ - ApiService: a, - ctx: ctx, - organizationId: organizationId, - } -} - -// Execute executes the request -// @return Status -func (a *OrganizationAPIService) DeleteOrganizationExecute(r OrganizationAPIDeleteOrganizationRequest) (*Status, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Status - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.DeleteOrganization") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/organizations/{organizationId}" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type OrganizationAPIDetachOrganizationFromIndustryRequest struct { - ctx context.Context - ApiService *OrganizationAPIService - organizationId string - industryId string -} - -func (r OrganizationAPIDetachOrganizationFromIndustryRequest) Execute() (*OrganizationDetails, *http.Response, error) { - return r.ApiService.DetachOrganizationFromIndustryExecute(r) -} - -/* -DetachOrganizationFromIndustry Remove an Organization to an Industry - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId - @param industryId - @return OrganizationAPIDetachOrganizationFromIndustryRequest -*/ -func (a *OrganizationAPIService) DetachOrganizationFromIndustry(ctx context.Context, organizationId string, industryId string) OrganizationAPIDetachOrganizationFromIndustryRequest { - return OrganizationAPIDetachOrganizationFromIndustryRequest{ - ApiService: a, - ctx: ctx, - organizationId: organizationId, - industryId: industryId, - } -} - -// Execute executes the request -// @return OrganizationDetails -func (a *OrganizationAPIService) DetachOrganizationFromIndustryExecute(r OrganizationAPIDetachOrganizationFromIndustryRequest) (*OrganizationDetails, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *OrganizationDetails - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.DetachOrganizationFromIndustry") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/organizations/{organizationId}/industries/{industryId}" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"industryId"+"}", url.PathEscape(parameterValueToString(r.industryId, "industryId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type OrganizationAPIGetCertificationsForOrganizationRequest struct { - ctx context.Context - ApiService *OrganizationAPIService - organizationId string - skip *int32 - limit *int32 -} - -func (r OrganizationAPIGetCertificationsForOrganizationRequest) Skip(skip int32) OrganizationAPIGetCertificationsForOrganizationRequest { - r.skip = &skip - return r -} - -func (r OrganizationAPIGetCertificationsForOrganizationRequest) Limit(limit int32) OrganizationAPIGetCertificationsForOrganizationRequest { - r.limit = &limit - return r -} - -func (r OrganizationAPIGetCertificationsForOrganizationRequest) Execute() (*PagedCertifications, *http.Response, error) { - return r.ApiService.GetCertificationsForOrganizationExecute(r) -} - -/* -GetCertificationsForOrganization Get a list of all certifications for a organization +CreateProject Create a Project in an Organization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId - @return OrganizationAPIGetCertificationsForOrganizationRequest + @return OrganizationAPICreateProjectRequest */ -func (a *OrganizationAPIService) GetCertificationsForOrganization(ctx context.Context, organizationId string) OrganizationAPIGetCertificationsForOrganizationRequest { - return OrganizationAPIGetCertificationsForOrganizationRequest{ +func (a *OrganizationAPIService) CreateProject(ctx context.Context) OrganizationAPICreateProjectRequest { + return OrganizationAPICreateProjectRequest{ ApiService: a, ctx: ctx, - organizationId: organizationId, } } // Execute executes the request -// @return PagedCertifications -func (a *OrganizationAPIService) GetCertificationsForOrganizationExecute(r OrganizationAPIGetCertificationsForOrganizationRequest) (*PagedCertifications, *http.Response, error) { +// @return ProjectDetails +func (a *OrganizationAPIService) CreateProjectExecute(r OrganizationAPICreateProjectRequest) (*ProjectDetails, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PagedCertifications + localVarReturnValue *ProjectDetails ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.GetCertificationsForOrganization") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.CreateProject") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/organizations/{organizationId}/certifications" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) + localVarPath := localBasePath + "/projects" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue + if r.organizationId == nil { + return localVarReturnValue, nil, reportError("organizationId is required and must be specified") } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue + if r.project == nil { + return localVarReturnValue, nil, reportError("project is required and must be specified") } + + parameterAddToHeaderOrQuery(localVarQueryParams, "organizationId", r.organizationId, "") // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -1262,6 +686,8 @@ func (a *OrganizationAPIService) GetCertificationsForOrganizationExecute(r Organ if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.project req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1307,52 +733,48 @@ func (a *OrganizationAPIService) GetCertificationsForOrganizationExecute(r Organ return localVarReturnValue, localVarHTTPResponse, nil } -type OrganizationAPIGetOfficeRequest struct { +type OrganizationAPIDeleteOrganizationRequest struct { ctx context.Context ApiService *OrganizationAPIService organizationId string - officeId string } -func (r OrganizationAPIGetOfficeRequest) Execute() (*Office, *http.Response, error) { - return r.ApiService.GetOfficeExecute(r) +func (r OrganizationAPIDeleteOrganizationRequest) Execute() (*Status, *http.Response, error) { + return r.ApiService.DeleteOrganizationExecute(r) } /* -GetOffice Get an Office for an Organization +DeleteOrganization Delete an organization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param organizationId - @param officeId - @return OrganizationAPIGetOfficeRequest + @return OrganizationAPIDeleteOrganizationRequest */ -func (a *OrganizationAPIService) GetOffice(ctx context.Context, organizationId string, officeId string) OrganizationAPIGetOfficeRequest { - return OrganizationAPIGetOfficeRequest{ +func (a *OrganizationAPIService) DeleteOrganization(ctx context.Context, organizationId string) OrganizationAPIDeleteOrganizationRequest { + return OrganizationAPIDeleteOrganizationRequest{ ApiService: a, ctx: ctx, organizationId: organizationId, - officeId: officeId, } } // Execute executes the request -// @return Office -func (a *OrganizationAPIService) GetOfficeExecute(r OrganizationAPIGetOfficeRequest) (*Office, *http.Response, error) { +// @return Status +func (a *OrganizationAPIService) DeleteOrganizationExecute(r OrganizationAPIDeleteOrganizationRequest) (*Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Office + localVarReturnValue *Status ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.GetOffice") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.DeleteOrganization") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/organizations/{organizationId}/offices/{officeId}" + localVarPath := localBasePath + "/organizations/{organizationId}" localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"officeId"+"}", url.PathEscape(parameterValueToString(r.officeId, "officeId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1420,48 +842,52 @@ func (a *OrganizationAPIService) GetOfficeExecute(r OrganizationAPIGetOfficeRequ return localVarReturnValue, localVarHTTPResponse, nil } -type OrganizationAPIGetOrganizationRequest struct { +type OrganizationAPIDetachOrganizationFromIndustryRequest struct { ctx context.Context ApiService *OrganizationAPIService organizationId string + industryId string } -func (r OrganizationAPIGetOrganizationRequest) Execute() (*OrganizationDetails, *http.Response, error) { - return r.ApiService.GetOrganizationExecute(r) +func (r OrganizationAPIDetachOrganizationFromIndustryRequest) Execute() (*OrganizationDetails, *http.Response, error) { + return r.ApiService.DetachOrganizationFromIndustryExecute(r) } /* -GetOrganization Get details about an Organization +DetachOrganizationFromIndustry Remove an Organization to an Industry @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param organizationId - @return OrganizationAPIGetOrganizationRequest + @param industryId + @return OrganizationAPIDetachOrganizationFromIndustryRequest */ -func (a *OrganizationAPIService) GetOrganization(ctx context.Context, organizationId string) OrganizationAPIGetOrganizationRequest { - return OrganizationAPIGetOrganizationRequest{ +func (a *OrganizationAPIService) DetachOrganizationFromIndustry(ctx context.Context, organizationId string, industryId string) OrganizationAPIDetachOrganizationFromIndustryRequest { + return OrganizationAPIDetachOrganizationFromIndustryRequest{ ApiService: a, ctx: ctx, organizationId: organizationId, + industryId: industryId, } } // Execute executes the request // @return OrganizationDetails -func (a *OrganizationAPIService) GetOrganizationExecute(r OrganizationAPIGetOrganizationRequest) (*OrganizationDetails, *http.Response, error) { +func (a *OrganizationAPIService) DetachOrganizationFromIndustryExecute(r OrganizationAPIDetachOrganizationFromIndustryRequest) (*OrganizationDetails, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile localVarReturnValue *OrganizationDetails ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.GetOrganization") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.DetachOrganizationFromIndustry") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/organizations/{organizationId}" + localVarPath := localBasePath + "/organizations/{organizationId}/industries/{industryId}" localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"industryId"+"}", url.PathEscape(parameterValueToString(r.industryId, "industryId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1529,37 +955,25 @@ func (a *OrganizationAPIService) GetOrganizationExecute(r OrganizationAPIGetOrga return localVarReturnValue, localVarHTTPResponse, nil } -type OrganizationAPIGetOrganizationProjectsRequest struct { +type OrganizationAPIGetOrganizationRequest struct { ctx context.Context ApiService *OrganizationAPIService organizationId string - skip *int32 - limit *int32 -} - -func (r OrganizationAPIGetOrganizationProjectsRequest) Skip(skip int32) OrganizationAPIGetOrganizationProjectsRequest { - r.skip = &skip - return r -} - -func (r OrganizationAPIGetOrganizationProjectsRequest) Limit(limit int32) OrganizationAPIGetOrganizationProjectsRequest { - r.limit = &limit - return r } -func (r OrganizationAPIGetOrganizationProjectsRequest) Execute() (*PagedProjects, *http.Response, error) { - return r.ApiService.GetOrganizationProjectsExecute(r) +func (r OrganizationAPIGetOrganizationRequest) Execute() (*OrganizationDetails, *http.Response, error) { + return r.ApiService.GetOrganizationExecute(r) } /* -GetOrganizationProjects Get a list of all Projects for an Organization +GetOrganization Get details about an Organization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param organizationId - @return OrganizationAPIGetOrganizationProjectsRequest + @return OrganizationAPIGetOrganizationRequest */ -func (a *OrganizationAPIService) GetOrganizationProjects(ctx context.Context, organizationId string) OrganizationAPIGetOrganizationProjectsRequest { - return OrganizationAPIGetOrganizationProjectsRequest{ +func (a *OrganizationAPIService) GetOrganization(ctx context.Context, organizationId string) OrganizationAPIGetOrganizationRequest { + return OrganizationAPIGetOrganizationRequest{ ApiService: a, ctx: ctx, organizationId: organizationId, @@ -1567,39 +981,27 @@ func (a *OrganizationAPIService) GetOrganizationProjects(ctx context.Context, or } // Execute executes the request -// @return PagedProjects -func (a *OrganizationAPIService) GetOrganizationProjectsExecute(r OrganizationAPIGetOrganizationProjectsRequest) (*PagedProjects, *http.Response, error) { +// @return OrganizationDetails +func (a *OrganizationAPIService) GetOrganizationExecute(r OrganizationAPIGetOrganizationRequest) (*OrganizationDetails, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PagedProjects + localVarReturnValue *OrganizationDetails ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.GetOrganizationProjects") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.GetOrganization") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/organizations/{organizationId}/projects" + localVarPath := localBasePath + "/organizations/{organizationId}" localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1662,86 +1064,57 @@ func (a *OrganizationAPIService) GetOrganizationProjectsExecute(r OrganizationAP return localVarReturnValue, localVarHTTPResponse, nil } -type OrganizationAPIGetOrganizationsRequest struct { +type OrganizationAPIMoveCertificationRequest struct { ctx context.Context ApiService *OrganizationAPIService - skip *int32 - limit *int32 - term *string -} - -func (r OrganizationAPIGetOrganizationsRequest) Skip(skip int32) OrganizationAPIGetOrganizationsRequest { - r.skip = &skip - return r -} - -func (r OrganizationAPIGetOrganizationsRequest) Limit(limit int32) OrganizationAPIGetOrganizationsRequest { - r.limit = &limit - return r -} - -// Optionally search via search term -func (r OrganizationAPIGetOrganizationsRequest) Term(term string) OrganizationAPIGetOrganizationsRequest { - r.term = &term - return r + certificationId string + organizationId string } -func (r OrganizationAPIGetOrganizationsRequest) Execute() (*PagedOrganizations, *http.Response, error) { - return r.ApiService.GetOrganizationsExecute(r) +func (r OrganizationAPIMoveCertificationRequest) Execute() (*CertificationDetails, *http.Response, error) { + return r.ApiService.MoveCertificationExecute(r) } /* -GetOrganizations Get a list of all Organizations +MoveCertification Move a Certification to an Organization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OrganizationAPIGetOrganizationsRequest + @param certificationId + @param organizationId + @return OrganizationAPIMoveCertificationRequest */ -func (a *OrganizationAPIService) GetOrganizations(ctx context.Context) OrganizationAPIGetOrganizationsRequest { - return OrganizationAPIGetOrganizationsRequest{ +func (a *OrganizationAPIService) MoveCertification(ctx context.Context, certificationId string, organizationId string) OrganizationAPIMoveCertificationRequest { + return OrganizationAPIMoveCertificationRequest{ ApiService: a, ctx: ctx, + certificationId: certificationId, + organizationId: organizationId, } } // Execute executes the request -// @return PagedOrganizations -func (a *OrganizationAPIService) GetOrganizationsExecute(r OrganizationAPIGetOrganizationsRequest) (*PagedOrganizations, *http.Response, error) { +// @return CertificationDetails +func (a *OrganizationAPIService) MoveCertificationExecute(r OrganizationAPIMoveCertificationRequest) (*CertificationDetails, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PagedOrganizations + localVarReturnValue *CertificationDetails ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.GetOrganizations") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.MoveCertification") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/organizations" + localVarPath := localBasePath + "/certifications/{certificationId}/organizations/{organizationId}" + localVarPath = strings.Replace(localVarPath, "{"+"certificationId"+"}", url.PathEscape(parameterValueToString(r.certificationId, "certificationId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue - } - if r.term != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "term", r.term, "") - } else { - var defaultValue string = "" - r.term = &defaultValue - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1804,52 +1177,52 @@ func (a *OrganizationAPIService) GetOrganizationsExecute(r OrganizationAPIGetOrg return localVarReturnValue, localVarHTTPResponse, nil } -type OrganizationAPIMoveCertificationRequest struct { +type OrganizationAPIMoveProjectRequest struct { ctx context.Context ApiService *OrganizationAPIService + projectId string organizationId string - certificationId string } -func (r OrganizationAPIMoveCertificationRequest) Execute() (*CertificationDetails, *http.Response, error) { - return r.ApiService.MoveCertificationExecute(r) +func (r OrganizationAPIMoveProjectRequest) Execute() (*ProjectDetails, *http.Response, error) { + return r.ApiService.MoveProjectExecute(r) } /* -MoveCertification Move a Certification to an Organization +MoveProject Move a Project to an Organization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId @param organizationId - @param certificationId - @return OrganizationAPIMoveCertificationRequest + @return OrganizationAPIMoveProjectRequest */ -func (a *OrganizationAPIService) MoveCertification(ctx context.Context, organizationId string, certificationId string) OrganizationAPIMoveCertificationRequest { - return OrganizationAPIMoveCertificationRequest{ +func (a *OrganizationAPIService) MoveProject(ctx context.Context, projectId string, organizationId string) OrganizationAPIMoveProjectRequest { + return OrganizationAPIMoveProjectRequest{ ApiService: a, ctx: ctx, + projectId: projectId, organizationId: organizationId, - certificationId: certificationId, } } // Execute executes the request -// @return CertificationDetails -func (a *OrganizationAPIService) MoveCertificationExecute(r OrganizationAPIMoveCertificationRequest) (*CertificationDetails, *http.Response, error) { +// @return ProjectDetails +func (a *OrganizationAPIService) MoveProjectExecute(r OrganizationAPIMoveProjectRequest) (*ProjectDetails, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CertificationDetails + localVarReturnValue *ProjectDetails ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.MoveCertification") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.MoveProject") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/organizations/{organizationId}/certificates/{certificationId}" + localVarPath := localBasePath + "/projects/{projectId}/organizations/{organizationId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"certificationId"+"}", url.PathEscape(parameterValueToString(r.certificationId, "certificationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2143,65 +1516,54 @@ func (a *OrganizationAPIService) RemoveOrganizationFromParentOrganizationExecute return localVarReturnValue, localVarHTTPResponse, nil } -type OrganizationAPIUpdateOfficeRequest struct { +type OrganizationAPISearchOrganizationsRequest struct { ctx context.Context ApiService *OrganizationAPIService - organizationId string - officeId string - office *Office + search *Search } -func (r OrganizationAPIUpdateOfficeRequest) Office(office Office) OrganizationAPIUpdateOfficeRequest { - r.office = &office +func (r OrganizationAPISearchOrganizationsRequest) Search(search Search) OrganizationAPISearchOrganizationsRequest { + r.search = &search return r } -func (r OrganizationAPIUpdateOfficeRequest) Execute() (*Office, *http.Response, error) { - return r.ApiService.UpdateOfficeExecute(r) +func (r OrganizationAPISearchOrganizationsRequest) Execute() (*PagedOrganizations, *http.Response, error) { + return r.ApiService.SearchOrganizationsExecute(r) } /* -UpdateOffice Update an Office for an Organization +SearchOrganizations Search over organizations @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId - @param officeId - @return OrganizationAPIUpdateOfficeRequest + @return OrganizationAPISearchOrganizationsRequest */ -func (a *OrganizationAPIService) UpdateOffice(ctx context.Context, organizationId string, officeId string) OrganizationAPIUpdateOfficeRequest { - return OrganizationAPIUpdateOfficeRequest{ +func (a *OrganizationAPIService) SearchOrganizations(ctx context.Context) OrganizationAPISearchOrganizationsRequest { + return OrganizationAPISearchOrganizationsRequest{ ApiService: a, ctx: ctx, - organizationId: organizationId, - officeId: officeId, } } // Execute executes the request -// @return Office -func (a *OrganizationAPIService) UpdateOfficeExecute(r OrganizationAPIUpdateOfficeRequest) (*Office, *http.Response, error) { +// @return PagedOrganizations +func (a *OrganizationAPIService) SearchOrganizationsExecute(r OrganizationAPISearchOrganizationsRequest) (*PagedOrganizations, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Office + localVarReturnValue *PagedOrganizations ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.UpdateOffice") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.SearchOrganizations") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/organizations/{organizationId}/offices/{officeId}" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"officeId"+"}", url.PathEscape(parameterValueToString(r.officeId, "officeId")), -1) + localVarPath := localBasePath + "/organizations/search" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.office == nil { - return localVarReturnValue, nil, reportError("office is required and must be specified") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -2221,7 +1583,7 @@ func (a *OrganizationAPIService) UpdateOfficeExecute(r OrganizationAPIUpdateOffi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.office + localVarPostBody = r.search req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2387,116 +1749,3 @@ func (a *OrganizationAPIService) UpdateOrganizationExecute(r OrganizationAPIUpda return localVarReturnValue, localVarHTTPResponse, nil } - -type OrganizationAPIUpdateProjectOrganizationRequest struct { - ctx context.Context - ApiService *OrganizationAPIService - organizationId string - projectId string -} - -func (r OrganizationAPIUpdateProjectOrganizationRequest) Execute() (*ProjectDetails, *http.Response, error) { - return r.ApiService.UpdateProjectOrganizationExecute(r) -} - -/* -UpdateProjectOrganization project is now point to the new organization - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId - @param projectId - @return OrganizationAPIUpdateProjectOrganizationRequest -*/ -func (a *OrganizationAPIService) UpdateProjectOrganization(ctx context.Context, organizationId string, projectId string) OrganizationAPIUpdateProjectOrganizationRequest { - return OrganizationAPIUpdateProjectOrganizationRequest{ - ApiService: a, - ctx: ctx, - organizationId: organizationId, - projectId: projectId, - } -} - -// Execute executes the request -// @return ProjectDetails -func (a *OrganizationAPIService) UpdateProjectOrganizationExecute(r OrganizationAPIUpdateProjectOrganizationRequest) (*ProjectDetails, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProjectDetails - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.UpdateProjectOrganization") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/organizations/{organizationId}/projects/{projectId}" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/api_person.go b/api_person.go index f823c83f..88ca1723 100644 --- a/api_person.go +++ b/api_person.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -2648,135 +2648,6 @@ func (a *PersonAPIService) GeneratePersonProfileExecute(r PersonAPIGeneratePerso return localVarReturnValue, localVarHTTPResponse, nil } -type PersonAPIGetAllBusinessDepartmentsRequest struct { - ctx context.Context - ApiService *PersonAPIService - skip *int32 - limit *int32 -} - -func (r PersonAPIGetAllBusinessDepartmentsRequest) Skip(skip int32) PersonAPIGetAllBusinessDepartmentsRequest { - r.skip = &skip - return r -} - -func (r PersonAPIGetAllBusinessDepartmentsRequest) Limit(limit int32) PersonAPIGetAllBusinessDepartmentsRequest { - r.limit = &limit - return r -} - -func (r PersonAPIGetAllBusinessDepartmentsRequest) Execute() ([]string, *http.Response, error) { - return r.ApiService.GetAllBusinessDepartmentsExecute(r) -} - -/* -GetAllBusinessDepartments Get all unique business departments - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return PersonAPIGetAllBusinessDepartmentsRequest -*/ -func (a *PersonAPIService) GetAllBusinessDepartments(ctx context.Context) PersonAPIGetAllBusinessDepartmentsRequest { - return PersonAPIGetAllBusinessDepartmentsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return []string -func (a *PersonAPIService) GetAllBusinessDepartmentsExecute(r PersonAPIGetAllBusinessDepartmentsRequest) ([]string, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.GetAllBusinessDepartments") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/persons/departments" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type PersonAPIGetAvailabilitiesRequest struct { ctx context.Context ApiService *PersonAPIService @@ -3683,8 +3554,6 @@ type PersonAPISearchPersonsRequest struct { ctx context.Context ApiService *PersonAPIService personSearch *PersonSearch - skip *int32 - limit *int32 } func (r PersonAPISearchPersonsRequest) PersonSearch(personSearch PersonSearch) PersonAPISearchPersonsRequest { @@ -3692,22 +3561,12 @@ func (r PersonAPISearchPersonsRequest) PersonSearch(personSearch PersonSearch) P return r } -func (r PersonAPISearchPersonsRequest) Skip(skip int32) PersonAPISearchPersonsRequest { - r.skip = &skip - return r -} - -func (r PersonAPISearchPersonsRequest) Limit(limit int32) PersonAPISearchPersonsRequest { - r.limit = &limit - return r -} - func (r PersonAPISearchPersonsRequest) Execute() (*PagedPersons, *http.Response, error) { return r.ApiService.SearchPersonsExecute(r) } /* -SearchPersons Complex search over person entities +SearchPersons Search over persons @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return PersonAPISearchPersonsRequest @@ -3739,22 +3598,7 @@ func (a *PersonAPIService) SearchPersonsExecute(r PersonAPISearchPersonsRequest) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.personSearch == nil { - return localVarReturnValue, nil, reportError("personSearch is required and must be specified") - } - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue - } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} diff --git a/api_profile.go b/api_profile.go index dd35dcf4..2f5a56bb 100644 --- a/api_profile.go +++ b/api_profile.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -583,127 +583,6 @@ func (a *ProfileAPIService) GetProfileExecute(r ProfileAPIGetProfileRequest) (*P return localVarReturnValue, localVarHTTPResponse, nil } -type ProfileAPIGetProfilesRequest struct { - ctx context.Context - ApiService *ProfileAPIService - skip *int32 - limit *int32 -} - -func (r ProfileAPIGetProfilesRequest) Skip(skip int32) ProfileAPIGetProfilesRequest { - r.skip = &skip - return r -} - -func (r ProfileAPIGetProfilesRequest) Limit(limit int32) ProfileAPIGetProfilesRequest { - r.limit = &limit - return r -} - -func (r ProfileAPIGetProfilesRequest) Execute() (*PagedProfiles, *http.Response, error) { - return r.ApiService.GetProfilesExecute(r) -} - -/* -GetProfiles Get all Profiles - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ProfileAPIGetProfilesRequest -*/ -func (a *ProfileAPIService) GetProfiles(ctx context.Context) ProfileAPIGetProfilesRequest { - return ProfileAPIGetProfilesRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return PagedProfiles -func (a *ProfileAPIService) GetProfilesExecute(r ProfileAPIGetProfilesRequest) (*PagedProfiles, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PagedProfiles - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfileAPIService.GetProfiles") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/profiles" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type ProfileAPIUpdateProfileRequest struct { ctx context.Context ApiService *ProfileAPIService diff --git a/api_profiles.go b/api_profiles.go new file mode 100644 index 00000000..5813de0c --- /dev/null +++ b/api_profiles.go @@ -0,0 +1,136 @@ +/* +YASM (Yet Another Skill Management) API + +This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. + +API version: 1.17.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// ProfilesAPIService ProfilesAPI service +type ProfilesAPIService service + +type ProfilesAPISearchProfilesRequest struct { + ctx context.Context + ApiService *ProfilesAPIService + search *Search +} + +func (r ProfilesAPISearchProfilesRequest) Search(search Search) ProfilesAPISearchProfilesRequest { + r.search = &search + return r +} + +func (r ProfilesAPISearchProfilesRequest) Execute() (*PagedProfiles, *http.Response, error) { + return r.ApiService.SearchProfilesExecute(r) +} + +/* +SearchProfiles Search over profiles + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ProfilesAPISearchProfilesRequest +*/ +func (a *ProfilesAPIService) SearchProfiles(ctx context.Context) ProfilesAPISearchProfilesRequest { + return ProfilesAPISearchProfilesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PagedProfiles +func (a *ProfilesAPIService) SearchProfilesExecute(r ProfilesAPISearchProfilesRequest) (*PagedProfiles, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PagedProfiles + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.SearchProfiles") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/profiles/search" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.search + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_project.go b/api_project.go index a3571257..98f0e545 100644 --- a/api_project.go +++ b/api_project.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -373,10 +373,16 @@ func (a *ProjectAPIService) AddSkillConfirmationExecute(r ProjectAPIAddSkillConf type ProjectAPICreateProjectRequest struct { ctx context.Context ApiService *ProjectAPIService - organizationId string + organizationId *string project *Project } +// The ID of the organization +func (r ProjectAPICreateProjectRequest) OrganizationId(organizationId string) ProjectAPICreateProjectRequest { + r.organizationId = &organizationId + return r +} + func (r ProjectAPICreateProjectRequest) Project(project Project) ProjectAPICreateProjectRequest { r.project = &project return r @@ -390,14 +396,12 @@ func (r ProjectAPICreateProjectRequest) Execute() (*ProjectDetails, *http.Respon CreateProject Create a Project in an Organization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId @return ProjectAPICreateProjectRequest */ -func (a *ProjectAPIService) CreateProject(ctx context.Context, organizationId string) ProjectAPICreateProjectRequest { +func (a *ProjectAPIService) CreateProject(ctx context.Context) ProjectAPICreateProjectRequest { return ProjectAPICreateProjectRequest{ ApiService: a, ctx: ctx, - organizationId: organizationId, } } @@ -416,16 +420,19 @@ func (a *ProjectAPIService) CreateProjectExecute(r ProjectAPICreateProjectReques return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/organizations/{organizationId}/projects" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) + localVarPath := localBasePath + "/projects" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.organizationId == nil { + return localVarReturnValue, nil, reportError("organizationId is required and must be specified") + } if r.project == nil { return localVarReturnValue, nil, reportError("project is required and must be specified") } + parameterAddToHeaderOrQuery(localVarQueryParams, "organizationId", r.organizationId, "") // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -708,77 +715,53 @@ func (a *ProjectAPIService) DeleteProjectParticipationExecute(r ProjectAPIDelete return localVarReturnValue, localVarHTTPResponse, nil } -type ProjectAPIGetOrganizationProjectsRequest struct { +type ProjectAPIGetProjectRequest struct { ctx context.Context ApiService *ProjectAPIService - organizationId string - skip *int32 - limit *int32 -} - -func (r ProjectAPIGetOrganizationProjectsRequest) Skip(skip int32) ProjectAPIGetOrganizationProjectsRequest { - r.skip = &skip - return r -} - -func (r ProjectAPIGetOrganizationProjectsRequest) Limit(limit int32) ProjectAPIGetOrganizationProjectsRequest { - r.limit = &limit - return r + projectId string } -func (r ProjectAPIGetOrganizationProjectsRequest) Execute() (*PagedProjects, *http.Response, error) { - return r.ApiService.GetOrganizationProjectsExecute(r) +func (r ProjectAPIGetProjectRequest) Execute() (*ProjectDetails, *http.Response, error) { + return r.ApiService.GetProjectExecute(r) } /* -GetOrganizationProjects Get a list of all Projects for an Organization +GetProject Get details about a Project @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId - @return ProjectAPIGetOrganizationProjectsRequest + @param projectId + @return ProjectAPIGetProjectRequest */ -func (a *ProjectAPIService) GetOrganizationProjects(ctx context.Context, organizationId string) ProjectAPIGetOrganizationProjectsRequest { - return ProjectAPIGetOrganizationProjectsRequest{ +func (a *ProjectAPIService) GetProject(ctx context.Context, projectId string) ProjectAPIGetProjectRequest { + return ProjectAPIGetProjectRequest{ ApiService: a, ctx: ctx, - organizationId: organizationId, + projectId: projectId, } } // Execute executes the request -// @return PagedProjects -func (a *ProjectAPIService) GetOrganizationProjectsExecute(r ProjectAPIGetOrganizationProjectsRequest) (*PagedProjects, *http.Response, error) { +// @return ProjectDetails +func (a *ProjectAPIService) GetProjectExecute(r ProjectAPIGetProjectRequest) (*ProjectDetails, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PagedProjects + localVarReturnValue *ProjectDetails ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProjectAPIService.GetOrganizationProjects") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProjectAPIService.GetProject") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/organizations/{organizationId}/projects" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) + localVarPath := localBasePath + "/projects/{projectId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -841,48 +824,52 @@ func (a *ProjectAPIService) GetOrganizationProjectsExecute(r ProjectAPIGetOrgani return localVarReturnValue, localVarHTTPResponse, nil } -type ProjectAPIGetProjectRequest struct { +type ProjectAPIMoveProjectRequest struct { ctx context.Context ApiService *ProjectAPIService projectId string + organizationId string } -func (r ProjectAPIGetProjectRequest) Execute() (*ProjectDetails, *http.Response, error) { - return r.ApiService.GetProjectExecute(r) +func (r ProjectAPIMoveProjectRequest) Execute() (*ProjectDetails, *http.Response, error) { + return r.ApiService.MoveProjectExecute(r) } /* -GetProject Get details about a Project +MoveProject Move a Project to an Organization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId - @return ProjectAPIGetProjectRequest + @param organizationId + @return ProjectAPIMoveProjectRequest */ -func (a *ProjectAPIService) GetProject(ctx context.Context, projectId string) ProjectAPIGetProjectRequest { - return ProjectAPIGetProjectRequest{ +func (a *ProjectAPIService) MoveProject(ctx context.Context, projectId string, organizationId string) ProjectAPIMoveProjectRequest { + return ProjectAPIMoveProjectRequest{ ApiService: a, ctx: ctx, projectId: projectId, + organizationId: organizationId, } } // Execute executes the request // @return ProjectDetails -func (a *ProjectAPIService) GetProjectExecute(r ProjectAPIGetProjectRequest) (*ProjectDetails, *http.Response, error) { +func (a *ProjectAPIService) MoveProjectExecute(r ProjectAPIMoveProjectRequest) (*ProjectDetails, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile localVarReturnValue *ProjectDetails ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProjectAPIService.GetProject") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProjectAPIService.MoveProject") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/projects/{projectId}" + localVarPath := localBasePath + "/projects/{projectId}/organizations/{organizationId}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1293,8 +1280,6 @@ type ProjectAPISearchProjectParticipationsRequest struct { ctx context.Context ApiService *ProjectAPIService projectParticipationSearch *ProjectParticipationSearch - skip *int32 - limit *int32 } func (r ProjectAPISearchProjectParticipationsRequest) ProjectParticipationSearch(projectParticipationSearch ProjectParticipationSearch) ProjectAPISearchProjectParticipationsRequest { @@ -1302,22 +1287,12 @@ func (r ProjectAPISearchProjectParticipationsRequest) ProjectParticipationSearch return r } -func (r ProjectAPISearchProjectParticipationsRequest) Skip(skip int32) ProjectAPISearchProjectParticipationsRequest { - r.skip = &skip - return r -} - -func (r ProjectAPISearchProjectParticipationsRequest) Limit(limit int32) ProjectAPISearchProjectParticipationsRequest { - r.limit = &limit - return r -} - func (r ProjectAPISearchProjectParticipationsRequest) Execute() (*PagedProjectParticipation, *http.Response, error) { return r.ApiService.SearchProjectParticipationsExecute(r) } /* -SearchProjectParticipations Complex search over project entities +SearchProjectParticipations Search over project participations @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ProjectAPISearchProjectParticipationsRequest @@ -1349,22 +1324,7 @@ func (a *ProjectAPIService) SearchProjectParticipationsExecute(r ProjectAPISearc localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.projectParticipationSearch == nil { - return localVarReturnValue, nil, reportError("projectParticipationSearch is required and must be specified") - } - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue - } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -1433,8 +1393,6 @@ type ProjectAPISearchProjectsRequest struct { ctx context.Context ApiService *ProjectAPIService projectSearch *ProjectSearch - skip *int32 - limit *int32 } func (r ProjectAPISearchProjectsRequest) ProjectSearch(projectSearch ProjectSearch) ProjectAPISearchProjectsRequest { @@ -1442,16 +1400,6 @@ func (r ProjectAPISearchProjectsRequest) ProjectSearch(projectSearch ProjectSear return r } -func (r ProjectAPISearchProjectsRequest) Skip(skip int32) ProjectAPISearchProjectsRequest { - r.skip = &skip - return r -} - -func (r ProjectAPISearchProjectsRequest) Limit(limit int32) ProjectAPISearchProjectsRequest { - r.limit = &limit - return r -} - func (r ProjectAPISearchProjectsRequest) Execute() (*PagedProjects, *http.Response, error) { return r.ApiService.SearchProjectsExecute(r) } @@ -1489,22 +1437,7 @@ func (a *ProjectAPIService) SearchProjectsExecute(r ProjectAPISearchProjectsRequ localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.projectSearch == nil { - return localVarReturnValue, nil, reportError("projectSearch is required and must be specified") - } - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue - } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -1689,119 +1622,6 @@ func (a *ProjectAPIService) UpdateProjectExecute(r ProjectAPIUpdateProjectReques return localVarReturnValue, localVarHTTPResponse, nil } -type ProjectAPIUpdateProjectOrganizationRequest struct { - ctx context.Context - ApiService *ProjectAPIService - organizationId string - projectId string -} - -func (r ProjectAPIUpdateProjectOrganizationRequest) Execute() (*ProjectDetails, *http.Response, error) { - return r.ApiService.UpdateProjectOrganizationExecute(r) -} - -/* -UpdateProjectOrganization project is now point to the new organization - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organizationId - @param projectId - @return ProjectAPIUpdateProjectOrganizationRequest -*/ -func (a *ProjectAPIService) UpdateProjectOrganization(ctx context.Context, organizationId string, projectId string) ProjectAPIUpdateProjectOrganizationRequest { - return ProjectAPIUpdateProjectOrganizationRequest{ - ApiService: a, - ctx: ctx, - organizationId: organizationId, - projectId: projectId, - } -} - -// Execute executes the request -// @return ProjectDetails -func (a *ProjectAPIService) UpdateProjectOrganizationExecute(r ProjectAPIUpdateProjectOrganizationRequest) (*ProjectDetails, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProjectDetails - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProjectAPIService.UpdateProjectOrganization") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/organizations/{organizationId}/projects/{projectId}" - localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type ProjectAPIUpdateProjectParticipationRequest struct { ctx context.Context ApiService *ProjectAPIService diff --git a/api_project_participation.go b/api_project_participation.go index 09d63a01..034e4af5 100644 --- a/api_project_participation.go +++ b/api_project_participation.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_search.go b/api_search.go index 435d572e..7ecf9351 100644 --- a/api_search.go +++ b/api_search.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,86 +16,66 @@ import ( "io" "net/http" "net/url" - "strings" ) // SearchAPIService SearchAPI service type SearchAPIService service -type SearchAPISearchAllRequest struct { +type SearchAPISearchRequest struct { ctx context.Context ApiService *SearchAPIService - text string - skip *int32 - limit *int32 + search *Search } -func (r SearchAPISearchAllRequest) Skip(skip int32) SearchAPISearchAllRequest { - r.skip = &skip +func (r SearchAPISearchRequest) Search(search Search) SearchAPISearchRequest { + r.search = &search return r } -func (r SearchAPISearchAllRequest) Limit(limit int32) SearchAPISearchAllRequest { - r.limit = &limit - return r -} - -func (r SearchAPISearchAllRequest) Execute() (*SearchResult, *http.Response, error) { - return r.ApiService.SearchAllExecute(r) +func (r SearchAPISearchRequest) Execute() (*SearchResult, *http.Response, error) { + return r.ApiService.SearchExecute(r) } /* -SearchAll Fulltext search on all kinds of objects +Search Fulltext search on all kinds of objects @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param text - @return SearchAPISearchAllRequest + @return SearchAPISearchRequest */ -func (a *SearchAPIService) SearchAll(ctx context.Context, text string) SearchAPISearchAllRequest { - return SearchAPISearchAllRequest{ +func (a *SearchAPIService) Search(ctx context.Context) SearchAPISearchRequest { + return SearchAPISearchRequest{ ApiService: a, ctx: ctx, - text: text, } } // Execute executes the request // @return SearchResult -func (a *SearchAPIService) SearchAllExecute(r SearchAPISearchAllRequest) (*SearchResult, *http.Response, error) { +func (a *SearchAPIService) SearchExecute(r SearchAPISearchRequest) (*SearchResult, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile localVarReturnValue *SearchResult ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SearchAPIService.SearchAll") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SearchAPIService.Search") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/search/all/{text}" - localVarPath = strings.Replace(localVarPath, "{"+"text"+"}", url.PathEscape(parameterValueToString(r.text, "text")), -1) + localVarPath := localBasePath + "/search" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue + if r.search == nil { + return localVarReturnValue, nil, reportError("search is required and must be specified") } + // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -111,6 +91,8 @@ func (a *SearchAPIService) SearchAllExecute(r SearchAPISearchAllRequest) (*Searc if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.search req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_skill.go b/api_skill.go index f54fee9a..8bfb0864 100644 --- a/api_skill.go +++ b/api_skill.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -1541,255 +1541,61 @@ func (a *SkillAPIService) GetSkillExecute(r SkillAPIGetSkillRequest) (*SkillDeta return localVarReturnValue, localVarHTTPResponse, nil } -type SkillAPIGetSkillParentsRequest struct { +type SkillAPIRemoveSkillConfirmationRequest struct { ctx context.Context ApiService *SkillAPIService + projectParticipationId string skillId string - skip *int32 - limit *int32 -} - -func (r SkillAPIGetSkillParentsRequest) Skip(skip int32) SkillAPIGetSkillParentsRequest { - r.skip = &skip - return r -} - -func (r SkillAPIGetSkillParentsRequest) Limit(limit int32) SkillAPIGetSkillParentsRequest { - r.limit = &limit - return r + confirmingPersonId string } -func (r SkillAPIGetSkillParentsRequest) Execute() (*PagedSkills, *http.Response, error) { - return r.ApiService.GetSkillParentsExecute(r) +func (r SkillAPIRemoveSkillConfirmationRequest) Execute() (*ProjectParticipationDetails, *http.Response, error) { + return r.ApiService.RemoveSkillConfirmationExecute(r) } /* -GetSkillParents Get ghe list of parents for a skill +RemoveSkillConfirmation Remove a confirmation @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectParticipationId @param skillId - @return SkillAPIGetSkillParentsRequest + @param confirmingPersonId + @return SkillAPIRemoveSkillConfirmationRequest */ -func (a *SkillAPIService) GetSkillParents(ctx context.Context, skillId string) SkillAPIGetSkillParentsRequest { - return SkillAPIGetSkillParentsRequest{ +func (a *SkillAPIService) RemoveSkillConfirmation(ctx context.Context, projectParticipationId string, skillId string, confirmingPersonId string) SkillAPIRemoveSkillConfirmationRequest { + return SkillAPIRemoveSkillConfirmationRequest{ ApiService: a, ctx: ctx, + projectParticipationId: projectParticipationId, skillId: skillId, + confirmingPersonId: confirmingPersonId, } } // Execute executes the request -// @return PagedSkills -func (a *SkillAPIService) GetSkillParentsExecute(r SkillAPIGetSkillParentsRequest) (*PagedSkills, *http.Response, error) { +// @return ProjectParticipationDetails +func (a *SkillAPIService) RemoveSkillConfirmationExecute(r SkillAPIRemoveSkillConfirmationRequest) (*ProjectParticipationDetails, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PagedSkills + localVarReturnValue *ProjectParticipationDetails ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkillAPIService.GetSkillParents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkillAPIService.RemoveSkillConfirmation") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/skills/{skillId}/parents" + localVarPath := localBasePath + "/project-participations/{projectParticipationId}/skills/{skillId}/confirmation/{confirmingPersonId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectParticipationId"+"}", url.PathEscape(parameterValueToString(r.projectParticipationId, "projectParticipationId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"skillId"+"}", url.PathEscape(parameterValueToString(r.skillId, "skillId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"confirmingPersonId"+"}", url.PathEscape(parameterValueToString(r.confirmingPersonId, "confirmingPersonId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type SkillAPIGetSkillsRequest struct { - ctx context.Context - ApiService *SkillAPIService - skip *int32 - limit *int32 - term *string - types *string - suggestions *string - linkable *bool -} - -func (r SkillAPIGetSkillsRequest) Skip(skip int32) SkillAPIGetSkillsRequest { - r.skip = &skip - return r -} - -func (r SkillAPIGetSkillsRequest) Limit(limit int32) SkillAPIGetSkillsRequest { - r.limit = &limit - return r -} - -// Optionally search via search term -func (r SkillAPIGetSkillsRequest) Term(term string) SkillAPIGetSkillsRequest { - r.term = &term - return r -} - -// Gives you either all skills, only the root kills -func (r SkillAPIGetSkillsRequest) Types(types string) SkillAPIGetSkillsRequest { - r.types = &types - return r -} - -// Optionally filter skills based on suggestion -func (r SkillAPIGetSkillsRequest) Suggestions(suggestions string) SkillAPIGetSkillsRequest { - r.suggestions = &suggestions - return r -} - -// Optionally filter skills based on linkable -func (r SkillAPIGetSkillsRequest) Linkable(linkable bool) SkillAPIGetSkillsRequest { - r.linkable = &linkable - return r -} - -func (r SkillAPIGetSkillsRequest) Execute() (*PagedSkills, *http.Response, error) { - return r.ApiService.GetSkillsExecute(r) -} - -/* -GetSkills Get a list of all skills, optionally only root - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return SkillAPIGetSkillsRequest -*/ -func (a *SkillAPIService) GetSkills(ctx context.Context) SkillAPIGetSkillsRequest { - return SkillAPIGetSkillsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return PagedSkills -func (a *SkillAPIService) GetSkillsExecute(r SkillAPIGetSkillsRequest) (*PagedSkills, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PagedSkills - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkillAPIService.GetSkills") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/skills" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "") - } else { - var defaultValue int32 = 0 - r.skip = &defaultValue - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } else { - var defaultValue int32 = 20 - r.limit = &defaultValue - } - if r.term != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "term", r.term, "") - } else { - var defaultValue string = "" - r.term = &defaultValue - } - if r.types != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "types", r.types, "") - } else { - var defaultValue string = "all" - r.types = &defaultValue - } - if r.suggestions != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "suggestions", r.suggestions, "") - } else { - var defaultValue string = "all" - r.suggestions = &defaultValue - } - if r.linkable != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "linkable", r.linkable, "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1852,56 +1658,52 @@ func (a *SkillAPIService) GetSkillsExecute(r SkillAPIGetSkillsRequest) (*PagedSk return localVarReturnValue, localVarHTTPResponse, nil } -type SkillAPIRemoveSkillConfirmationRequest struct { +type SkillAPIRemoveSkillFromParentSkillRequest struct { ctx context.Context ApiService *SkillAPIService - projectParticipationId string skillId string - confirmingPersonId string + parentSkillId string } -func (r SkillAPIRemoveSkillConfirmationRequest) Execute() (*ProjectParticipationDetails, *http.Response, error) { - return r.ApiService.RemoveSkillConfirmationExecute(r) +func (r SkillAPIRemoveSkillFromParentSkillRequest) Execute() (*SkillDetails, *http.Response, error) { + return r.ApiService.RemoveSkillFromParentSkillExecute(r) } /* -RemoveSkillConfirmation Remove a confirmation +RemoveSkillFromParentSkill Detaches a Skill from parent Skill, return the parent Skill @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectParticipationId @param skillId - @param confirmingPersonId - @return SkillAPIRemoveSkillConfirmationRequest + @param parentSkillId + @return SkillAPIRemoveSkillFromParentSkillRequest */ -func (a *SkillAPIService) RemoveSkillConfirmation(ctx context.Context, projectParticipationId string, skillId string, confirmingPersonId string) SkillAPIRemoveSkillConfirmationRequest { - return SkillAPIRemoveSkillConfirmationRequest{ +func (a *SkillAPIService) RemoveSkillFromParentSkill(ctx context.Context, skillId string, parentSkillId string) SkillAPIRemoveSkillFromParentSkillRequest { + return SkillAPIRemoveSkillFromParentSkillRequest{ ApiService: a, ctx: ctx, - projectParticipationId: projectParticipationId, skillId: skillId, - confirmingPersonId: confirmingPersonId, + parentSkillId: parentSkillId, } } // Execute executes the request -// @return ProjectParticipationDetails -func (a *SkillAPIService) RemoveSkillConfirmationExecute(r SkillAPIRemoveSkillConfirmationRequest) (*ProjectParticipationDetails, *http.Response, error) { +// @return SkillDetails +func (a *SkillAPIService) RemoveSkillFromParentSkillExecute(r SkillAPIRemoveSkillFromParentSkillRequest) (*SkillDetails, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ProjectParticipationDetails + localVarReturnValue *SkillDetails ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkillAPIService.RemoveSkillConfirmation") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkillAPIService.RemoveSkillFromParentSkill") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/project-participations/{projectParticipationId}/skills/{skillId}/confirmation/{confirmingPersonId}" - localVarPath = strings.Replace(localVarPath, "{"+"projectParticipationId"+"}", url.PathEscape(parameterValueToString(r.projectParticipationId, "projectParticipationId")), -1) + localVarPath := localBasePath + "/skills/{skillId}/parents/{parentSkillId}" localVarPath = strings.Replace(localVarPath, "{"+"skillId"+"}", url.PathEscape(parameterValueToString(r.skillId, "skillId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"confirmingPersonId"+"}", url.PathEscape(parameterValueToString(r.confirmingPersonId, "confirmingPersonId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"parentSkillId"+"}", url.PathEscape(parameterValueToString(r.parentSkillId, "parentSkillId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1969,59 +1771,57 @@ func (a *SkillAPIService) RemoveSkillConfirmationExecute(r SkillAPIRemoveSkillCo return localVarReturnValue, localVarHTTPResponse, nil } -type SkillAPIRemoveSkillFromParentSkillRequest struct { +type SkillAPISearchSkillsRequest struct { ctx context.Context ApiService *SkillAPIService - skillId string - parentSkillId string + skillSearch *SkillSearch } -func (r SkillAPIRemoveSkillFromParentSkillRequest) Execute() (*SkillDetails, *http.Response, error) { - return r.ApiService.RemoveSkillFromParentSkillExecute(r) +func (r SkillAPISearchSkillsRequest) SkillSearch(skillSearch SkillSearch) SkillAPISearchSkillsRequest { + r.skillSearch = &skillSearch + return r +} + +func (r SkillAPISearchSkillsRequest) Execute() (*PagedSkills, *http.Response, error) { + return r.ApiService.SearchSkillsExecute(r) } /* -RemoveSkillFromParentSkill Detaches a Skill from parent Skill, return the parent Skill +SearchSkills Search over skills @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skillId - @param parentSkillId - @return SkillAPIRemoveSkillFromParentSkillRequest + @return SkillAPISearchSkillsRequest */ -func (a *SkillAPIService) RemoveSkillFromParentSkill(ctx context.Context, skillId string, parentSkillId string) SkillAPIRemoveSkillFromParentSkillRequest { - return SkillAPIRemoveSkillFromParentSkillRequest{ +func (a *SkillAPIService) SearchSkills(ctx context.Context) SkillAPISearchSkillsRequest { + return SkillAPISearchSkillsRequest{ ApiService: a, ctx: ctx, - skillId: skillId, - parentSkillId: parentSkillId, } } // Execute executes the request -// @return SkillDetails -func (a *SkillAPIService) RemoveSkillFromParentSkillExecute(r SkillAPIRemoveSkillFromParentSkillRequest) (*SkillDetails, *http.Response, error) { +// @return PagedSkills +func (a *SkillAPIService) SearchSkillsExecute(r SkillAPISearchSkillsRequest) (*PagedSkills, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SkillDetails + localVarReturnValue *PagedSkills ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkillAPIService.RemoveSkillFromParentSkill") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkillAPIService.SearchSkills") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/skills/{skillId}/parents/{parentSkillId}" - localVarPath = strings.Replace(localVarPath, "{"+"skillId"+"}", url.PathEscape(parameterValueToString(r.skillId, "skillId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"parentSkillId"+"}", url.PathEscape(parameterValueToString(r.parentSkillId, "parentSkillId")), -1) + localVarPath := localBasePath + "/skills/search" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -2037,6 +1837,8 @@ func (a *SkillAPIService) RemoveSkillFromParentSkillExecute(r SkillAPIRemoveSkil if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.skillSearch req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_status.go b/api_status.go index 84be652b..a6cbc610 100644 --- a/api_status.go +++ b/api_status.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_templates.go b/api_templates.go index cf5876ab..5023bca9 100644 --- a/api_templates.go +++ b/api_templates.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/client.go b/client.go index 42f9524e..49979ca2 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -41,7 +41,7 @@ var ( queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) ) -// APIClient manages communication with the YASM (Yet Another Skill Management) API API v1.16.5 +// APIClient manages communication with the YASM (Yet Another Skill Management) API API v1.17.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -53,20 +53,30 @@ type APIClient struct { CertificationAPI *CertificationAPIService + CountriesAPI *CountriesAPIService + CountryAPI *CountryAPIService + IndustriesAPI *IndustriesAPIService + IndustryAPI *IndustryAPIService LanguageAPI *LanguageAPIService + LanguagesAPI *LanguagesAPIService + OfficeAPI *OfficeAPIService + OfficesAPI *OfficesAPIService + OrganizationAPI *OrganizationAPIService PersonAPI *PersonAPIService ProfileAPI *ProfileAPIService + ProfilesAPI *ProfilesAPIService + ProjectAPI *ProjectAPIService ProjectParticipationAPI *ProjectParticipationAPIService @@ -98,13 +108,18 @@ func NewAPIClient(cfg *Configuration) *APIClient { // API Services c.AvailabilityAPI = (*AvailabilityAPIService)(&c.common) c.CertificationAPI = (*CertificationAPIService)(&c.common) + c.CountriesAPI = (*CountriesAPIService)(&c.common) c.CountryAPI = (*CountryAPIService)(&c.common) + c.IndustriesAPI = (*IndustriesAPIService)(&c.common) c.IndustryAPI = (*IndustryAPIService)(&c.common) c.LanguageAPI = (*LanguageAPIService)(&c.common) + c.LanguagesAPI = (*LanguagesAPIService)(&c.common) c.OfficeAPI = (*OfficeAPIService)(&c.common) + c.OfficesAPI = (*OfficesAPIService)(&c.common) c.OrganizationAPI = (*OrganizationAPIService)(&c.common) c.PersonAPI = (*PersonAPIService)(&c.common) c.ProfileAPI = (*ProfileAPIService)(&c.common) + c.ProfilesAPI = (*ProfilesAPIService)(&c.common) c.ProjectAPI = (*ProjectAPIService)(&c.common) c.ProjectParticipationAPI = (*ProjectParticipationAPIService)(&c.common) c.SearchAPI = (*SearchAPIService)(&c.common) diff --git a/configuration.go b/configuration.go index a72d7ed4..0543a3c2 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/docs/CertificationAPI.md b/docs/CertificationAPI.md index 3d416c76..94fcd261 100644 --- a/docs/CertificationAPI.md +++ b/docs/CertificationAPI.md @@ -6,15 +6,13 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**AddPersonCertification**](CertificationAPI.md#AddPersonCertification) | **Post** /persons/{personId}/certifications/{certificationId} | Add Certification to a Person [**AddSkillToCertification**](CertificationAPI.md#AddSkillToCertification) | **Post** /certifications/{certificationId}/skills/{skillId} | -[**CreateCertification**](CertificationAPI.md#CreateCertification) | **Post** /organizations/{organizationId}/certifications | Create a Certification in an Organization +[**CreateCertification**](CertificationAPI.md#CreateCertification) | **Post** /certifications | Create a Certification in an Organization [**DeleteCertification**](CertificationAPI.md#DeleteCertification) | **Delete** /certifications/{certificationId} | Delete a Certification [**DeletePersonCertification**](CertificationAPI.md#DeletePersonCertification) | **Delete** /persons/{personId}/certifications/{certificationId} | Remove an Interest to a Person [**DeleteSkillFromCertification**](CertificationAPI.md#DeleteSkillFromCertification) | **Delete** /certifications/{certificationId}/skills/{skillId} | [**GetCertification**](CertificationAPI.md#GetCertification) | **Get** /certifications/{certificationId} | Get details about a Certification -[**GetCertifications**](CertificationAPI.md#GetCertifications) | **Get** /certifications | Get a list of all Certifications independent of the Organization -[**GetCertificationsForOrganization**](CertificationAPI.md#GetCertificationsForOrganization) | **Get** /organizations/{organizationId}/certifications | Get a list of all certifications for a organization -[**MoveCertification**](CertificationAPI.md#MoveCertification) | **Put** /organizations/{organizationId}/certificates/{certificationId} | Move a Certification to an Organization -[**SearchCertifications**](CertificationAPI.md#SearchCertifications) | **Post** /certifications/search | Complex search over certification entities +[**MoveCertification**](CertificationAPI.md#MoveCertification) | **Put** /certifications/{certificationId}/organizations/{organizationId} | Move a Certification to an Organization +[**SearchCertifications**](CertificationAPI.md#SearchCertifications) | **Post** /certifications/search | Search over certifications [**UpdateCertification**](CertificationAPI.md#UpdateCertification) | **Put** /certifications/{certificationId} | Update a Certification [**UpdatePersonCertification**](CertificationAPI.md#UpdatePersonCertification) | **Put** /persons/{personId}/certifications/{certificationId} | Update a Certification of a Person [**UpdateSkillInCertification**](CertificationAPI.md#UpdateSkillInCertification) | **Put** /certifications/{certificationId}/skills/{skillId} | @@ -172,7 +170,7 @@ Name | Type | Description | Notes ## CreateCertification -> CertificationDetails CreateCertification(ctx, organizationId).Certification(certification).Execute() +> CertificationDetails CreateCertification(ctx).OrganizationId(organizationId).Certification(certification).Execute() Create a Certification in an Organization @@ -189,12 +187,12 @@ import ( ) func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID of the organization certification := *openapiclient.NewCertification(false, "Id_example", "Name_example") // Certification | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CertificationAPI.CreateCertification(context.Background(), organizationId).Certification(certification).Execute() + resp, r, err := apiClient.CertificationAPI.CreateCertification(context.Background()).OrganizationId(organizationId).Certification(certification).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CertificationAPI.CreateCertification``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -207,10 +205,6 @@ func main() { ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | ### Other Parameters @@ -219,7 +213,7 @@ Other parameters are passed through a pointer to a apiCreateCertificationRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **organizationId** | **string** | The ID of the organization | **certification** | [**Certification**](Certification.md) | | ### Return type @@ -518,149 +512,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetCertifications - -> PagedCertifications GetCertifications(ctx).Skip(skip).Limit(limit).Term(term).Execute() - -Get a list of all Certifications independent of the Organization - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/prodyna-yasm/yasm-api-go" -) - -func main() { - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) - term := "term_example" // string | Optionally search via search term (optional) (default to "") - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CertificationAPI.GetCertifications(context.Background()).Skip(skip).Limit(limit).Term(term).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationAPI.GetCertifications``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCertifications`: PagedCertifications - fmt.Fprintf(os.Stdout, "Response from `CertificationAPI.GetCertifications`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetCertificationsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] - **term** | **string** | Optionally search via search term | [default to ""] - -### Return type - -[**PagedCertifications**](PagedCertifications.md) - -### Authorization - -[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) - -### 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) - - -## GetCertificationsForOrganization - -> PagedCertifications GetCertificationsForOrganization(ctx, organizationId).Skip(skip).Limit(limit).Execute() - -Get a list of all certifications for a organization - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/prodyna-yasm/yasm-api-go" -) - -func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CertificationAPI.GetCertificationsForOrganization(context.Background(), organizationId).Skip(skip).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationAPI.GetCertificationsForOrganization``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCertificationsForOrganization`: PagedCertifications - fmt.Fprintf(os.Stdout, "Response from `CertificationAPI.GetCertificationsForOrganization`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetCertificationsForOrganizationRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] - -### Return type - -[**PagedCertifications**](PagedCertifications.md) - -### Authorization - -[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) - -### 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) - - ## MoveCertification -> CertificationDetails MoveCertification(ctx, organizationId, certificationId).Execute() +> CertificationDetails MoveCertification(ctx, certificationId, organizationId).Execute() Move a Certification to an Organization @@ -677,12 +531,12 @@ import ( ) func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | certificationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CertificationAPI.MoveCertification(context.Background(), organizationId, certificationId).Execute() + resp, r, err := apiClient.CertificationAPI.MoveCertification(context.Background(), certificationId, organizationId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CertificationAPI.MoveCertification``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -698,8 +552,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | **certificationId** | **string** | | +**organizationId** | **string** | | ### Other Parameters @@ -731,9 +585,9 @@ Name | Type | Description | Notes ## SearchCertifications -> PagedCertifications SearchCertifications(ctx).CertificationSearch(certificationSearch).Skip(skip).Limit(limit).Execute() +> PagedCertifications SearchCertifications(ctx).CertificationSearch(certificationSearch).Execute() -Complex search over certification entities +Search over certifications ### Example @@ -748,13 +602,11 @@ import ( ) func main() { - certificationSearch := *openapiclient.NewCertificationSearch() // CertificationSearch | - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) + certificationSearch := *openapiclient.NewCertificationSearch(int32(123), int32(123)) // CertificationSearch | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CertificationAPI.SearchCertifications(context.Background()).CertificationSearch(certificationSearch).Skip(skip).Limit(limit).Execute() + resp, r, err := apiClient.CertificationAPI.SearchCertifications(context.Background()).CertificationSearch(certificationSearch).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CertificationAPI.SearchCertifications``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -776,8 +628,6 @@ Other parameters are passed through a pointer to a apiSearchCertificationsReques Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **certificationSearch** | [**CertificationSearch**](CertificationSearch.md) | | - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] ### Return type diff --git a/docs/CountriesAPI.md b/docs/CountriesAPI.md new file mode 100644 index 00000000..9ff33487 --- /dev/null +++ b/docs/CountriesAPI.md @@ -0,0 +1,73 @@ +# \CountriesAPI + +All URIs are relative to *https://yasm.prodyna.com:443/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**SearchCountries**](CountriesAPI.md#SearchCountries) | **Post** /countries/search | Search over countries + + + +## SearchCountries + +> PagedCountries SearchCountries(ctx).Search(search).Execute() + +Search over countries + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/prodyna-yasm/yasm-api-go" +) + +func main() { + search := *openapiclient.NewSearch(int32(123), int32(123)) // Search | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CountriesAPI.SearchCountries(context.Background()).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CountriesAPI.SearchCountries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchCountries`: PagedCountries + fmt.Fprintf(os.Stdout, "Response from `CountriesAPI.SearchCountries`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSearchCountriesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **search** | [**Search**](Search.md) | | + +### Return type + +[**PagedCountries**](PagedCountries.md) + +### Authorization + +[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) + +### 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) + diff --git a/docs/CountryAPI.md b/docs/CountryAPI.md index bc88d52f..d171f8e5 100644 --- a/docs/CountryAPI.md +++ b/docs/CountryAPI.md @@ -7,7 +7,6 @@ Method | HTTP request | Description [**AddLanguageToCountry**](CountryAPI.md#AddLanguageToCountry) | **Post** /countries/{countryId}/languages/{languageId} | Assign a language to a country [**CreateCountry**](CountryAPI.md#CreateCountry) | **Post** /countries | Create a new Country [**DeleteCountry**](CountryAPI.md#DeleteCountry) | **Delete** /countries/{countryId} | Delete a Country -[**GetCountries**](CountryAPI.md#GetCountries) | **Get** /countries | Get all Countries [**GetCountry**](CountryAPI.md#GetCountry) | **Get** /countries/{countryId} | Get details about a Country [**RemoveLanguageFromCountry**](CountryAPI.md#RemoveLanguageFromCountry) | **Delete** /countries/{countryId}/languages/{languageId} | Assign a language to a country [**UpdateCountry**](CountryAPI.md#UpdateCountry) | **Put** /countries/{countryId} | Update a Country @@ -217,72 +216,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetCountries - -> PagedCountries GetCountries(ctx).Skip(skip).Limit(limit).Execute() - -Get all Countries - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/prodyna-yasm/yasm-api-go" -) - -func main() { - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CountryAPI.GetCountries(context.Background()).Skip(skip).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CountryAPI.GetCountries``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCountries`: PagedCountries - fmt.Fprintf(os.Stdout, "Response from `CountryAPI.GetCountries`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetCountriesRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] - -### Return type - -[**PagedCountries**](PagedCountries.md) - -### Authorization - -[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) - -### 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) - - ## GetCountry > CountryDetails GetCountry(ctx, countryId).Execute() diff --git a/docs/IndustriesAPI.md b/docs/IndustriesAPI.md new file mode 100644 index 00000000..931d2c84 --- /dev/null +++ b/docs/IndustriesAPI.md @@ -0,0 +1,73 @@ +# \IndustriesAPI + +All URIs are relative to *https://yasm.prodyna.com:443/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**SearchIndustries**](IndustriesAPI.md#SearchIndustries) | **Post** /industries/search | Search over industries + + + +## SearchIndustries + +> PagedIndustries SearchIndustries(ctx).Search(search).Execute() + +Search over industries + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/prodyna-yasm/yasm-api-go" +) + +func main() { + search := *openapiclient.NewSearch(int32(123), int32(123)) // Search | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IndustriesAPI.SearchIndustries(context.Background()).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IndustriesAPI.SearchIndustries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchIndustries`: PagedIndustries + fmt.Fprintf(os.Stdout, "Response from `IndustriesAPI.SearchIndustries`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSearchIndustriesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **search** | [**Search**](Search.md) | | + +### Return type + +[**PagedIndustries**](PagedIndustries.md) + +### Authorization + +[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) + +### 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) + diff --git a/docs/IndustryAPI.md b/docs/IndustryAPI.md index c4d7b6b3..981607ea 100644 --- a/docs/IndustryAPI.md +++ b/docs/IndustryAPI.md @@ -8,7 +8,6 @@ Method | HTTP request | Description [**CreateIndustry**](IndustryAPI.md#CreateIndustry) | **Post** /industries | Create an Industry [**DeleteIndustry**](IndustryAPI.md#DeleteIndustry) | **Delete** /industries/{industryId} | Delete an Industry [**DetachOrganizationFromIndustry**](IndustryAPI.md#DetachOrganizationFromIndustry) | **Delete** /organizations/{organizationId}/industries/{industryId} | Remove an Organization to an Industry -[**GetIndustries**](IndustryAPI.md#GetIndustries) | **Get** /industries | Get all Industries [**GetIndustry**](IndustryAPI.md#GetIndustry) | **Get** /industries/{industryId} | Get details about an Industry [**UpdateIndustry**](IndustryAPI.md#UpdateIndustry) | **Put** /industries/{industryId} | Update an Industry @@ -288,74 +287,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetIndustries - -> PagedIndustries GetIndustries(ctx).Skip(skip).Limit(limit).Term(term).Execute() - -Get all Industries - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/prodyna-yasm/yasm-api-go" -) - -func main() { - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) - term := "term_example" // string | Optionally search via search term (optional) (default to "") - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IndustryAPI.GetIndustries(context.Background()).Skip(skip).Limit(limit).Term(term).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IndustryAPI.GetIndustries``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIndustries`: PagedIndustries - fmt.Fprintf(os.Stdout, "Response from `IndustryAPI.GetIndustries`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetIndustriesRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] - **term** | **string** | Optionally search via search term | [default to ""] - -### Return type - -[**PagedIndustries**](PagedIndustries.md) - -### Authorization - -[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) - -### 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) - - ## GetIndustry > IndustryDetails GetIndustry(ctx, industryId).Execute() diff --git a/docs/LanguageAPI.md b/docs/LanguageAPI.md index dbcc46be..8dd8e25c 100644 --- a/docs/LanguageAPI.md +++ b/docs/LanguageAPI.md @@ -9,7 +9,6 @@ Method | HTTP request | Description [**CreateLanguage**](LanguageAPI.md#CreateLanguage) | **Post** /languages | Create a new language [**DeleteLanguage**](LanguageAPI.md#DeleteLanguage) | **Delete** /languages/{languageId} | Delete a language [**GetLanguage**](LanguageAPI.md#GetLanguage) | **Get** /languages/{languageId} | Get details about a language -[**GetLanguages**](LanguageAPI.md#GetLanguages) | **Get** /languages | Get a list of Languages [**RemoveLanguageFromCountry**](LanguageAPI.md#RemoveLanguageFromCountry) | **Delete** /countries/{countryId}/languages/{languageId} | Assign a language to a country [**RemovePersonLanguage**](LanguageAPI.md#RemovePersonLanguage) | **Delete** /persons/{personId}/languages/{languageId} | Remove a language from a person [**UpdatePersonLanguage**](LanguageAPI.md#UpdatePersonLanguage) | **Put** /persons/{personId}/languages/{languageId} | Update a language of a person @@ -360,72 +359,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetLanguages - -> PagedLanguages GetLanguages(ctx).Skip(skip).Limit(limit).Execute() - -Get a list of Languages - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/prodyna-yasm/yasm-api-go" -) - -func main() { - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.LanguageAPI.GetLanguages(context.Background()).Skip(skip).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LanguageAPI.GetLanguages``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetLanguages`: PagedLanguages - fmt.Fprintf(os.Stdout, "Response from `LanguageAPI.GetLanguages`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetLanguagesRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] - -### Return type - -[**PagedLanguages**](PagedLanguages.md) - -### Authorization - -[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) - -### 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) - - ## RemoveLanguageFromCountry > CountryDetails RemoveLanguageFromCountry(ctx, countryId, languageId).Execute() diff --git a/docs/LanguagesAPI.md b/docs/LanguagesAPI.md new file mode 100644 index 00000000..97236e3e --- /dev/null +++ b/docs/LanguagesAPI.md @@ -0,0 +1,73 @@ +# \LanguagesAPI + +All URIs are relative to *https://yasm.prodyna.com:443/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**SearchLanguages**](LanguagesAPI.md#SearchLanguages) | **Post** /languages/search | Search over languages + + + +## SearchLanguages + +> PagedLanguages SearchLanguages(ctx).Search(search).Execute() + +Search over languages + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/prodyna-yasm/yasm-api-go" +) + +func main() { + search := *openapiclient.NewSearch(int32(123), int32(123)) // Search | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LanguagesAPI.SearchLanguages(context.Background()).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LanguagesAPI.SearchLanguages``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchLanguages`: PagedLanguages + fmt.Fprintf(os.Stdout, "Response from `LanguagesAPI.SearchLanguages`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSearchLanguagesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **search** | [**Search**](Search.md) | | + +### Return type + +[**PagedLanguages**](PagedLanguages.md) + +### Authorization + +[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) + +### 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) + diff --git a/docs/OfficeAPI.md b/docs/OfficeAPI.md index 4180cfd4..94708c31 100644 --- a/docs/OfficeAPI.md +++ b/docs/OfficeAPI.md @@ -5,13 +5,11 @@ All URIs are relative to *https://yasm.prodyna.com:443/api/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**AddPersonOffice**](OfficeAPI.md#AddPersonOffice) | **Post** /persons/{personId}/offices/{officeId} | Assign a person to an office -[**CreateOffice**](OfficeAPI.md#CreateOffice) | **Post** /organizations/{organizationId}/offices | Create an Office in an Organization -[**DeleteOffice**](OfficeAPI.md#DeleteOffice) | **Delete** /organizations/{organizationId}/offices/{officeId} | Delete an Office from an Organization +[**CreateOffice**](OfficeAPI.md#CreateOffice) | **Post** /offices | Create an Office in an Organization +[**DeleteOffice**](OfficeAPI.md#DeleteOffice) | **Delete** /offices/{officeId} | Delete an Office from an Organization [**DeletePersonOffice**](OfficeAPI.md#DeletePersonOffice) | **Delete** /persons/{personId}/offices/{officeId} | Delete the office from a Person -[**GetOffice**](OfficeAPI.md#GetOffice) | **Get** /organizations/{organizationId}/offices/{officeId} | Get an Office for an Organization [**GetOfficeDetails**](OfficeAPI.md#GetOfficeDetails) | **Get** /offices/{officeId} | Get details about an Office independent of Organization -[**GetOffices**](OfficeAPI.md#GetOffices) | **Get** /offices | Get a list of all Offices -[**UpdateOffice**](OfficeAPI.md#UpdateOffice) | **Put** /organizations/{organizationId}/offices/{officeId} | Update an Office for an Organization +[**UpdateOffice**](OfficeAPI.md#UpdateOffice) | **Put** /offices/{officeId} | Update an Office for an Organization @@ -88,7 +86,7 @@ Name | Type | Description | Notes ## CreateOffice -> OrganizationDetails CreateOffice(ctx, organizationId).Office(office).Execute() +> Office CreateOffice(ctx).OrganizationId(organizationId).Office(office).Execute() Create an Office in an Organization @@ -105,17 +103,17 @@ import ( ) func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID of the organization office := *openapiclient.NewOffice("Id_example", "Name_example") // Office | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OfficeAPI.CreateOffice(context.Background(), organizationId).Office(office).Execute() + resp, r, err := apiClient.OfficeAPI.CreateOffice(context.Background()).OrganizationId(organizationId).Office(office).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `OfficeAPI.CreateOffice``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateOffice`: OrganizationDetails + // response from `CreateOffice`: Office fmt.Fprintf(os.Stdout, "Response from `OfficeAPI.CreateOffice`: %v\n", resp) } ``` @@ -123,10 +121,6 @@ func main() { ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | ### Other Parameters @@ -135,12 +129,12 @@ Other parameters are passed through a pointer to a apiCreateOfficeRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **organizationId** | **string** | The ID of the organization | **office** | [**Office**](Office.md) | | ### Return type -[**OrganizationDetails**](OrganizationDetails.md) +[**Office**](Office.md) ### Authorization @@ -158,7 +152,7 @@ Name | Type | Description | Notes ## DeleteOffice -> Status DeleteOffice(ctx, organizationId, officeId).Execute() +> Status DeleteOffice(ctx, officeId).Execute() Delete an Office from an Organization @@ -175,12 +169,11 @@ import ( ) func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | officeId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OfficeAPI.DeleteOffice(context.Background(), organizationId, officeId).Execute() + resp, r, err := apiClient.OfficeAPI.DeleteOffice(context.Background(), officeId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `OfficeAPI.DeleteOffice``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -196,7 +189,6 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | **officeId** | **string** | | ### Other Parameters @@ -208,7 +200,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - ### Return type [**Status**](Status.md) @@ -298,77 +289,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetOffice - -> Office GetOffice(ctx, organizationId, officeId).Execute() - -Get an Office for an Organization - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/prodyna-yasm/yasm-api-go" -) - -func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - officeId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OfficeAPI.GetOffice(context.Background(), organizationId, officeId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OfficeAPI.GetOffice``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetOffice`: Office - fmt.Fprintf(os.Stdout, "Response from `OfficeAPI.GetOffice`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | -**officeId** | **string** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetOfficeRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - -### Return type - -[**Office**](Office.md) - -### Authorization - -[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) - -### 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) - - ## GetOfficeDetails > Office GetOfficeDetails(ctx, officeId).Execute() @@ -437,77 +357,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetOffices - -> PagedOffices GetOffices(ctx).Skip(skip).Limit(limit).OrganizationId(organizationId).Execute() - -Get a list of all Offices - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/prodyna-yasm/yasm-api-go" -) - -func main() { - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OfficeAPI.GetOffices(context.Background()).Skip(skip).Limit(limit).OrganizationId(organizationId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OfficeAPI.GetOffices``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetOffices`: PagedOffices - fmt.Fprintf(os.Stdout, "Response from `OfficeAPI.GetOffices`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetOfficesRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] - **organizationId** | **string** | | - -### Return type - -[**PagedOffices**](PagedOffices.md) - -### Authorization - -[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) - -### 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) - - ## UpdateOffice -> Office UpdateOffice(ctx, organizationId, officeId).Office(office).Execute() +> Office UpdateOffice(ctx, officeId).Office(office).Execute() Update an Office for an Organization @@ -524,13 +376,12 @@ import ( ) func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | officeId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | office := *openapiclient.NewOffice("Id_example", "Name_example") // Office | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OfficeAPI.UpdateOffice(context.Background(), organizationId, officeId).Office(office).Execute() + resp, r, err := apiClient.OfficeAPI.UpdateOffice(context.Background(), officeId).Office(office).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `OfficeAPI.UpdateOffice``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -546,7 +397,6 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | **officeId** | **string** | | ### Other Parameters @@ -557,7 +407,6 @@ Other parameters are passed through a pointer to a apiUpdateOfficeRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **office** | [**Office**](Office.md) | | ### Return type diff --git a/docs/OfficeSearch.md b/docs/OfficeSearch.md new file mode 100644 index 00000000..f3da1186 --- /dev/null +++ b/docs/OfficeSearch.md @@ -0,0 +1,56 @@ +# OfficeSearch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrganizationIds** | Pointer to **[]string** | | [optional] + +## Methods + +### NewOfficeSearch + +`func NewOfficeSearch() *OfficeSearch` + +NewOfficeSearch instantiates a new OfficeSearch object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOfficeSearchWithDefaults + +`func NewOfficeSearchWithDefaults() *OfficeSearch` + +NewOfficeSearchWithDefaults instantiates a new OfficeSearch object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrganizationIds + +`func (o *OfficeSearch) GetOrganizationIds() []string` + +GetOrganizationIds returns the OrganizationIds field if non-nil, zero value otherwise. + +### GetOrganizationIdsOk + +`func (o *OfficeSearch) GetOrganizationIdsOk() (*[]string, bool)` + +GetOrganizationIdsOk returns a tuple with the OrganizationIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationIds + +`func (o *OfficeSearch) SetOrganizationIds(v []string)` + +SetOrganizationIds sets OrganizationIds field to given value. + +### HasOrganizationIds + +`func (o *OfficeSearch) HasOrganizationIds() bool` + +HasOrganizationIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OfficesAPI.md b/docs/OfficesAPI.md new file mode 100644 index 00000000..5451dbde --- /dev/null +++ b/docs/OfficesAPI.md @@ -0,0 +1,73 @@ +# \OfficesAPI + +All URIs are relative to *https://yasm.prodyna.com:443/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**SearchOffices**](OfficesAPI.md#SearchOffices) | **Post** /offices/search | Search over offices + + + +## SearchOffices + +> PagedOffices SearchOffices(ctx).OfficeSearch(officeSearch).Execute() + +Search over offices + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/prodyna-yasm/yasm-api-go" +) + +func main() { + officeSearch := *openapiclient.NewOfficeSearch(int32(123), int32(123)) // OfficeSearch | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OfficesAPI.SearchOffices(context.Background()).OfficeSearch(officeSearch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OfficesAPI.SearchOffices``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchOffices`: PagedOffices + fmt.Fprintf(os.Stdout, "Response from `OfficesAPI.SearchOffices`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSearchOfficesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **officeSearch** | [**OfficeSearch**](OfficeSearch.md) | | + +### Return type + +[**PagedOffices**](PagedOffices.md) + +### Authorization + +[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) + +### 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) + diff --git a/docs/OrganizationAPI.md b/docs/OrganizationAPI.md index 308c1a83..71dc4c26 100644 --- a/docs/OrganizationAPI.md +++ b/docs/OrganizationAPI.md @@ -7,24 +7,18 @@ Method | HTTP request | Description [**AddExecutiveOrganizationToProject**](OrganizationAPI.md#AddExecutiveOrganizationToProject) | **Post** /projects/{projectId}/executive-organizations/{organizationId} | Add an Organization to a Project as executive organization [**AddOrganizationToParentOrganization**](OrganizationAPI.md#AddOrganizationToParentOrganization) | **Post** /organizations/{organizationId}/parents/{parentOrganizationId} | Attach an Organization to a parent Organization, returns the parent Organization [**AttachOrganizationToIndustry**](OrganizationAPI.md#AttachOrganizationToIndustry) | **Post** /organizations/{organizationId}/industries/{industryId} | Add an Organization to an Industry -[**CreateCertification**](OrganizationAPI.md#CreateCertification) | **Post** /organizations/{organizationId}/certifications | Create a Certification in an Organization -[**CreateOffice**](OrganizationAPI.md#CreateOffice) | **Post** /organizations/{organizationId}/offices | Create an Office in an Organization +[**CreateOffice**](OrganizationAPI.md#CreateOffice) | **Post** /offices | Create an Office in an Organization [**CreateOrganization**](OrganizationAPI.md#CreateOrganization) | **Post** /organizations | Create an Organization -[**CreateProject**](OrganizationAPI.md#CreateProject) | **Post** /organizations/{organizationId}/projects | Create a Project in an Organization -[**DeleteOffice**](OrganizationAPI.md#DeleteOffice) | **Delete** /organizations/{organizationId}/offices/{officeId} | Delete an Office from an Organization +[**CreateProject**](OrganizationAPI.md#CreateProject) | **Post** /projects | Create a Project in an Organization [**DeleteOrganization**](OrganizationAPI.md#DeleteOrganization) | **Delete** /organizations/{organizationId} | Delete an organization [**DetachOrganizationFromIndustry**](OrganizationAPI.md#DetachOrganizationFromIndustry) | **Delete** /organizations/{organizationId}/industries/{industryId} | Remove an Organization to an Industry -[**GetCertificationsForOrganization**](OrganizationAPI.md#GetCertificationsForOrganization) | **Get** /organizations/{organizationId}/certifications | Get a list of all certifications for a organization -[**GetOffice**](OrganizationAPI.md#GetOffice) | **Get** /organizations/{organizationId}/offices/{officeId} | Get an Office for an Organization [**GetOrganization**](OrganizationAPI.md#GetOrganization) | **Get** /organizations/{organizationId} | Get details about an Organization -[**GetOrganizationProjects**](OrganizationAPI.md#GetOrganizationProjects) | **Get** /organizations/{organizationId}/projects | Get a list of all Projects for an Organization -[**GetOrganizations**](OrganizationAPI.md#GetOrganizations) | **Get** /organizations | Get a list of all Organizations -[**MoveCertification**](OrganizationAPI.md#MoveCertification) | **Put** /organizations/{organizationId}/certificates/{certificationId} | Move a Certification to an Organization +[**MoveCertification**](OrganizationAPI.md#MoveCertification) | **Put** /certifications/{certificationId}/organizations/{organizationId} | Move a Certification to an Organization +[**MoveProject**](OrganizationAPI.md#MoveProject) | **Put** /projects/{projectId}/organizations/{organizationId} | Move a Project to an Organization [**RemoveExecutiveOrganizationFromProject**](OrganizationAPI.md#RemoveExecutiveOrganizationFromProject) | **Delete** /projects/{projectId}/executive-organizations/{organizationId} | Remove an Organization from a Project as executive organization [**RemoveOrganizationFromParentOrganization**](OrganizationAPI.md#RemoveOrganizationFromParentOrganization) | **Delete** /organizations/{organizationId}/parents/{parentOrganizationId} | Detaches an Organization from parent Organization, return the parent Organization -[**UpdateOffice**](OrganizationAPI.md#UpdateOffice) | **Put** /organizations/{organizationId}/offices/{officeId} | Update an Office for an Organization +[**SearchOrganizations**](OrganizationAPI.md#SearchOrganizations) | **Post** /organizations/search | Search over organizations [**UpdateOrganization**](OrganizationAPI.md#UpdateOrganization) | **Put** /organizations/{organizationId} | Update an Organization -[**UpdateProjectOrganization**](OrganizationAPI.md#UpdateProjectOrganization) | **Put** /organizations/{organizationId}/projects/{projectId} | project is now point to the new organization @@ -241,79 +235,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CreateCertification - -> CertificationDetails CreateCertification(ctx, organizationId).Certification(certification).Execute() - -Create a Certification in an Organization - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/prodyna-yasm/yasm-api-go" -) - -func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - certification := *openapiclient.NewCertification(false, "Id_example", "Name_example") // Certification | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrganizationAPI.CreateCertification(context.Background(), organizationId).Certification(certification).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.CreateCertification``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCertification`: CertificationDetails - fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.CreateCertification`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateCertificationRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **certification** | [**Certification**](Certification.md) | | - -### Return type - -[**CertificationDetails**](CertificationDetails.md) - -### Authorization - -[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) - -### 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) - - ## CreateOffice -> OrganizationDetails CreateOffice(ctx, organizationId).Office(office).Execute() +> Office CreateOffice(ctx).OrganizationId(organizationId).Office(office).Execute() Create an Office in an Organization @@ -330,17 +254,17 @@ import ( ) func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID of the organization office := *openapiclient.NewOffice("Id_example", "Name_example") // Office | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrganizationAPI.CreateOffice(context.Background(), organizationId).Office(office).Execute() + resp, r, err := apiClient.OrganizationAPI.CreateOffice(context.Background()).OrganizationId(organizationId).Office(office).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.CreateOffice``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateOffice`: OrganizationDetails + // response from `CreateOffice`: Office fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.CreateOffice`: %v\n", resp) } ``` @@ -348,10 +272,6 @@ func main() { ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | ### Other Parameters @@ -360,12 +280,12 @@ Other parameters are passed through a pointer to a apiCreateOfficeRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **organizationId** | **string** | The ID of the organization | **office** | [**Office**](Office.md) | | ### Return type -[**OrganizationDetails**](OrganizationDetails.md) +[**Office**](Office.md) ### Authorization @@ -447,7 +367,7 @@ Name | Type | Description | Notes ## CreateProject -> ProjectDetails CreateProject(ctx, organizationId).Project(project).Execute() +> ProjectDetails CreateProject(ctx).OrganizationId(organizationId).Project(project).Execute() Create a Project in an Organization @@ -464,12 +384,12 @@ import ( ) func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID of the organization project := *openapiclient.NewProject(false, "Id_example", "Name_example") // Project | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrganizationAPI.CreateProject(context.Background(), organizationId).Project(project).Execute() + resp, r, err := apiClient.OrganizationAPI.CreateProject(context.Background()).OrganizationId(organizationId).Project(project).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.CreateProject``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -482,10 +402,6 @@ func main() { ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | ### Other Parameters @@ -494,7 +410,7 @@ Other parameters are passed through a pointer to a apiCreateProjectRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **organizationId** | **string** | The ID of the organization | **project** | [**Project**](Project.md) | | ### Return type @@ -515,77 +431,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DeleteOffice - -> Status DeleteOffice(ctx, organizationId, officeId).Execute() - -Delete an Office from an Organization - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/prodyna-yasm/yasm-api-go" -) - -func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - officeId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrganizationAPI.DeleteOffice(context.Background(), organizationId, officeId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.DeleteOffice``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteOffice`: Status - fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.DeleteOffice`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | -**officeId** | **string** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteOfficeRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - -### Return type - -[**Status**](Status.md) - -### Authorization - -[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) - -### 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) - - ## DeleteOrganization > Status DeleteOrganization(ctx, organizationId).Execute() @@ -725,149 +570,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetCertificationsForOrganization - -> PagedCertifications GetCertificationsForOrganization(ctx, organizationId).Skip(skip).Limit(limit).Execute() - -Get a list of all certifications for a organization - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/prodyna-yasm/yasm-api-go" -) - -func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrganizationAPI.GetCertificationsForOrganization(context.Background(), organizationId).Skip(skip).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.GetCertificationsForOrganization``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCertificationsForOrganization`: PagedCertifications - fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.GetCertificationsForOrganization`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetCertificationsForOrganizationRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] - -### Return type - -[**PagedCertifications**](PagedCertifications.md) - -### Authorization - -[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) - -### 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) - - -## GetOffice - -> Office GetOffice(ctx, organizationId, officeId).Execute() - -Get an Office for an Organization - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/prodyna-yasm/yasm-api-go" -) - -func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - officeId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrganizationAPI.GetOffice(context.Background(), organizationId, officeId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.GetOffice``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetOffice`: Office - fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.GetOffice`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | -**officeId** | **string** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetOfficeRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - -### Return type - -[**Office**](Office.md) - -### Authorization - -[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) - -### 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) - - ## GetOrganization > OrganizationDetails GetOrganization(ctx, organizationId).Execute() @@ -936,11 +638,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetOrganizationProjects +## MoveCertification -> PagedProjects GetOrganizationProjects(ctx, organizationId).Skip(skip).Limit(limit).Execute() +> CertificationDetails MoveCertification(ctx, certificationId, organizationId).Execute() -Get a list of all Projects for an Organization +Move a Certification to an Organization ### Example @@ -955,19 +657,18 @@ import ( ) func main() { + certificationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrganizationAPI.GetOrganizationProjects(context.Background(), organizationId).Skip(skip).Limit(limit).Execute() + resp, r, err := apiClient.OrganizationAPI.MoveCertification(context.Background(), certificationId, organizationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.GetOrganizationProjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.MoveCertification``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetOrganizationProjects`: PagedProjects - fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.GetOrganizationProjects`: %v\n", resp) + // response from `MoveCertification`: CertificationDetails + fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.MoveCertification`: %v\n", resp) } ``` @@ -977,90 +678,22 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**certificationId** | **string** | | **organizationId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiGetOrganizationProjectsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiMoveCertificationRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] - -### Return type - -[**PagedProjects**](PagedProjects.md) - -### Authorization - -[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) - -### 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) - - -## GetOrganizations - -> PagedOrganizations GetOrganizations(ctx).Skip(skip).Limit(limit).Term(term).Execute() -Get a list of all Organizations - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/prodyna-yasm/yasm-api-go" -) - -func main() { - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) - term := "term_example" // string | Optionally search via search term (optional) (default to "") - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrganizationAPI.GetOrganizations(context.Background()).Skip(skip).Limit(limit).Term(term).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.GetOrganizations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetOrganizations`: PagedOrganizations - fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.GetOrganizations`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetOrganizationsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] - **term** | **string** | Optionally search via search term | [default to ""] ### Return type -[**PagedOrganizations**](PagedOrganizations.md) +[**CertificationDetails**](CertificationDetails.md) ### Authorization @@ -1076,11 +709,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## MoveCertification +## MoveProject -> CertificationDetails MoveCertification(ctx, organizationId, certificationId).Execute() +> ProjectDetails MoveProject(ctx, projectId, organizationId).Execute() -Move a Certification to an Organization +Move a Project to an Organization ### Example @@ -1095,18 +728,18 @@ import ( ) func main() { + projectId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - certificationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrganizationAPI.MoveCertification(context.Background(), organizationId, certificationId).Execute() + resp, r, err := apiClient.OrganizationAPI.MoveProject(context.Background(), projectId, organizationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.MoveCertification``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.MoveProject``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `MoveCertification`: CertificationDetails - fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.MoveCertification`: %v\n", resp) + // response from `MoveProject`: ProjectDetails + fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.MoveProject`: %v\n", resp) } ``` @@ -1116,12 +749,12 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**projectId** | **string** | | **organizationId** | **string** | | -**certificationId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiMoveCertificationRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiMoveProjectRequest struct via the builder pattern Name | Type | Description | Notes @@ -1131,7 +764,7 @@ Name | Type | Description | Notes ### Return type -[**CertificationDetails**](CertificationDetails.md) +[**ProjectDetails**](ProjectDetails.md) ### Authorization @@ -1289,11 +922,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## UpdateOffice +## SearchOrganizations -> Office UpdateOffice(ctx, organizationId, officeId).Office(office).Execute() +> PagedOrganizations SearchOrganizations(ctx).Search(search).Execute() -Update an Office for an Organization +Search over organizations ### Example @@ -1308,45 +941,36 @@ import ( ) func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - officeId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - office := *openapiclient.NewOffice("Id_example", "Name_example") // Office | + search := *openapiclient.NewSearch(int32(123), int32(123)) // Search | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrganizationAPI.UpdateOffice(context.Background(), organizationId, officeId).Office(office).Execute() + resp, r, err := apiClient.OrganizationAPI.SearchOrganizations(context.Background()).Search(search).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.UpdateOffice``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.SearchOrganizations``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateOffice`: Office - fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.UpdateOffice`: %v\n", resp) + // response from `SearchOrganizations`: PagedOrganizations + fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.SearchOrganizations`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | -**officeId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiUpdateOfficeRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiSearchOrganizationsRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - - **office** | [**Office**](Office.md) | | + **search** | [**Search**](Search.md) | | ### Return type -[**Office**](Office.md) +[**PagedOrganizations**](PagedOrganizations.md) ### Authorization @@ -1431,74 +1055,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -## UpdateProjectOrganization - -> ProjectDetails UpdateProjectOrganization(ctx, organizationId, projectId).Execute() - -project is now point to the new organization - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/prodyna-yasm/yasm-api-go" -) - -func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - projectId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrganizationAPI.UpdateProjectOrganization(context.Background(), organizationId, projectId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.UpdateProjectOrganization``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateProjectOrganization`: ProjectDetails - fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.UpdateProjectOrganization`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | -**projectId** | **string** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdateProjectOrganizationRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - -### Return type - -[**ProjectDetails**](ProjectDetails.md) - -### Authorization - -[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) - -### 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) - diff --git a/docs/PersonAPI.md b/docs/PersonAPI.md index ff7388e5..1f3745b7 100644 --- a/docs/PersonAPI.md +++ b/docs/PersonAPI.md @@ -26,7 +26,6 @@ Method | HTTP request | Description [**DeletePersonSkillExperiences**](PersonAPI.md#DeletePersonSkillExperiences) | **Delete** /persons/{personId}/experiences | Remove an Skill Experience to a Person [**DeleteProjectParticipation**](PersonAPI.md#DeleteProjectParticipation) | **Delete** /project-participations/{projectParticipationId} | Remove an Project from a Person [**GeneratePersonProfile**](PersonAPI.md#GeneratePersonProfile) | **Get** /persons/{personId}/pdf-profile | Generate a PDF profile from a Person -[**GetAllBusinessDepartments**](PersonAPI.md#GetAllBusinessDepartments) | **Get** /persons/departments | Get all unique business departments [**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 @@ -35,7 +34,7 @@ Method | HTTP request | Description [**RemoveManager**](PersonAPI.md#RemoveManager) | **Delete** /persons/{personId}/manager | Remove a manager from a person [**RemovePersonLanguage**](PersonAPI.md#RemovePersonLanguage) | **Delete** /persons/{personId}/languages/{languageId} | Remove a language from a person [**RemoveSkillConfirmation**](PersonAPI.md#RemoveSkillConfirmation) | **Delete** /project-participations/{projectParticipationId}/skills/{skillId}/confirmation/{confirmingPersonId} | Remove a confirmation -[**SearchPersons**](PersonAPI.md#SearchPersons) | **Post** /persons/search | Complex search over person entities +[**SearchPersons**](PersonAPI.md#SearchPersons) | **Post** /persons/search | Search over persons [**SetManager**](PersonAPI.md#SetManager) | **Put** /persons/{personId}/manager/{managerId} | Set a manager for a person [**UpdateAvailability**](PersonAPI.md#UpdateAvailability) | **Put** /persons/{personId}/availabilities/{availabilityId} | Update a person availability [**UpdatePerson**](PersonAPI.md#UpdatePerson) | **Put** /persons/{personId} | Update an existing Person @@ -1605,72 +1604,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetAllBusinessDepartments - -> []string GetAllBusinessDepartments(ctx).Skip(skip).Limit(limit).Execute() - -Get all unique business departments - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/prodyna-yasm/yasm-api-go" -) - -func main() { - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PersonAPI.GetAllBusinessDepartments(context.Background()).Skip(skip).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonAPI.GetAllBusinessDepartments``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAllBusinessDepartments`: []string - fmt.Fprintf(os.Stdout, "Response from `PersonAPI.GetAllBusinessDepartments`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetAllBusinessDepartmentsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] - -### Return type - -**[]string** - -### Authorization - -[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) - -### 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) - - ## GetAvailabilities > PagedAvailabilities GetAvailabilities(ctx, personId).Execute() @@ -2228,9 +2161,9 @@ Name | Type | Description | Notes ## SearchPersons -> PagedPersons SearchPersons(ctx).PersonSearch(personSearch).Skip(skip).Limit(limit).Execute() +> PagedPersons SearchPersons(ctx).PersonSearch(personSearch).Execute() -Complex search over person entities +Search over persons ### Example @@ -2245,13 +2178,11 @@ import ( ) func main() { - personSearch := *openapiclient.NewPersonSearch() // PersonSearch | - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) + personSearch := *openapiclient.NewPersonSearch(int32(123), int32(123)) // PersonSearch | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PersonAPI.SearchPersons(context.Background()).PersonSearch(personSearch).Skip(skip).Limit(limit).Execute() + resp, r, err := apiClient.PersonAPI.SearchPersons(context.Background()).PersonSearch(personSearch).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `PersonAPI.SearchPersons``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2273,8 +2204,6 @@ Other parameters are passed through a pointer to a apiSearchPersonsRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **personSearch** | [**PersonSearch**](PersonSearch.md) | | - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] ### Return type diff --git a/docs/ProfileAPI.md b/docs/ProfileAPI.md index 37bc7752..d5e75b1d 100644 --- a/docs/ProfileAPI.md +++ b/docs/ProfileAPI.md @@ -9,7 +9,6 @@ Method | HTTP request | Description [**DeletePersonProfile**](ProfileAPI.md#DeletePersonProfile) | **Delete** /persons/{personId}/profiles/{profileId} | Remove a Profile from a Person [**DeleteProfile**](ProfileAPI.md#DeleteProfile) | **Delete** /profiles/{profileId} | Delete a Profile [**GetProfile**](ProfileAPI.md#GetProfile) | **Get** /profiles/{profileId} | Get details about a Profile -[**GetProfiles**](ProfileAPI.md#GetProfiles) | **Get** /profiles | Get all Profiles [**UpdateProfile**](ProfileAPI.md#UpdateProfile) | **Put** /profiles/{profileId} | Update a Profile @@ -356,72 +355,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetProfiles - -> PagedProfiles GetProfiles(ctx).Skip(skip).Limit(limit).Execute() - -Get all Profiles - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/prodyna-yasm/yasm-api-go" -) - -func main() { - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ProfileAPI.GetProfiles(context.Background()).Skip(skip).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ProfileAPI.GetProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetProfiles`: PagedProfiles - fmt.Fprintf(os.Stdout, "Response from `ProfileAPI.GetProfiles`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetProfilesRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] - -### Return type - -[**PagedProfiles**](PagedProfiles.md) - -### Authorization - -[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) - -### 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) - - ## UpdateProfile > ProfileDetails UpdateProfile(ctx, profileId).Profile(profile).Execute() diff --git a/docs/ProfilesAPI.md b/docs/ProfilesAPI.md new file mode 100644 index 00000000..35666193 --- /dev/null +++ b/docs/ProfilesAPI.md @@ -0,0 +1,73 @@ +# \ProfilesAPI + +All URIs are relative to *https://yasm.prodyna.com:443/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**SearchProfiles**](ProfilesAPI.md#SearchProfiles) | **Post** /profiles/search | Search over profiles + + + +## SearchProfiles + +> PagedProfiles SearchProfiles(ctx).Search(search).Execute() + +Search over profiles + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/prodyna-yasm/yasm-api-go" +) + +func main() { + search := *openapiclient.NewSearch(int32(123), int32(123)) // Search | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ProfilesAPI.SearchProfiles(context.Background()).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProfilesAPI.SearchProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchProfiles`: PagedProfiles + fmt.Fprintf(os.Stdout, "Response from `ProfilesAPI.SearchProfiles`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSearchProfilesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **search** | [**Search**](Search.md) | | + +### Return type + +[**PagedProfiles**](PagedProfiles.md) + +### Authorization + +[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) + +### 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) + diff --git a/docs/ProjectAPI.md b/docs/ProjectAPI.md index 03d677d0..c117cdc1 100644 --- a/docs/ProjectAPI.md +++ b/docs/ProjectAPI.md @@ -7,18 +7,17 @@ Method | HTTP request | Description [**AddExecutiveOrganizationToProject**](ProjectAPI.md#AddExecutiveOrganizationToProject) | **Post** /projects/{projectId}/executive-organizations/{organizationId} | Add an Organization to a Project as executive organization [**AddProjectParticipation**](ProjectAPI.md#AddProjectParticipation) | **Post** /project-participations | Add Project to a Person [**AddSkillConfirmation**](ProjectAPI.md#AddSkillConfirmation) | **Post** /project-participations/{projectParticipationId}/skills/{skillId}/confirmation/{confirmingPersonId} | Confirm Skill -[**CreateProject**](ProjectAPI.md#CreateProject) | **Post** /organizations/{organizationId}/projects | Create a Project in an Organization +[**CreateProject**](ProjectAPI.md#CreateProject) | **Post** /projects | Create a Project in an Organization [**DeleteProject**](ProjectAPI.md#DeleteProject) | **Delete** /projects/{projectId} | Delete a project [**DeleteProjectParticipation**](ProjectAPI.md#DeleteProjectParticipation) | **Delete** /project-participations/{projectParticipationId} | Remove an Project from a Person -[**GetOrganizationProjects**](ProjectAPI.md#GetOrganizationProjects) | **Get** /organizations/{organizationId}/projects | Get a list of all Projects for an Organization [**GetProject**](ProjectAPI.md#GetProject) | **Get** /projects/{projectId} | Get details about a Project +[**MoveProject**](ProjectAPI.md#MoveProject) | **Put** /projects/{projectId}/organizations/{organizationId} | Move a Project to an Organization [**ReadProjectParticipation**](ProjectAPI.md#ReadProjectParticipation) | **Get** /project-participations/{projectParticipationId} | Get a project participation [**RemoveExecutiveOrganizationFromProject**](ProjectAPI.md#RemoveExecutiveOrganizationFromProject) | **Delete** /projects/{projectId}/executive-organizations/{organizationId} | Remove an Organization from a Project as executive organization [**RemoveSkillConfirmation**](ProjectAPI.md#RemoveSkillConfirmation) | **Delete** /project-participations/{projectParticipationId}/skills/{skillId}/confirmation/{confirmingPersonId} | Remove a confirmation -[**SearchProjectParticipations**](ProjectAPI.md#SearchProjectParticipations) | **Post** /project-participations/search | Complex search over project entities +[**SearchProjectParticipations**](ProjectAPI.md#SearchProjectParticipations) | **Post** /project-participations/search | Search over project participations [**SearchProjects**](ProjectAPI.md#SearchProjects) | **Post** /projects/search | Complex search over project entities [**UpdateProject**](ProjectAPI.md#UpdateProject) | **Put** /projects/{projectId} | Update a Project -[**UpdateProjectOrganization**](ProjectAPI.md#UpdateProjectOrganization) | **Put** /organizations/{organizationId}/projects/{projectId} | project is now point to the new organization [**UpdateProjectParticipation**](ProjectAPI.md#UpdateProjectParticipation) | **Put** /project-participations/{projectParticipationId} | Update a Project of a Person @@ -235,7 +234,7 @@ Name | Type | Description | Notes ## CreateProject -> ProjectDetails CreateProject(ctx, organizationId).Project(project).Execute() +> ProjectDetails CreateProject(ctx).OrganizationId(organizationId).Project(project).Execute() Create a Project in an Organization @@ -252,12 +251,12 @@ import ( ) func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID of the organization project := *openapiclient.NewProject(false, "Id_example", "Name_example") // Project | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ProjectAPI.CreateProject(context.Background(), organizationId).Project(project).Execute() + resp, r, err := apiClient.ProjectAPI.CreateProject(context.Background()).OrganizationId(organizationId).Project(project).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ProjectAPI.CreateProject``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -270,10 +269,6 @@ func main() { ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | ### Other Parameters @@ -282,7 +277,7 @@ Other parameters are passed through a pointer to a apiCreateProjectRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **organizationId** | **string** | The ID of the organization | **project** | [**Project**](Project.md) | | ### Return type @@ -439,11 +434,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetOrganizationProjects +## GetProject -> PagedProjects GetOrganizationProjects(ctx, organizationId).Skip(skip).Limit(limit).Execute() +> ProjectDetails GetProject(ctx, projectId).Execute() -Get a list of all Projects for an Organization +Get details about a Project ### Example @@ -458,19 +453,17 @@ import ( ) func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) + projectId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ProjectAPI.GetOrganizationProjects(context.Background(), organizationId).Skip(skip).Limit(limit).Execute() + resp, r, err := apiClient.ProjectAPI.GetProject(context.Background(), projectId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ProjectAPI.GetOrganizationProjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ProjectAPI.GetProject``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetOrganizationProjects`: PagedProjects - fmt.Fprintf(os.Stdout, "Response from `ProjectAPI.GetOrganizationProjects`: %v\n", resp) + // response from `GetProject`: ProjectDetails + fmt.Fprintf(os.Stdout, "Response from `ProjectAPI.GetProject`: %v\n", resp) } ``` @@ -480,22 +473,20 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | +**projectId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiGetOrganizationProjectsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGetProjectRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] ### Return type -[**PagedProjects**](PagedProjects.md) +[**ProjectDetails**](ProjectDetails.md) ### Authorization @@ -511,11 +502,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetProject +## MoveProject -> ProjectDetails GetProject(ctx, projectId).Execute() +> ProjectDetails MoveProject(ctx, projectId, organizationId).Execute() -Get details about a Project +Move a Project to an Organization ### Example @@ -531,16 +522,17 @@ import ( func main() { projectId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ProjectAPI.GetProject(context.Background(), projectId).Execute() + resp, r, err := apiClient.ProjectAPI.MoveProject(context.Background(), projectId, organizationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ProjectAPI.GetProject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ProjectAPI.MoveProject``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetProject`: ProjectDetails - fmt.Fprintf(os.Stdout, "Response from `ProjectAPI.GetProject`: %v\n", resp) + // response from `MoveProject`: ProjectDetails + fmt.Fprintf(os.Stdout, "Response from `ProjectAPI.MoveProject`: %v\n", resp) } ``` @@ -551,16 +543,18 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **projectId** | **string** | | +**organizationId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiGetProjectRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiMoveProjectRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + ### Return type [**ProjectDetails**](ProjectDetails.md) @@ -794,9 +788,9 @@ Name | Type | Description | Notes ## SearchProjectParticipations -> PagedProjectParticipation SearchProjectParticipations(ctx).ProjectParticipationSearch(projectParticipationSearch).Skip(skip).Limit(limit).Execute() +> PagedProjectParticipation SearchProjectParticipations(ctx).ProjectParticipationSearch(projectParticipationSearch).Execute() -Complex search over project entities +Search over project participations ### Example @@ -811,13 +805,11 @@ import ( ) func main() { - projectParticipationSearch := *openapiclient.NewProjectParticipationSearch() // ProjectParticipationSearch | - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) + projectParticipationSearch := *openapiclient.NewProjectParticipationSearch(int32(123), int32(123)) // ProjectParticipationSearch | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ProjectAPI.SearchProjectParticipations(context.Background()).ProjectParticipationSearch(projectParticipationSearch).Skip(skip).Limit(limit).Execute() + resp, r, err := apiClient.ProjectAPI.SearchProjectParticipations(context.Background()).ProjectParticipationSearch(projectParticipationSearch).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ProjectAPI.SearchProjectParticipations``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -839,8 +831,6 @@ Other parameters are passed through a pointer to a apiSearchProjectParticipation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **projectParticipationSearch** | [**ProjectParticipationSearch**](ProjectParticipationSearch.md) | | - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] ### Return type @@ -862,7 +852,7 @@ Name | Type | Description | Notes ## SearchProjects -> PagedProjects SearchProjects(ctx).ProjectSearch(projectSearch).Skip(skip).Limit(limit).Execute() +> PagedProjects SearchProjects(ctx).ProjectSearch(projectSearch).Execute() Complex search over project entities @@ -879,13 +869,11 @@ import ( ) func main() { - projectSearch := *openapiclient.NewProjectSearch() // ProjectSearch | - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) + projectSearch := *openapiclient.NewProjectSearch(int32(123), int32(123)) // ProjectSearch | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ProjectAPI.SearchProjects(context.Background()).ProjectSearch(projectSearch).Skip(skip).Limit(limit).Execute() + resp, r, err := apiClient.ProjectAPI.SearchProjects(context.Background()).ProjectSearch(projectSearch).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ProjectAPI.SearchProjects``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -907,8 +895,6 @@ Other parameters are passed through a pointer to a apiSearchProjectsRequest stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **projectSearch** | [**ProjectSearch**](ProjectSearch.md) | | - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] ### Return type @@ -998,77 +984,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## UpdateProjectOrganization - -> ProjectDetails UpdateProjectOrganization(ctx, organizationId, projectId).Execute() - -project is now point to the new organization - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/prodyna-yasm/yasm-api-go" -) - -func main() { - organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - projectId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ProjectAPI.UpdateProjectOrganization(context.Background(), organizationId, projectId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ProjectAPI.UpdateProjectOrganization``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateProjectOrganization`: ProjectDetails - fmt.Fprintf(os.Stdout, "Response from `ProjectAPI.UpdateProjectOrganization`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organizationId** | **string** | | -**projectId** | **string** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdateProjectOrganizationRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - -### Return type - -[**ProjectDetails**](ProjectDetails.md) - -### Authorization - -[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) - -### 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) - - ## UpdateProjectParticipation > ProjectParticipationDetails UpdateProjectParticipation(ctx, projectParticipationId).ProjectParticipationUpdate(projectParticipationUpdate).Execute() diff --git a/docs/Search.md b/docs/Search.md new file mode 100644 index 00000000..90c31b29 --- /dev/null +++ b/docs/Search.md @@ -0,0 +1,124 @@ +# Search + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Term** | Pointer to **string** | | [optional] +**Skip** | **int32** | | [default to 0] +**Limit** | **int32** | | [default to 20] +**ObjectType** | Pointer to **string** | | [optional] + +## Methods + +### NewSearch + +`func NewSearch(skip int32, limit int32, ) *Search` + +NewSearch instantiates a new Search object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSearchWithDefaults + +`func NewSearchWithDefaults() *Search` + +NewSearchWithDefaults instantiates a new Search object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTerm + +`func (o *Search) GetTerm() string` + +GetTerm returns the Term field if non-nil, zero value otherwise. + +### GetTermOk + +`func (o *Search) GetTermOk() (*string, bool)` + +GetTermOk returns a tuple with the Term field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerm + +`func (o *Search) SetTerm(v string)` + +SetTerm sets Term field to given value. + +### HasTerm + +`func (o *Search) HasTerm() bool` + +HasTerm returns a boolean if a field has been set. + +### GetSkip + +`func (o *Search) GetSkip() int32` + +GetSkip returns the Skip field if non-nil, zero value otherwise. + +### GetSkipOk + +`func (o *Search) GetSkipOk() (*int32, bool)` + +GetSkipOk returns a tuple with the Skip field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkip + +`func (o *Search) SetSkip(v int32)` + +SetSkip sets Skip field to given value. + + +### GetLimit + +`func (o *Search) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *Search) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *Search) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + + +### GetObjectType + +`func (o *Search) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *Search) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *Search) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *Search) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SearchAPI.md b/docs/SearchAPI.md index 3c04b489..08f576eb 100644 --- a/docs/SearchAPI.md +++ b/docs/SearchAPI.md @@ -4,13 +4,13 @@ All URIs are relative to *https://yasm.prodyna.com:443/api/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**SearchAll**](SearchAPI.md#SearchAll) | **Get** /search/all/{text} | Fulltext search on all kinds of objects +[**Search**](SearchAPI.md#Search) | **Post** /search | Fulltext search on all kinds of objects -## SearchAll +## Search -> SearchResult SearchAll(ctx, text).Skip(skip).Limit(limit).Execute() +> SearchResult Search(ctx).Search(search).Execute() Fulltext search on all kinds of objects @@ -27,40 +27,32 @@ import ( ) func main() { - text := "text_example" // string | - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) + search := *openapiclient.NewSearch(int32(123), int32(123)) // Search | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SearchAPI.SearchAll(context.Background(), text).Skip(skip).Limit(limit).Execute() + resp, r, err := apiClient.SearchAPI.Search(context.Background()).Search(search).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchAll``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.Search``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `SearchAll`: SearchResult - fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchAll`: %v\n", resp) + // response from `Search`: SearchResult + fmt.Fprintf(os.Stdout, "Response from `SearchAPI.Search`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**text** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiSearchAllRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiSearchRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] + **search** | [**Search**](Search.md) | | ### Return type @@ -72,7 +64,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) diff --git a/docs/SkillAPI.md b/docs/SkillAPI.md index d293b708..8c77e9f6 100644 --- a/docs/SkillAPI.md +++ b/docs/SkillAPI.md @@ -17,10 +17,9 @@ Method | HTTP request | Description [**DeleteSkill**](SkillAPI.md#DeleteSkill) | **Delete** /skills/{skillId} | Delete a Skill [**DeleteSkillFromCertification**](SkillAPI.md#DeleteSkillFromCertification) | **Delete** /certifications/{certificationId}/skills/{skillId} | [**GetSkill**](SkillAPI.md#GetSkill) | **Get** /skills/{skillId} | Get details for a single skill -[**GetSkillParents**](SkillAPI.md#GetSkillParents) | **Get** /skills/{skillId}/parents | Get ghe list of parents for a skill -[**GetSkills**](SkillAPI.md#GetSkills) | **Get** /skills | Get a list of all skills, optionally only root [**RemoveSkillConfirmation**](SkillAPI.md#RemoveSkillConfirmation) | **Delete** /project-participations/{projectParticipationId}/skills/{skillId}/confirmation/{confirmingPersonId} | Remove a confirmation [**RemoveSkillFromParentSkill**](SkillAPI.md#RemoveSkillFromParentSkill) | **Delete** /skills/{skillId}/parents/{parentSkillId} | Detaches a Skill from parent Skill, return the parent Skill +[**SearchSkills**](SkillAPI.md#SearchSkills) | **Post** /skills/search | Search over skills [**UpdatePersonSkillExperience**](SkillAPI.md#UpdatePersonSkillExperience) | **Put** /persons/{personId}/experiences/skills/{skillId} | Edit an Skill experience to a Person [**UpdatePersonSkillExperiences**](SkillAPI.md#UpdatePersonSkillExperiences) | **Put** /persons/{personId}/experiences | Edit an Skill experience to a Person [**UpdateSkill**](SkillAPI.md#UpdateSkill) | **Put** /skills/{skillId} | Update a Skill @@ -947,11 +946,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetSkillParents +## RemoveSkillConfirmation -> PagedSkills GetSkillParents(ctx, skillId).Skip(skip).Limit(limit).Execute() +> ProjectParticipationDetails RemoveSkillConfirmation(ctx, projectParticipationId, skillId, confirmingPersonId).Execute() -Get ghe list of parents for a skill +Remove a confirmation ### Example @@ -966,19 +965,19 @@ import ( ) func main() { + projectParticipationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | skillId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) + confirmingPersonId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SkillAPI.GetSkillParents(context.Background(), skillId).Skip(skip).Limit(limit).Execute() + resp, r, err := apiClient.SkillAPI.RemoveSkillConfirmation(context.Background(), projectParticipationId, skillId, confirmingPersonId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SkillAPI.GetSkillParents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `SkillAPI.RemoveSkillConfirmation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetSkillParents`: PagedSkills - fmt.Fprintf(os.Stdout, "Response from `SkillAPI.GetSkillParents`: %v\n", resp) + // response from `RemoveSkillConfirmation`: ProjectParticipationDetails + fmt.Fprintf(os.Stdout, "Response from `SkillAPI.RemoveSkillConfirmation`: %v\n", resp) } ``` @@ -988,96 +987,24 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**projectParticipationId** | **string** | | **skillId** | **string** | | +**confirmingPersonId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiGetSkillParentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiRemoveSkillConfirmationRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] - -### Return type - -[**PagedSkills**](PagedSkills.md) - -### Authorization - -[oidcScheme](../README.md#oidcScheme), [bearerScheme](../README.md#bearerScheme) - -### 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) - - -## GetSkills - -> PagedSkills GetSkills(ctx).Skip(skip).Limit(limit).Term(term).Types(types).Suggestions(suggestions).Linkable(linkable).Execute() - -Get a list of all skills, optionally only root - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/prodyna-yasm/yasm-api-go" -) - -func main() { - skip := int32(0) // int32 | (optional) (default to 0) - limit := int32(20) // int32 | (optional) (default to 20) - term := "term_example" // string | Optionally search via search term (optional) (default to "") - types := "all" // string | Gives you either all skills, only the root kills (optional) (default to "all") - suggestions := "all" // string | Optionally filter skills based on suggestion (optional) (default to "all") - linkable := true // bool | Optionally filter skills based on linkable (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SkillAPI.GetSkills(context.Background()).Skip(skip).Limit(limit).Term(term).Types(types).Suggestions(suggestions).Linkable(linkable).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SkillAPI.GetSkills``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSkills`: PagedSkills - fmt.Fprintf(os.Stdout, "Response from `SkillAPI.GetSkills`: %v\n", resp) -} -``` - -### Path Parameters - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetSkillsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **skip** | **int32** | | [default to 0] - **limit** | **int32** | | [default to 20] - **term** | **string** | Optionally search via search term | [default to ""] - **types** | **string** | Gives you either all skills, only the root kills | [default to "all"] - **suggestions** | **string** | Optionally filter skills based on suggestion | [default to "all"] - **linkable** | **bool** | Optionally filter skills based on linkable | ### Return type -[**PagedSkills**](PagedSkills.md) +[**ProjectParticipationDetails**](ProjectParticipationDetails.md) ### Authorization @@ -1093,11 +1020,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## RemoveSkillConfirmation +## RemoveSkillFromParentSkill -> ProjectParticipationDetails RemoveSkillConfirmation(ctx, projectParticipationId, skillId, confirmingPersonId).Execute() +> SkillDetails RemoveSkillFromParentSkill(ctx, skillId, parentSkillId).Execute() -Remove a confirmation +Detaches a Skill from parent Skill, return the parent Skill ### Example @@ -1112,19 +1039,18 @@ import ( ) func main() { - projectParticipationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | skillId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - confirmingPersonId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + parentSkillId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SkillAPI.RemoveSkillConfirmation(context.Background(), projectParticipationId, skillId, confirmingPersonId).Execute() + resp, r, err := apiClient.SkillAPI.RemoveSkillFromParentSkill(context.Background(), skillId, parentSkillId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SkillAPI.RemoveSkillConfirmation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `SkillAPI.RemoveSkillFromParentSkill``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `RemoveSkillConfirmation`: ProjectParticipationDetails - fmt.Fprintf(os.Stdout, "Response from `SkillAPI.RemoveSkillConfirmation`: %v\n", resp) + // response from `RemoveSkillFromParentSkill`: SkillDetails + fmt.Fprintf(os.Stdout, "Response from `SkillAPI.RemoveSkillFromParentSkill`: %v\n", resp) } ``` @@ -1134,13 +1060,12 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**projectParticipationId** | **string** | | **skillId** | **string** | | -**confirmingPersonId** | **string** | | +**parentSkillId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiRemoveSkillConfirmationRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiRemoveSkillFromParentSkillRequest struct via the builder pattern Name | Type | Description | Notes @@ -1148,10 +1073,9 @@ Name | Type | Description | Notes - ### Return type -[**ProjectParticipationDetails**](ProjectParticipationDetails.md) +[**SkillDetails**](SkillDetails.md) ### Authorization @@ -1167,11 +1091,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## RemoveSkillFromParentSkill +## SearchSkills -> SkillDetails RemoveSkillFromParentSkill(ctx, skillId, parentSkillId).Execute() +> PagedSkills SearchSkills(ctx).SkillSearch(skillSearch).Execute() -Detaches a Skill from parent Skill, return the parent Skill +Search over skills ### Example @@ -1186,43 +1110,36 @@ import ( ) func main() { - skillId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | - parentSkillId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + skillSearch := *openapiclient.NewSkillSearch(int32(123), int32(123)) // SkillSearch | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SkillAPI.RemoveSkillFromParentSkill(context.Background(), skillId, parentSkillId).Execute() + resp, r, err := apiClient.SkillAPI.SearchSkills(context.Background()).SkillSearch(skillSearch).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SkillAPI.RemoveSkillFromParentSkill``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `SkillAPI.SearchSkills``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `RemoveSkillFromParentSkill`: SkillDetails - fmt.Fprintf(os.Stdout, "Response from `SkillAPI.RemoveSkillFromParentSkill`: %v\n", resp) + // response from `SearchSkills`: PagedSkills + fmt.Fprintf(os.Stdout, "Response from `SkillAPI.SearchSkills`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skillId** | **string** | | -**parentSkillId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiRemoveSkillFromParentSkillRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiSearchSkillsRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - + **skillSearch** | [**SkillSearch**](SkillSearch.md) | | ### Return type -[**SkillDetails**](SkillDetails.md) +[**PagedSkills**](PagedSkills.md) ### Authorization @@ -1230,7 +1147,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) diff --git a/docs/SkillSearch.md b/docs/SkillSearch.md new file mode 100644 index 00000000..c541cebe --- /dev/null +++ b/docs/SkillSearch.md @@ -0,0 +1,108 @@ +# SkillSearch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Types** | Pointer to **string** | Gives you either all skills, only the root kills | [optional] [default to "all"] +**Suggestions** | Pointer to **string** | Optionally filter skills based on suggestion | [optional] [default to "all"] +**Linkable** | Pointer to **bool** | Optionally filter skills based on linkable | [optional] + +## Methods + +### NewSkillSearch + +`func NewSkillSearch() *SkillSearch` + +NewSkillSearch instantiates a new SkillSearch object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSkillSearchWithDefaults + +`func NewSkillSearchWithDefaults() *SkillSearch` + +NewSkillSearchWithDefaults instantiates a new SkillSearch object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTypes + +`func (o *SkillSearch) GetTypes() string` + +GetTypes returns the Types field if non-nil, zero value otherwise. + +### GetTypesOk + +`func (o *SkillSearch) GetTypesOk() (*string, bool)` + +GetTypesOk returns a tuple with the Types field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypes + +`func (o *SkillSearch) SetTypes(v string)` + +SetTypes sets Types field to given value. + +### HasTypes + +`func (o *SkillSearch) HasTypes() bool` + +HasTypes returns a boolean if a field has been set. + +### GetSuggestions + +`func (o *SkillSearch) GetSuggestions() string` + +GetSuggestions returns the Suggestions field if non-nil, zero value otherwise. + +### GetSuggestionsOk + +`func (o *SkillSearch) GetSuggestionsOk() (*string, bool)` + +GetSuggestionsOk returns a tuple with the Suggestions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuggestions + +`func (o *SkillSearch) SetSuggestions(v string)` + +SetSuggestions sets Suggestions field to given value. + +### HasSuggestions + +`func (o *SkillSearch) HasSuggestions() bool` + +HasSuggestions returns a boolean if a field has been set. + +### GetLinkable + +`func (o *SkillSearch) GetLinkable() bool` + +GetLinkable returns the Linkable field if non-nil, zero value otherwise. + +### GetLinkableOk + +`func (o *SkillSearch) GetLinkableOk() (*bool, bool)` + +GetLinkableOk returns a tuple with the Linkable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkable + +`func (o *SkillSearch) SetLinkable(v bool)` + +SetLinkable sets Linkable field to given value. + +### HasLinkable + +`func (o *SkillSearch) HasLinkable() bool` + +HasLinkable returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/model_abstract_entity_filter.go b/model_abstract_entity_filter.go index 3d5b215f..8283118a 100644 --- a/model_abstract_entity_filter.go +++ b/model_abstract_entity_filter.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_availability.go b/model_availability.go index 868b5507..b129c347 100644 --- a/model_availability.go +++ b/model_availability.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_availability_detail.go b/model_availability_detail.go index 2cd6e99f..12400e97 100644 --- a/model_availability_detail.go +++ b/model_availability_detail.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_availability_filter.go b/model_availability_filter.go index e8803413..1fcfee74 100644 --- a/model_availability_filter.go +++ b/model_availability_filter.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_basic_domain_model.go b/model_basic_domain_model.go index 67bb1800..8b9cebb7 100644 --- a/model_basic_domain_model.go +++ b/model_basic_domain_model.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_certification.go b/model_certification.go index 2aa581cd..9c069975 100644 --- a/model_certification.go +++ b/model_certification.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_certification_details.go b/model_certification_details.go index 12e9a93e..a49ed607 100644 --- a/model_certification_details.go +++ b/model_certification_details.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_certification_search.go b/model_certification_search.go index d0dfe5aa..413444fc 100644 --- a/model_certification_search.go +++ b/model_certification_search.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +19,7 @@ var _ MappedNullable = &CertificationSearch{} // CertificationSearch struct for CertificationSearch type CertificationSearch struct { + Search CertificationIds []string `json:"certificationIds,omitempty"` SkillIds []string `json:"skillIds,omitempty"` OrganizationIds []string `json:"organizationIds,omitempty"` @@ -28,8 +29,10 @@ type CertificationSearch struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCertificationSearch() *CertificationSearch { +func NewCertificationSearch(skip int32, limit int32) *CertificationSearch { this := CertificationSearch{} + this.Skip = skip + this.Limit = limit return &this } @@ -147,6 +150,14 @@ func (o CertificationSearch) MarshalJSON() ([]byte, error) { func (o CertificationSearch) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + serializedSearch, errSearch := json.Marshal(o.Search) + if errSearch != nil { + return map[string]interface{}{}, errSearch + } + errSearch = json.Unmarshal([]byte(serializedSearch), &toSerialize) + if errSearch != nil { + return map[string]interface{}{}, errSearch + } if !IsNil(o.CertificationIds) { toSerialize["certificationIds"] = o.CertificationIds } diff --git a/model_confidentiality.go b/model_confidentiality.go index 86fbabb2..270f3b75 100644 --- a/model_confidentiality.go +++ b/model_confidentiality.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_country.go b/model_country.go index 6eb556c8..851545d7 100644 --- a/model_country.go +++ b/model_country.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_country_details.go b/model_country_details.go index efab38ea..25419298 100644 --- a/model_country_details.go +++ b/model_country_details.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_descriptable.go b/model_descriptable.go index 88b7ced5..012fd6b9 100644 --- a/model_descriptable.go +++ b/model_descriptable.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_error.go b/model_error.go index 891090a6..ac8df64f 100644 --- a/model_error.go +++ b/model_error.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_experience.go b/model_experience.go index 0580533b..d5cb5085 100644 --- a/model_experience.go +++ b/model_experience.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_experience_skill.go b/model_experience_skill.go index 89e02cc6..a965267b 100644 --- a/model_experience_skill.go +++ b/model_experience_skill.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_experience_skill_group.go b/model_experience_skill_group.go index d77f5cb2..276744dc 100644 --- a/model_experience_skill_group.go +++ b/model_experience_skill_group.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_geolocation.go b/model_geolocation.go index 449a2474..acb9879a 100644 --- a/model_geolocation.go +++ b/model_geolocation.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_industry.go b/model_industry.go index 61151739..e91ff5c5 100644 --- a/model_industry.go +++ b/model_industry.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_industry_details.go b/model_industry_details.go index 4fa1de81..54a8918d 100644 --- a/model_industry_details.go +++ b/model_industry_details.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_language.go b/model_language.go index 9ae2c349..3aedfb8d 100644 --- a/model_language.go +++ b/model_language.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_language_details.go b/model_language_details.go index 948b82aa..00b87470 100644 --- a/model_language_details.go +++ b/model_language_details.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_language_level.go b/model_language_level.go index 1de6f026..c72668ca 100644 --- a/model_language_level.go +++ b/model_language_level.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_level.go b/model_level.go index eb784f4e..8d94c23d 100644 --- a/model_level.go +++ b/model_level.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_linkable.go b/model_linkable.go index b25ac47e..7433a1a0 100644 --- a/model_linkable.go +++ b/model_linkable.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_locateable.go b/model_locateable.go index 4f64d86f..ee0f624c 100644 --- a/model_locateable.go +++ b/model_locateable.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_min_max.go b/model_min_max.go index fc2b689c..02e367ff 100644 --- a/model_min_max.go +++ b/model_min_max.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_min_max_percent.go b/model_min_max_percent.go index cc87d706..6b7d04e1 100644 --- a/model_min_max_percent.go +++ b/model_min_max_percent.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nameable.go b/model_nameable.go index 6cccae42..23d5d2b9 100644 --- a/model_nameable.go +++ b/model_nameable.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_named_domain_model.go b/model_named_domain_model.go index d6e68488..745a7eea 100644 --- a/model_named_domain_model.go +++ b/model_named_domain_model.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_office.go b/model_office.go index 7a696e17..b2ab6cdf 100644 --- a/model_office.go +++ b/model_office.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_office_search.go b/model_office_search.go new file mode 100644 index 00000000..8e0430e6 --- /dev/null +++ b/model_office_search.go @@ -0,0 +1,137 @@ +/* +YASM (Yet Another Skill Management) API + +This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. + +API version: 1.17.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" +) + +// checks if the OfficeSearch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OfficeSearch{} + +// OfficeSearch struct for OfficeSearch +type OfficeSearch struct { + Search + OrganizationIds []string `json:"organizationIds,omitempty"` +} + +// NewOfficeSearch instantiates a new OfficeSearch object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOfficeSearch(skip int32, limit int32) *OfficeSearch { + this := OfficeSearch{} + this.Skip = skip + this.Limit = limit + return &this +} + +// NewOfficeSearchWithDefaults instantiates a new OfficeSearch object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOfficeSearchWithDefaults() *OfficeSearch { + this := OfficeSearch{} + return &this +} + +// GetOrganizationIds returns the OrganizationIds field value if set, zero value otherwise. +func (o *OfficeSearch) GetOrganizationIds() []string { + if o == nil || IsNil(o.OrganizationIds) { + var ret []string + return ret + } + return o.OrganizationIds +} + +// GetOrganizationIdsOk returns a tuple with the OrganizationIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OfficeSearch) GetOrganizationIdsOk() ([]string, bool) { + if o == nil || IsNil(o.OrganizationIds) { + return nil, false + } + return o.OrganizationIds, true +} + +// HasOrganizationIds returns a boolean if a field has been set. +func (o *OfficeSearch) HasOrganizationIds() bool { + if o != nil && !IsNil(o.OrganizationIds) { + return true + } + + return false +} + +// SetOrganizationIds gets a reference to the given []string and assigns it to the OrganizationIds field. +func (o *OfficeSearch) SetOrganizationIds(v []string) { + o.OrganizationIds = v +} + +func (o OfficeSearch) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OfficeSearch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedSearch, errSearch := json.Marshal(o.Search) + if errSearch != nil { + return map[string]interface{}{}, errSearch + } + errSearch = json.Unmarshal([]byte(serializedSearch), &toSerialize) + if errSearch != nil { + return map[string]interface{}{}, errSearch + } + if !IsNil(o.OrganizationIds) { + toSerialize["organizationIds"] = o.OrganizationIds + } + return toSerialize, nil +} + +type NullableOfficeSearch struct { + value *OfficeSearch + isSet bool +} + +func (v NullableOfficeSearch) Get() *OfficeSearch { + return v.value +} + +func (v *NullableOfficeSearch) Set(val *OfficeSearch) { + v.value = val + v.isSet = true +} + +func (v NullableOfficeSearch) IsSet() bool { + return v.isSet +} + +func (v *NullableOfficeSearch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOfficeSearch(val *OfficeSearch) *NullableOfficeSearch { + return &NullableOfficeSearch{value: val, isSet: true} +} + +func (v NullableOfficeSearch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOfficeSearch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_organization.go b/model_organization.go index 9b423c2d..3ff1632f 100644 --- a/model_organization.go +++ b/model_organization.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_organization_details.go b/model_organization_details.go index e40652cc..286fb0c3 100644 --- a/model_organization_details.go +++ b/model_organization_details.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_page.go b/model_page.go index 20a57f79..766493c0 100644 --- a/model_page.go +++ b/model_page.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paged_availabilities.go b/model_paged_availabilities.go index aede03a3..14be5fdc 100644 --- a/model_paged_availabilities.go +++ b/model_paged_availabilities.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paged_certifications.go b/model_paged_certifications.go index b29bd7f0..c2e3eb49 100644 --- a/model_paged_certifications.go +++ b/model_paged_certifications.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paged_countries.go b/model_paged_countries.go index e93227b9..ce93e60d 100644 --- a/model_paged_countries.go +++ b/model_paged_countries.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paged_industries.go b/model_paged_industries.go index 22f1ce33..3e403cef 100644 --- a/model_paged_industries.go +++ b/model_paged_industries.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paged_languages.go b/model_paged_languages.go index 1c68f2a1..e589c8b9 100644 --- a/model_paged_languages.go +++ b/model_paged_languages.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paged_offices.go b/model_paged_offices.go index 45dfdf75..cf841e03 100644 --- a/model_paged_offices.go +++ b/model_paged_offices.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paged_organizations.go b/model_paged_organizations.go index 8eb3a0bb..e6979167 100644 --- a/model_paged_organizations.go +++ b/model_paged_organizations.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paged_persons.go b/model_paged_persons.go index 558d6424..4b764f6a 100644 --- a/model_paged_persons.go +++ b/model_paged_persons.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paged_profiles.go b/model_paged_profiles.go index 5d90bf2e..d8fe1dec 100644 --- a/model_paged_profiles.go +++ b/model_paged_profiles.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paged_project_participation.go b/model_paged_project_participation.go index a0655e5f..6b76048b 100644 --- a/model_paged_project_participation.go +++ b/model_paged_project_participation.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paged_projects.go b/model_paged_projects.go index f673024f..b6d99c22 100644 --- a/model_paged_projects.go +++ b/model_paged_projects.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paged_skills.go b/model_paged_skills.go index d6c5b961..8233043e 100644 --- a/model_paged_skills.go +++ b/model_paged_skills.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_person.go b/model_person.go index 2b46532c..305a6898 100644 --- a/model_person.go +++ b/model_person.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_person_details.go b/model_person_details.go index 0ac45bc0..c5efeeee 100644 --- a/model_person_details.go +++ b/model_person_details.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_person_project_participation_details.go b/model_person_project_participation_details.go index f4d0a658..be35a7ba 100644 --- a/model_person_project_participation_details.go +++ b/model_person_project_participation_details.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_person_project_participation_item.go b/model_person_project_participation_item.go index dd46b8d4..a15b99fb 100644 --- a/model_person_project_participation_item.go +++ b/model_person_project_participation_item.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_person_score_detail.go b/model_person_score_detail.go index 65da6d27..c3d00060 100644 --- a/model_person_score_detail.go +++ b/model_person_score_detail.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_person_search.go b/model_person_search.go index 8153e833..2cbf6937 100644 --- a/model_person_search.go +++ b/model_person_search.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +19,7 @@ var _ MappedNullable = &PersonSearch{} // PersonSearch struct for PersonSearch type PersonSearch struct { + Search PersonIds []string `json:"personIds,omitempty"` EmployeeIds []string `json:"employeeIds,omitempty"` ProfileIds []string `json:"profileIds,omitempty"` @@ -38,8 +39,10 @@ type PersonSearch struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPersonSearch() *PersonSearch { +func NewPersonSearch(skip int32, limit int32) *PersonSearch { this := PersonSearch{} + this.Skip = skip + this.Limit = limit return &this } @@ -477,6 +480,14 @@ func (o PersonSearch) MarshalJSON() ([]byte, error) { func (o PersonSearch) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + serializedSearch, errSearch := json.Marshal(o.Search) + if errSearch != nil { + return map[string]interface{}{}, errSearch + } + errSearch = json.Unmarshal([]byte(serializedSearch), &toSerialize) + if errSearch != nil { + return map[string]interface{}{}, errSearch + } if !IsNil(o.PersonIds) { toSerialize["personIds"] = o.PersonIds } diff --git a/model_person_skill_filter.go b/model_person_skill_filter.go index ce6068e4..1122d3df 100644 --- a/model_person_skill_filter.go +++ b/model_person_skill_filter.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_profile.go b/model_profile.go index 08d014f8..d60f8b02 100644 --- a/model_profile.go +++ b/model_profile.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_profile_details.go b/model_profile_details.go index d2cd4b1f..5b28ee35 100644 --- a/model_profile_details.go +++ b/model_profile_details.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_project.go b/model_project.go index d713b57a..8d1b691e 100644 --- a/model_project.go +++ b/model_project.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_project_details.go b/model_project_details.go index a19d927c..54ad10ff 100644 --- a/model_project_details.go +++ b/model_project_details.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_project_participation.go b/model_project_participation.go index 56a92177..c69a32d8 100644 --- a/model_project_participation.go +++ b/model_project_participation.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_project_participation_create.go b/model_project_participation_create.go index 65e87aee..36a75923 100644 --- a/model_project_participation_create.go +++ b/model_project_participation_create.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_project_participation_details.go b/model_project_participation_details.go index f91aee06..221e80dc 100644 --- a/model_project_participation_details.go +++ b/model_project_participation_details.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_project_participation_search.go b/model_project_participation_search.go index 7eef2b43..7451a50c 100644 --- a/model_project_participation_search.go +++ b/model_project_participation_search.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +19,7 @@ var _ MappedNullable = &ProjectParticipationSearch{} // ProjectParticipationSearch struct for ProjectParticipationSearch type ProjectParticipationSearch struct { + Search ProjectIds []string `json:"projectIds,omitempty"` PersonIds []string `json:"personIds,omitempty"` ProjectParticipationIds []string `json:"projectParticipationIds,omitempty"` @@ -28,8 +29,10 @@ type ProjectParticipationSearch struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewProjectParticipationSearch() *ProjectParticipationSearch { +func NewProjectParticipationSearch(skip int32, limit int32) *ProjectParticipationSearch { this := ProjectParticipationSearch{} + this.Skip = skip + this.Limit = limit return &this } @@ -147,6 +150,14 @@ func (o ProjectParticipationSearch) MarshalJSON() ([]byte, error) { func (o ProjectParticipationSearch) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + serializedSearch, errSearch := json.Marshal(o.Search) + if errSearch != nil { + return map[string]interface{}{}, errSearch + } + errSearch = json.Unmarshal([]byte(serializedSearch), &toSerialize) + if errSearch != nil { + return map[string]interface{}{}, errSearch + } if !IsNil(o.ProjectIds) { toSerialize["projectIds"] = o.ProjectIds } diff --git a/model_project_participation_update.go b/model_project_participation_update.go index 96a31fd7..26827252 100644 --- a/model_project_participation_update.go +++ b/model_project_participation_update.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_project_score_detail.go b/model_project_score_detail.go index 87cf4920..b2b55c00 100644 --- a/model_project_score_detail.go +++ b/model_project_score_detail.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_project_search.go b/model_project_search.go index b6cf89ff..718a46aa 100644 --- a/model_project_search.go +++ b/model_project_search.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +19,7 @@ var _ MappedNullable = &ProjectSearch{} // ProjectSearch struct for ProjectSearch type ProjectSearch struct { + Search ProjectIds []string `json:"projectIds,omitempty"` MinStartDate *string `json:"minStartDate,omitempty"` MaxEndDate *string `json:"maxEndDate,omitempty"` @@ -39,8 +40,10 @@ type ProjectSearch struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewProjectSearch() *ProjectSearch { +func NewProjectSearch(skip int32, limit int32) *ProjectSearch { this := ProjectSearch{} + this.Skip = skip + this.Limit = limit return &this } @@ -510,6 +513,14 @@ func (o ProjectSearch) MarshalJSON() ([]byte, error) { func (o ProjectSearch) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + serializedSearch, errSearch := json.Marshal(o.Search) + if errSearch != nil { + return map[string]interface{}{}, errSearch + } + errSearch = json.Unmarshal([]byte(serializedSearch), &toSerialize) + if errSearch != nil { + return map[string]interface{}{}, errSearch + } if !IsNil(o.ProjectIds) { toSerialize["projectIds"] = o.ProjectIds } diff --git a/model_project_status.go b/model_project_status.go index e719b5f2..cd980221 100644 --- a/model_project_status.go +++ b/model_project_status.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_project_type.go b/model_project_type.go index df25cf94..d64296ab 100644 --- a/model_project_type.go +++ b/model_project_type.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_score_result.go b/model_score_result.go index 43b2e087..27985684 100644 --- a/model_score_result.go +++ b/model_score_result.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_search.go b/model_search.go new file mode 100644 index 00000000..8dfab6ce --- /dev/null +++ b/model_search.go @@ -0,0 +1,220 @@ +/* +YASM (Yet Another Skill Management) API + +This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. + +API version: 1.17.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" +) + +// checks if the Search type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Search{} + +// Search struct for Search +type Search struct { + Term *string `json:"term,omitempty"` + Skip int32 `json:"skip"` + Limit int32 `json:"limit"` + ObjectType *string `json:"objectType,omitempty"` +} + +// NewSearch instantiates a new Search object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSearch(skip int32, limit int32) *Search { + this := Search{} + this.Skip = skip + this.Limit = limit + return &this +} + +// NewSearchWithDefaults instantiates a new Search object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSearchWithDefaults() *Search { + this := Search{} + var skip int32 = 0 + this.Skip = skip + var limit int32 = 20 + this.Limit = limit + return &this +} + +// GetTerm returns the Term field value if set, zero value otherwise. +func (o *Search) GetTerm() string { + if o == nil || IsNil(o.Term) { + var ret string + return ret + } + return *o.Term +} + +// GetTermOk returns a tuple with the Term field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Search) GetTermOk() (*string, bool) { + if o == nil || IsNil(o.Term) { + return nil, false + } + return o.Term, true +} + +// HasTerm returns a boolean if a field has been set. +func (o *Search) HasTerm() bool { + if o != nil && !IsNil(o.Term) { + return true + } + + return false +} + +// SetTerm gets a reference to the given string and assigns it to the Term field. +func (o *Search) SetTerm(v string) { + o.Term = &v +} + +// GetSkip returns the Skip field value +func (o *Search) GetSkip() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Skip +} + +// GetSkipOk returns a tuple with the Skip field value +// and a boolean to check if the value has been set. +func (o *Search) GetSkipOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Skip, true +} + +// SetSkip sets field value +func (o *Search) SetSkip(v int32) { + o.Skip = v +} + +// GetLimit returns the Limit field value +func (o *Search) GetLimit() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value +// and a boolean to check if the value has been set. +func (o *Search) GetLimitOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Limit, true +} + +// SetLimit sets field value +func (o *Search) SetLimit(v int32) { + o.Limit = v +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *Search) GetObjectType() string { + if o == nil || IsNil(o.ObjectType) { + var ret string + return ret + } + return *o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Search) GetObjectTypeOk() (*string, bool) { + if o == nil || IsNil(o.ObjectType) { + return nil, false + } + return o.ObjectType, true +} + +// HasObjectType returns a boolean if a field has been set. +func (o *Search) HasObjectType() bool { + if o != nil && !IsNil(o.ObjectType) { + return true + } + + return false +} + +// SetObjectType gets a reference to the given string and assigns it to the ObjectType field. +func (o *Search) SetObjectType(v string) { + o.ObjectType = &v +} + +func (o Search) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Search) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Term) { + toSerialize["term"] = o.Term + } + toSerialize["skip"] = o.Skip + toSerialize["limit"] = o.Limit + if !IsNil(o.ObjectType) { + toSerialize["objectType"] = o.ObjectType + } + return toSerialize, nil +} + +type NullableSearch struct { + value *Search + isSet bool +} + +func (v NullableSearch) Get() *Search { + return v.value +} + +func (v *NullableSearch) Set(val *Search) { + v.value = val + v.isSet = true +} + +func (v NullableSearch) IsSet() bool { + return v.isSet +} + +func (v *NullableSearch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSearch(val *Search) *NullableSearch { + return &NullableSearch{value: val, isSet: true} +} + +func (v NullableSearch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSearch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_search_result.go b/model_search_result.go index 1d1e997e..c084fd20 100644 --- a/model_search_result.go +++ b/model_search_result.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_search_result_item.go b/model_search_result_item.go index bec2c55c..6afb36c8 100644 --- a/model_search_result_item.go +++ b/model_search_result_item.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_seniority.go b/model_seniority.go index 3352a9f7..c29af9c1 100644 --- a/model_seniority.go +++ b/model_seniority.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_skill.go b/model_skill.go index 1cf6a5cd..e7ac7526 100644 --- a/model_skill.go +++ b/model_skill.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_skill_details.go b/model_skill_details.go index 7164b59a..d21b0ef7 100644 --- a/model_skill_details.go +++ b/model_skill_details.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_skill_group.go b/model_skill_group.go index 30659d2a..cb4bb583 100644 --- a/model_skill_group.go +++ b/model_skill_group.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_skill_level.go b/model_skill_level.go index 4daeef37..4a915f49 100644 --- a/model_skill_level.go +++ b/model_skill_level.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_skill_level_update.go b/model_skill_level_update.go index f3e68612..f06b08f9 100644 --- a/model_skill_level_update.go +++ b/model_skill_level_update.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_skill_link.go b/model_skill_link.go index dd25723a..ed215131 100644 --- a/model_skill_link.go +++ b/model_skill_link.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_skill_link_update.go b/model_skill_link_update.go index 8dd3f5b3..aa7cf9ae 100644 --- a/model_skill_link_update.go +++ b/model_skill_link_update.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_skill_search.go b/model_skill_search.go new file mode 100644 index 00000000..9c3fccec --- /dev/null +++ b/model_skill_search.go @@ -0,0 +1,220 @@ +/* +YASM (Yet Another Skill Management) API + +This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. + +API version: 1.17.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" +) + +// checks if the SkillSearch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SkillSearch{} + +// SkillSearch struct for SkillSearch +type SkillSearch struct { + Search + // Gives you either all skills, only the root kills + Types *string `json:"types,omitempty"` + // Optionally filter skills based on suggestion + Suggestions *string `json:"suggestions,omitempty"` + // Optionally filter skills based on linkable + Linkable *bool `json:"linkable,omitempty"` +} + +// NewSkillSearch instantiates a new SkillSearch object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSkillSearch(skip int32, limit int32) *SkillSearch { + this := SkillSearch{} + this.Skip = skip + this.Limit = limit + var types string = "all" + this.Types = &types + var suggestions string = "all" + this.Suggestions = &suggestions + return &this +} + +// NewSkillSearchWithDefaults instantiates a new SkillSearch object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSkillSearchWithDefaults() *SkillSearch { + this := SkillSearch{} + var types string = "all" + this.Types = &types + var suggestions string = "all" + this.Suggestions = &suggestions + return &this +} + +// GetTypes returns the Types field value if set, zero value otherwise. +func (o *SkillSearch) GetTypes() string { + if o == nil || IsNil(o.Types) { + var ret string + return ret + } + return *o.Types +} + +// GetTypesOk returns a tuple with the Types field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkillSearch) GetTypesOk() (*string, bool) { + if o == nil || IsNil(o.Types) { + return nil, false + } + return o.Types, true +} + +// HasTypes returns a boolean if a field has been set. +func (o *SkillSearch) HasTypes() bool { + if o != nil && !IsNil(o.Types) { + return true + } + + return false +} + +// SetTypes gets a reference to the given string and assigns it to the Types field. +func (o *SkillSearch) SetTypes(v string) { + o.Types = &v +} + +// GetSuggestions returns the Suggestions field value if set, zero value otherwise. +func (o *SkillSearch) GetSuggestions() string { + if o == nil || IsNil(o.Suggestions) { + var ret string + return ret + } + return *o.Suggestions +} + +// GetSuggestionsOk returns a tuple with the Suggestions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkillSearch) GetSuggestionsOk() (*string, bool) { + if o == nil || IsNil(o.Suggestions) { + return nil, false + } + return o.Suggestions, true +} + +// HasSuggestions returns a boolean if a field has been set. +func (o *SkillSearch) HasSuggestions() bool { + if o != nil && !IsNil(o.Suggestions) { + return true + } + + return false +} + +// SetSuggestions gets a reference to the given string and assigns it to the Suggestions field. +func (o *SkillSearch) SetSuggestions(v string) { + o.Suggestions = &v +} + +// GetLinkable returns the Linkable field value if set, zero value otherwise. +func (o *SkillSearch) GetLinkable() bool { + if o == nil || IsNil(o.Linkable) { + var ret bool + return ret + } + return *o.Linkable +} + +// GetLinkableOk returns a tuple with the Linkable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkillSearch) GetLinkableOk() (*bool, bool) { + if o == nil || IsNil(o.Linkable) { + return nil, false + } + return o.Linkable, true +} + +// HasLinkable returns a boolean if a field has been set. +func (o *SkillSearch) HasLinkable() bool { + if o != nil && !IsNil(o.Linkable) { + return true + } + + return false +} + +// SetLinkable gets a reference to the given bool and assigns it to the Linkable field. +func (o *SkillSearch) SetLinkable(v bool) { + o.Linkable = &v +} + +func (o SkillSearch) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SkillSearch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + serializedSearch, errSearch := json.Marshal(o.Search) + if errSearch != nil { + return map[string]interface{}{}, errSearch + } + errSearch = json.Unmarshal([]byte(serializedSearch), &toSerialize) + if errSearch != nil { + return map[string]interface{}{}, errSearch + } + if !IsNil(o.Types) { + toSerialize["types"] = o.Types + } + if !IsNil(o.Suggestions) { + toSerialize["suggestions"] = o.Suggestions + } + if !IsNil(o.Linkable) { + toSerialize["linkable"] = o.Linkable + } + return toSerialize, nil +} + +type NullableSkillSearch struct { + value *SkillSearch + isSet bool +} + +func (v NullableSkillSearch) Get() *SkillSearch { + return v.value +} + +func (v *NullableSkillSearch) Set(val *SkillSearch) { + v.value = val + v.isSet = true +} + +func (v NullableSkillSearch) IsSet() bool { + return v.isSet +} + +func (v *NullableSkillSearch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSkillSearch(val *SkillSearch) *NullableSkillSearch { + return &NullableSkillSearch{value: val, isSet: true} +} + +func (v NullableSkillSearch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSkillSearch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_status.go b/model_status.go index 1e7abcd3..72d011e7 100644 --- a/model_status.go +++ b/model_status.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_suggestable.go b/model_suggestable.go index 99594114..f8bddf9f 100644 --- a/model_suggestable.go +++ b/model_suggestable.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_synonymable.go b/model_synonymable.go index fd36b704..13f7a62d 100644 --- a/model_synonymable.go +++ b/model_synonymable.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_timeframed.go b/model_timeframed.go index 18e1a289..855600d2 100644 --- a/model_timeframed.go +++ b/model_timeframed.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_version.go b/model_version.go index f44774ec..b6e176d8 100644 --- a/model_version.go +++ b/model_version.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/response.go b/response.go index 95120d8b..4f59cb48 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/test/api_certification_test.go b/test/api_certification_test.go index e8cd857d..d1bc269a 100644 --- a/test/api_certification_test.go +++ b/test/api_certification_test.go @@ -56,9 +56,7 @@ func Test_client_CertificationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - var organizationId string - - resp, httpRes, err := apiClient.CertificationAPI.CreateCertification(context.Background(), organizationId).Execute() + resp, httpRes, err := apiClient.CertificationAPI.CreateCertification(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -124,40 +122,14 @@ func Test_client_CertificationAPIService(t *testing.T) { }) - t.Run("Test CertificationAPIService GetCertifications", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CertificationAPI.GetCertifications(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CertificationAPIService GetCertificationsForOrganization", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var organizationId string - - resp, httpRes, err := apiClient.CertificationAPI.GetCertificationsForOrganization(context.Background(), organizationId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - t.Run("Test CertificationAPIService MoveCertification", func(t *testing.T) { t.Skip("skip test") // remove to run test - var organizationId string var certificationId string + var organizationId string - resp, httpRes, err := apiClient.CertificationAPI.MoveCertification(context.Background(), organizationId, certificationId).Execute() + resp, httpRes, err := apiClient.CertificationAPI.MoveCertification(context.Background(), certificationId, organizationId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_countries_test.go b/test/api_countries_test.go new file mode 100644 index 00000000..06e4cddd --- /dev/null +++ b/test/api_countries_test.go @@ -0,0 +1,37 @@ +/* +YASM (Yet Another Skill Management) API + +Testing CountriesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package client + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/prodyna-yasm/yasm-api-go" +) + +func Test_client_CountriesAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CountriesAPIService SearchCountries", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CountriesAPI.SearchCountries(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_country_test.go b/test/api_country_test.go index b1f2f733..48ac9b33 100644 --- a/test/api_country_test.go +++ b/test/api_country_test.go @@ -63,18 +63,6 @@ func Test_client_CountryAPIService(t *testing.T) { }) - t.Run("Test CountryAPIService GetCountries", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CountryAPI.GetCountries(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - t.Run("Test CountryAPIService GetCountry", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/test/api_industries_test.go b/test/api_industries_test.go new file mode 100644 index 00000000..f9b05139 --- /dev/null +++ b/test/api_industries_test.go @@ -0,0 +1,37 @@ +/* +YASM (Yet Another Skill Management) API + +Testing IndustriesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package client + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/prodyna-yasm/yasm-api-go" +) + +func Test_client_IndustriesAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test IndustriesAPIService SearchIndustries", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IndustriesAPI.SearchIndustries(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_industry_test.go b/test/api_industry_test.go index 1180794a..1a22aaa3 100644 --- a/test/api_industry_test.go +++ b/test/api_industry_test.go @@ -78,18 +78,6 @@ func Test_client_IndustryAPIService(t *testing.T) { }) - t.Run("Test IndustryAPIService GetIndustries", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IndustryAPI.GetIndustries(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - t.Run("Test IndustryAPIService GetIndustry", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/test/api_language_test.go b/test/api_language_test.go index 375a8afd..657b49ba 100644 --- a/test/api_language_test.go +++ b/test/api_language_test.go @@ -92,18 +92,6 @@ func Test_client_LanguageAPIService(t *testing.T) { }) - t.Run("Test LanguageAPIService GetLanguages", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.LanguageAPI.GetLanguages(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - t.Run("Test LanguageAPIService RemoveLanguageFromCountry", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/test/api_languages_test.go b/test/api_languages_test.go new file mode 100644 index 00000000..978627c9 --- /dev/null +++ b/test/api_languages_test.go @@ -0,0 +1,37 @@ +/* +YASM (Yet Another Skill Management) API + +Testing LanguagesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package client + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/prodyna-yasm/yasm-api-go" +) + +func Test_client_LanguagesAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test LanguagesAPIService SearchLanguages", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.LanguagesAPI.SearchLanguages(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_office_test.go b/test/api_office_test.go index 6f1f69f8..72b8d567 100644 --- a/test/api_office_test.go +++ b/test/api_office_test.go @@ -41,9 +41,7 @@ func Test_client_OfficeAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - var organizationId string - - resp, httpRes, err := apiClient.OfficeAPI.CreateOffice(context.Background(), organizationId).Execute() + resp, httpRes, err := apiClient.OfficeAPI.CreateOffice(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -55,10 +53,9 @@ func Test_client_OfficeAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - var organizationId string var officeId string - resp, httpRes, err := apiClient.OfficeAPI.DeleteOffice(context.Background(), organizationId, officeId).Execute() + resp, httpRes, err := apiClient.OfficeAPI.DeleteOffice(context.Background(), officeId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -81,21 +78,6 @@ func Test_client_OfficeAPIService(t *testing.T) { }) - t.Run("Test OfficeAPIService GetOffice", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var organizationId string - var officeId string - - resp, httpRes, err := apiClient.OfficeAPI.GetOffice(context.Background(), organizationId, officeId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - t.Run("Test OfficeAPIService GetOfficeDetails", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -110,26 +92,13 @@ func Test_client_OfficeAPIService(t *testing.T) { }) - t.Run("Test OfficeAPIService GetOffices", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.OfficeAPI.GetOffices(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - t.Run("Test OfficeAPIService UpdateOffice", func(t *testing.T) { t.Skip("skip test") // remove to run test - var organizationId string var officeId string - resp, httpRes, err := apiClient.OfficeAPI.UpdateOffice(context.Background(), organizationId, officeId).Execute() + resp, httpRes, err := apiClient.OfficeAPI.UpdateOffice(context.Background(), officeId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_offices_test.go b/test/api_offices_test.go new file mode 100644 index 00000000..3c0e9f82 --- /dev/null +++ b/test/api_offices_test.go @@ -0,0 +1,37 @@ +/* +YASM (Yet Another Skill Management) API + +Testing OfficesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package client + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/prodyna-yasm/yasm-api-go" +) + +func Test_client_OfficesAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test OfficesAPIService SearchOffices", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OfficesAPI.SearchOffices(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_organization_test.go b/test/api_organization_test.go index 4efd6d84..48b0d4d4 100644 --- a/test/api_organization_test.go +++ b/test/api_organization_test.go @@ -67,27 +67,11 @@ func Test_client_OrganizationAPIService(t *testing.T) { }) - t.Run("Test OrganizationAPIService CreateCertification", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var organizationId string - - resp, httpRes, err := apiClient.OrganizationAPI.CreateCertification(context.Background(), organizationId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - t.Run("Test OrganizationAPIService CreateOffice", func(t *testing.T) { t.Skip("skip test") // remove to run test - var organizationId string - - resp, httpRes, err := apiClient.OrganizationAPI.CreateOffice(context.Background(), organizationId).Execute() + resp, httpRes, err := apiClient.OrganizationAPI.CreateOffice(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -111,24 +95,7 @@ func Test_client_OrganizationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - var organizationId string - - resp, httpRes, err := apiClient.OrganizationAPI.CreateProject(context.Background(), organizationId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test OrganizationAPIService DeleteOffice", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var organizationId string - var officeId string - - resp, httpRes, err := apiClient.OrganizationAPI.DeleteOffice(context.Background(), organizationId, officeId).Execute() + resp, httpRes, err := apiClient.OrganizationAPI.CreateProject(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -165,35 +132,6 @@ func Test_client_OrganizationAPIService(t *testing.T) { }) - t.Run("Test OrganizationAPIService GetCertificationsForOrganization", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var organizationId string - - resp, httpRes, err := apiClient.OrganizationAPI.GetCertificationsForOrganization(context.Background(), organizationId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test OrganizationAPIService GetOffice", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var organizationId string - var officeId string - - resp, httpRes, err := apiClient.OrganizationAPI.GetOffice(context.Background(), organizationId, officeId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - t.Run("Test OrganizationAPIService GetOrganization", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -208,13 +146,14 @@ func Test_client_OrganizationAPIService(t *testing.T) { }) - t.Run("Test OrganizationAPIService GetOrganizationProjects", func(t *testing.T) { + t.Run("Test OrganizationAPIService MoveCertification", func(t *testing.T) { t.Skip("skip test") // remove to run test + var certificationId string var organizationId string - resp, httpRes, err := apiClient.OrganizationAPI.GetOrganizationProjects(context.Background(), organizationId).Execute() + resp, httpRes, err := apiClient.OrganizationAPI.MoveCertification(context.Background(), certificationId, organizationId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -222,26 +161,14 @@ func Test_client_OrganizationAPIService(t *testing.T) { }) - t.Run("Test OrganizationAPIService GetOrganizations", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.OrganizationAPI.GetOrganizations(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test OrganizationAPIService MoveCertification", func(t *testing.T) { + t.Run("Test OrganizationAPIService MoveProject", func(t *testing.T) { t.Skip("skip test") // remove to run test + var projectId string var organizationId string - var certificationId string - resp, httpRes, err := apiClient.OrganizationAPI.MoveCertification(context.Background(), organizationId, certificationId).Execute() + resp, httpRes, err := apiClient.OrganizationAPI.MoveProject(context.Background(), projectId, organizationId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -279,14 +206,11 @@ func Test_client_OrganizationAPIService(t *testing.T) { }) - t.Run("Test OrganizationAPIService UpdateOffice", func(t *testing.T) { + t.Run("Test OrganizationAPIService SearchOrganizations", func(t *testing.T) { t.Skip("skip test") // remove to run test - var organizationId string - var officeId string - - resp, httpRes, err := apiClient.OrganizationAPI.UpdateOffice(context.Background(), organizationId, officeId).Execute() + resp, httpRes, err := apiClient.OrganizationAPI.SearchOrganizations(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -308,19 +232,4 @@ func Test_client_OrganizationAPIService(t *testing.T) { }) - t.Run("Test OrganizationAPIService UpdateProjectOrganization", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var organizationId string - var projectId string - - resp, httpRes, err := apiClient.OrganizationAPI.UpdateProjectOrganization(context.Background(), organizationId, projectId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - } diff --git a/test/api_person_test.go b/test/api_person_test.go index c9975860..a7caa1c3 100644 --- a/test/api_person_test.go +++ b/test/api_person_test.go @@ -340,18 +340,6 @@ func Test_client_PersonAPIService(t *testing.T) { }) - t.Run("Test PersonAPIService GetAllBusinessDepartments", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.PersonAPI.GetAllBusinessDepartments(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - t.Run("Test PersonAPIService GetAvailabilities", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/test/api_profile_test.go b/test/api_profile_test.go index 1cc41200..117dd4fc 100644 --- a/test/api_profile_test.go +++ b/test/api_profile_test.go @@ -92,18 +92,6 @@ func Test_client_ProfileAPIService(t *testing.T) { }) - t.Run("Test ProfileAPIService GetProfiles", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ProfileAPI.GetProfiles(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - t.Run("Test ProfileAPIService UpdateProfile", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/test/api_profiles_test.go b/test/api_profiles_test.go new file mode 100644 index 00000000..502f1131 --- /dev/null +++ b/test/api_profiles_test.go @@ -0,0 +1,37 @@ +/* +YASM (Yet Another Skill Management) API + +Testing ProfilesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package client + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/prodyna-yasm/yasm-api-go" +) + +func Test_client_ProfilesAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ProfilesAPIService SearchProfiles", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ProfilesAPI.SearchProfiles(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_project_test.go b/test/api_project_test.go index 9f825946..0d30cb92 100644 --- a/test/api_project_test.go +++ b/test/api_project_test.go @@ -69,9 +69,7 @@ func Test_client_ProjectAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - var organizationId string - - resp, httpRes, err := apiClient.ProjectAPI.CreateProject(context.Background(), organizationId).Execute() + resp, httpRes, err := apiClient.ProjectAPI.CreateProject(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -107,13 +105,13 @@ func Test_client_ProjectAPIService(t *testing.T) { }) - t.Run("Test ProjectAPIService GetOrganizationProjects", func(t *testing.T) { + t.Run("Test ProjectAPIService GetProject", func(t *testing.T) { t.Skip("skip test") // remove to run test - var organizationId string + var projectId string - resp, httpRes, err := apiClient.ProjectAPI.GetOrganizationProjects(context.Background(), organizationId).Execute() + resp, httpRes, err := apiClient.ProjectAPI.GetProject(context.Background(), projectId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -121,13 +119,14 @@ func Test_client_ProjectAPIService(t *testing.T) { }) - t.Run("Test ProjectAPIService GetProject", func(t *testing.T) { + t.Run("Test ProjectAPIService MoveProject", func(t *testing.T) { t.Skip("skip test") // remove to run test var projectId string + var organizationId string - resp, httpRes, err := apiClient.ProjectAPI.GetProject(context.Background(), projectId).Execute() + resp, httpRes, err := apiClient.ProjectAPI.MoveProject(context.Background(), projectId, organizationId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -218,21 +217,6 @@ func Test_client_ProjectAPIService(t *testing.T) { }) - t.Run("Test ProjectAPIService UpdateProjectOrganization", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var organizationId string - var projectId string - - resp, httpRes, err := apiClient.ProjectAPI.UpdateProjectOrganization(context.Background(), organizationId, projectId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - t.Run("Test ProjectAPIService UpdateProjectParticipation", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/test/api_search_test.go b/test/api_search_test.go index 708ed1de..5b4b9fb6 100644 --- a/test/api_search_test.go +++ b/test/api_search_test.go @@ -22,13 +22,11 @@ func Test_client_SearchAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test SearchAPIService SearchAll", func(t *testing.T) { + t.Run("Test SearchAPIService Search", func(t *testing.T) { t.Skip("skip test") // remove to run test - var text string - - resp, httpRes, err := apiClient.SearchAPI.SearchAll(context.Background(), text).Execute() + resp, httpRes, err := apiClient.SearchAPI.Search(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_skill_test.go b/test/api_skill_test.go index 88746b87..09e83e55 100644 --- a/test/api_skill_test.go +++ b/test/api_skill_test.go @@ -211,25 +211,15 @@ func Test_client_SkillAPIService(t *testing.T) { }) - t.Run("Test SkillAPIService GetSkillParents", func(t *testing.T) { + t.Run("Test SkillAPIService RemoveSkillConfirmation", func(t *testing.T) { t.Skip("skip test") // remove to run test + var projectParticipationId string var skillId string + var confirmingPersonId string - resp, httpRes, err := apiClient.SkillAPI.GetSkillParents(context.Background(), skillId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test SkillAPIService GetSkills", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.SkillAPI.GetSkills(context.Background()).Execute() + resp, httpRes, err := apiClient.SkillAPI.RemoveSkillConfirmation(context.Background(), projectParticipationId, skillId, confirmingPersonId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -237,15 +227,14 @@ func Test_client_SkillAPIService(t *testing.T) { }) - t.Run("Test SkillAPIService RemoveSkillConfirmation", func(t *testing.T) { + t.Run("Test SkillAPIService RemoveSkillFromParentSkill", func(t *testing.T) { t.Skip("skip test") // remove to run test - var projectParticipationId string var skillId string - var confirmingPersonId string + var parentSkillId string - resp, httpRes, err := apiClient.SkillAPI.RemoveSkillConfirmation(context.Background(), projectParticipationId, skillId, confirmingPersonId).Execute() + resp, httpRes, err := apiClient.SkillAPI.RemoveSkillFromParentSkill(context.Background(), skillId, parentSkillId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -253,14 +242,11 @@ func Test_client_SkillAPIService(t *testing.T) { }) - t.Run("Test SkillAPIService RemoveSkillFromParentSkill", func(t *testing.T) { + t.Run("Test SkillAPIService SearchSkills", func(t *testing.T) { t.Skip("skip test") // remove to run test - var skillId string - var parentSkillId string - - resp, httpRes, err := apiClient.SkillAPI.RemoveSkillFromParentSkill(context.Background(), skillId, parentSkillId).Execute() + resp, httpRes, err := apiClient.SkillAPI.SearchSkills(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/utils.go b/utils.go index a3f55a8a..4d3e2412 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ YASM (Yet Another Skill Management) API This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API. -API version: 1.16.5 +API version: 1.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.