Jonas Reichert 22086e4f3c
[swift5] support both date and date-time formats (#13520)
* add withoutTime formatter

* add DateWithoutTime

wip

* fix CI

# Conflicts:
#	samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/DateWithoutTime.swift

* implement flag and adjust tests

* generate samples and docs

* docs

* update samples

* remove samples of legacy python generator

* Revert "remove samples of legacy python generator"

This reverts commit 28da78f99dcaa6cf761367b0a2d2c3fddf4803ec.

* review remarks

* generate samples

* fix

* review remarks

* remove samples

* generate swift 5 samples

* generate csharp examples

* docs

* Revert "generate csharp examples"

This reverts commit d1deb17dbcd04b9b00d9ad4a08ce55bedd960de8.

* Revert "generate swift 5 samples"

This reverts commit 968e859bfe3ce631f174d10f10983ed2f5c09486.

* Revert "remove samples"

This reverts commit a43d21529ba6a9e615671729d970ec7ef9662402.

* manually remove FILES

* regenerate files

* reviewers remarks

* delete all date without times

* update config of alamofireLib to use new attribute and generate samples again

* docs
2022-09-26 17:39:35 +01:00
..
2022-09-25 00:10:30 +08:00

Swift5 API client for PetstoreClient

This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: " \

Overview

This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version:
  • Build package: org.openapitools.codegen.languages.Swift5ClientCodegen

Installation

Carthage

Run carthage update

CocoaPods

Run pod install

Documentation for API Endpoints

All URIs are relative to http://petstore.swagger.io:80/v2

Class Method HTTP request Description
AnotherFakeAPI call123testSpecialTags PATCH /another-fake/dummy To test special tags
FakeAPI fakeOuterBooleanSerialize POST /fake/outer/boolean
FakeAPI fakeOuterCompositeSerialize POST /fake/outer/composite
FakeAPI fakeOuterNumberSerialize POST /fake/outer/number
FakeAPI fakeOuterStringSerialize POST /fake/outer/string
FakeAPI testBodyWithFileSchema PUT /fake/body-with-file-schema
FakeAPI testBodyWithQueryParams PUT /fake/body-with-query-params
FakeAPI testClientModel PATCH /fake To test "client" model
FakeAPI testEndpointParameters POST /fake Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
FakeAPI testEnumParameters GET /fake To test enum parameters
FakeAPI testGroupParameters DELETE /fake Fake endpoint to test group parameters (optional)
FakeAPI testInlineAdditionalProperties POST /fake/inline-additionalProperties test inline additionalProperties
FakeAPI testJsonFormData GET /fake/jsonFormData test json serialization of form data
FakeClassnameTags123API testClassname PATCH /fake_classname_test To test class name in snake case
PetAPI addPet POST /pet Add a new pet to the store
PetAPI deletePet DELETE /pet/{petId} Deletes a pet
PetAPI findPetsByStatus GET /pet/findByStatus Finds Pets by status
PetAPI findPetsByTags GET /pet/findByTags Finds Pets by tags
PetAPI getPetById GET /pet/{petId} Find pet by ID
PetAPI updatePet PUT /pet Update an existing pet
PetAPI updatePetWithForm POST /pet/{petId} Updates a pet in the store with form data
PetAPI uploadFile POST /pet/{petId}/uploadImage uploads an image
PetAPI uploadFileWithRequiredFile POST /fake/{petId}/uploadImageWithRequiredFile uploads an image (required)
StoreAPI deleteOrder DELETE /store/order/{order_id} Delete purchase order by ID
StoreAPI getInventory GET /store/inventory Returns pet inventories by status
StoreAPI getOrderById GET /store/order/{order_id} Find purchase order by ID
StoreAPI placeOrder POST /store/order Place an order for a pet
UserAPI createUser POST /user Create user
UserAPI createUsersWithArrayInput POST /user/createWithArray Creates list of users with given input array
UserAPI createUsersWithListInput POST /user/createWithList Creates list of users with given input array
UserAPI deleteUser DELETE /user/{username} Delete user
UserAPI getUserByName GET /user/{username} Get user by user name
UserAPI loginUser GET /user/login Logs user into the system
UserAPI logoutUser GET /user/logout Logs out current logged in user session
UserAPI updateUser PUT /user/{username} Updated user

Documentation For Models

Documentation For Authorization

api_key

  • Type: API key
  • API key parameter name: api_key
  • Location: HTTP header

api_key_query

  • Type: API key
  • API key parameter name: api_key_query
  • Location: URL query string

http_basic_test

  • Type: HTTP basic authentication

petstore_auth

Author