Skip to content

Commit

Permalink
Update open api specs
Browse files Browse the repository at this point in the history
  • Loading branch information
chicco785 authored and github-actions[bot] committed Oct 25, 2022
1 parent 7361332 commit cd4f92b
Show file tree
Hide file tree
Showing 2 changed files with 424 additions and 10 deletions.
112 changes: 110 additions & 2 deletions docs/user/walkthrough.md
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ Delete an Audit Log for a given Tenant and Service Path
| 404 | Not found |
| 422 | Validation Error |

### /v1/resources/
### /v1/middleware/resources

#### GET
##### Summary:
Expand All @@ -563,7 +563,7 @@ List resources managed (for a given Tenant and Service Path)
| 404 | Not found |
| 422 | Validation Error |

### /v1/resources/mine
### /v1/middleware/resources/mine

#### GET
##### Summary:
Expand Down Expand Up @@ -594,6 +594,114 @@ List resources owned by me
| --- | --- |
| OptionalHTTPBearer | |

### /v1/middleware/policies

#### GET
##### Summary:

List policies for a given resource

##### Parameters

| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ---- |
| resource | query | | No | string |
| resource_type | query | | No | string |
| skip | query | | No | integer |
| limit | query | | No | integer |
| fiware-service | header | | No | string |
| fiware-servicepath | header | | No | string |

##### Responses

| Code | Description |
| ---- | ----------- |
| 200 | Successful Response |
| 404 | Not found |
| 422 | Validation Error |

#### POST
##### Summary:

Create a policy for a given Tenant and Service Path

##### Parameters

| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ---- |
| owner | header | | No | string |
| fiware-service | header | | No | string |
| fiware-servicepath | header | | No | string |

##### Responses

| Code | Description |
| ---- | ----------- |
| 201 | Successful Response |
| 404 | Not found |
| 422 | Validation Error |

### /v1/middleware/policies/{policy_id}

#### GET
##### Summary:

Get a policy

##### Parameters

| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ---- |
| policy_id | path | | Yes | string |
| fiware-service | header | | No | string |
| fiware-servicepath | header | | No | string |

##### Responses

| Code | Description |
| ---- | ----------- |
| 200 | Successful Response |
| 404 | Not found |
| 422 | Validation Error |

#### PUT
##### Summary:

Update a policy for a given Tenant and Service Path

##### Parameters

| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ---- |
| policy_id | path | | Yes | string |

##### Responses

| Code | Description |
| ---- | ----------- |
| 204 | Successful Response |
| 404 | Not found |
| 422 | Validation Error |

#### DELETE
##### Summary:

Delete a policy for a given Tenant and Service Path

##### Parameters

| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ---- |
| policy_id | path | | Yes | string |

##### Responses

| Code | Description |
| ---- | ----------- |
| 204 | Successful Response |
| 404 | Not found |
| 422 | Validation Error |

### /

#### GET
Expand Down
Loading

0 comments on commit cd4f92b

Please sign in to comment.