-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from wparad/add-last-modified-support
Support expectedLastModifiedTime for access records and groups.
- Loading branch information
Showing
7 changed files
with
117 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
|
||
## Using the OpenAPI Generator to generate new models | ||
|
||
#### Start container | ||
```sh | ||
podman pull docker://openapitools/openapi-generator-online | ||
``` | ||
|
||
#### Start container at port 8888 and save the container id | ||
```sh | ||
CID=$(podman run -d -p 8888:8080 openapitools/openapi-generator-online) | ||
sleep 10 | ||
|
||
# Execute an HTTP request to generate a Ruby client | ||
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"openAPIUrl": "https://api.authress.io/", "options": { "useSingleRequestParameter": true, "packageName": "authress", "packageVersion": "99.99.99" } }' 'http://localhost:8888/api/gen/clients/csharp' | ||
|
||
|
||
# RESPONSE: { "link":"http://localhost:8888/api/gen/download/c2d483.3.4672-40e9-91df-b9ffd18d22b8" } | ||
``` | ||
|
||
### Download the generated zip file | ||
```sh | ||
|
||
wget RESPONSE_LINK | ||
|
||
# Unzip the file | ||
unzip SHA | ||
|
||
# Shutdown the openapi generator image | ||
podman stop $CID && podman rm $CID | ||
``` | ||
|
||
### Common review items | ||
* [ ] Inputs to Constructor are (string: authress_api_url, string: service_client_access_key) | ||
* [x] authress_api_url should sanitize https:// prefix and remove trailing `/`s | ||
* [ ] Add authentication to the configuration class. | ||
* [ ] Change configuration class name to be `AuthressSettings` | ||
* Specify all the inputs to be consistent across languages | ||
* [ ] constructors for classes should only have relevant input properties, for instances `links` are not required. | ||
* [ ] Update documentation | ||
* Make sure markdown is valid | ||
* Remove unnecessary links | ||
* Add first class examples to readme.md + api documentation | ||
* Find failed UserId, RoleId, TenantId, GroupId, Action properties and convert them to strings | ||
* [ ] Remove any unnecessary validations from object and parameter injection, often there are some even when properties are allowed to be null | ||
* [ ] The service client code to generate a JWT from private key needs to be added | ||
* [ ] Add UnauthorizedError type to the authorizeUser function | ||
* [ ] GET query parameters should be an object | ||
* [ ] Top level tags from the API should accessible from the base class: `authressClient.accessRecords.getRecords(...)` | ||
* [ ] Automatic Retry | ||
* [ ] Automatic fallback to cache | ||
* [ ] In memory caching for authorization checks - memoize | ||
* [ ] Unsigned int for all limits | ||
* [ ] readonly properties are never specified as required for request bodies | ||
* [ ] Update Documentation for the API | ||
* [ ] Validate all enums are enums and can be null when they should be. | ||
* [ ] Remove LocalHost from the docs | ||
* [ ] Tests | ||
* [x] If-unmodified-since should called `expectedLastModifiedTime`, accept string or dateTime and convert this to an ISO String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters