Skip to content

Commit

Permalink
fix(examples): update examples to have nicer tables for securiry defi…
Browse files Browse the repository at this point in the history
…nitions
  • Loading branch information
syroegkin committed Dec 25, 2022
1 parent 7388984 commit 1d7435b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions examples/basic-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ Server code is available [here](https://github.com/mohsen1/basic-auth-server). I
##### Security

| Security Schema | Scopes |
| --- | --- |
| basicAuth | |
| --------------- | ------ |
| basicAuth | |
10 changes: 5 additions & 5 deletions examples/instagram.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ Get basic information about a user.
##### Security

| Security Schema | Scopes |
| --- | --- |
| key | |
| --------------- | ------ |
| key | |
| oauth | basic |

### /users/self/feed
Expand Down Expand Up @@ -332,7 +332,7 @@ Modify the relationship between the current user and thetarget user.
##### Security

| Security Schema | Scopes |
| --- | --- |
| --------------- | ------ |
| oauth | relationships |

### /media/{media-id}
Expand Down Expand Up @@ -467,7 +467,7 @@ Create a comment on a media object with the following rules:
##### Security

| Security Schema | Scopes |
| --- | --- |
| --------------- | ------ |
| oauth | comments |

#### DELETE
Expand Down Expand Up @@ -527,7 +527,7 @@ Set a like on this media by the currently authenticated user.
##### Security

| Security Schema | Scopes |
| --- | --- |
| --------------- | ------ |
| oauth | comments |

#### DELETE
Expand Down
30 changes: 15 additions & 15 deletions examples/petstore_full.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ Add a new pet to the store

##### Security

| Security Schema | Scopes | |
| --- | --- | --- |
| Security Schema | Scopes | |
| --------------- | ------ | --- |
| petstore_auth | write_pets | read_pets |

#### PUT
Expand All @@ -83,8 +83,8 @@ Update an existing pet

##### Security

| Security Schema | Scopes | |
| --- | --- | --- |
| Security Schema | Scopes | |
| --------------- | ------ | --- |
| petstore_auth | write_pets | read_pets |

### /pets/findByStatus
Expand Down Expand Up @@ -113,8 +113,8 @@ Multiple status values can be provided with comma seperated strings

##### Security

| Security Schema | Scopes | |
| --- | --- | --- |
| Security Schema | Scopes | |
| --------------- | ------ | --- |
| petstore_auth | write_pets | read_pets |

### /pets/findByTags
Expand Down Expand Up @@ -143,8 +143,8 @@ Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3

##### Security

| Security Schema | Scopes | |
| --- | --- | --- |
| Security Schema | Scopes | |
| --------------- | ------ | --- |
| petstore_auth | write_pets | read_pets |

### /pets/{petId}
Expand Down Expand Up @@ -174,9 +174,9 @@ Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error cond

##### Security

| Security Schema | Scopes | |
| --- | --- | --- |
| api_key | | |
| Security Schema | Scopes | |
| --------------- | ------ | --- |
| api_key | | |
| petstore_auth | write_pets | read_pets |

#### POST
Expand All @@ -202,8 +202,8 @@ Updates a pet in the store with form data

##### Security

| Security Schema | Scopes | |
| --- | --- | --- |
| Security Schema | Scopes | |
| --------------- | ------ | --- |
| petstore_auth | write_pets | read_pets |

#### DELETE
Expand All @@ -228,8 +228,8 @@ Deletes a pet

##### Security

| Security Schema | Scopes | |
| --- | --- | --- |
| Security Schema | Scopes | |
| --------------- | ------ | --- |
| petstore_auth | write_pets | read_pets |

### /stores/order
Expand Down
4 changes: 2 additions & 2 deletions examples/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ Returns pets based on ID
##### Security

| Security Schema | Scopes |
| --- | --- |
| --------------- | ------ |
| githubAccessCode | user |
| internalApiKey | |
| internalApiKey | |

### Models

Expand Down

0 comments on commit 1d7435b

Please sign in to comment.