Skip to content

Commit

Permalink
remove /rpw prefix from internal endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
internet-diglett committed Nov 14, 2023
1 parent 0ffee3f commit 3ce9d98
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 52 deletions.
2 changes: 1 addition & 1 deletion nexus/src/internal_api/http_entrypoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ struct RpwNatQueryParam {
/// empty vec is returned.
#[endpoint {
method = GET,
path = "/rpw/nat/ipv4/changeset/{from_gen}"
path = "/nat/ipv4/changeset/{from_gen}"
}]
async fn ipv4_nat_changeset(
rqctx: RequestContext<Arc<ServerContext>>,
Expand Down
102 changes: 51 additions & 51 deletions openapi/nexus-internal.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,57 @@
}
}
},
"/nat/ipv4/changeset/{from_gen}": {
"get": {
"summary": "Fetch NAT ChangeSet",
"description": "Caller provides their generation as `from_gen`, along with a query parameter for the page size (`limit`). Endpoint will return changes that have occured since the caller's generation number up to the latest change or until the `limit` is reached. If there are no changes, an empty vec is returned.",
"operationId": "ipv4_nat_changeset",
"parameters": [
{
"in": "path",
"name": "from_gen",
"description": "which change number to start generating the change set from",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"in": "query",
"name": "limit",
"required": true,
"schema": {
"type": "integer",
"format": "uint32",
"minimum": 0
}
}
],
"responses": {
"200": {
"description": "successful operation",
"content": {
"application/json": {
"schema": {
"title": "Array_of_Ipv4NatEntryView",
"type": "array",
"items": {
"$ref": "#/components/schemas/Ipv4NatEntryView"
}
}
}
}
},
"4XX": {
"$ref": "#/components/responses/Error"
},
"5XX": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/physical-disk": {
"put": {
"summary": "Report that a physical disk for the specified sled has come online.",
Expand Down Expand Up @@ -421,57 +472,6 @@
}
}
},
"/rpw/nat/ipv4/changeset/{from_gen}": {
"get": {
"summary": "Fetch NAT ChangeSet",
"description": "Caller provides their generation as `from_gen`, along with a query parameter for the page size (`limit`). Endpoint will return changes that have occured since the caller's generation number up to the latest change or until the `limit` is reached. If there are no changes, an empty vec is returned.",
"operationId": "ipv4_nat_changeset",
"parameters": [
{
"in": "path",
"name": "from_gen",
"description": "which change number to start generating the change set from",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"in": "query",
"name": "limit",
"required": true,
"schema": {
"type": "integer",
"format": "uint32",
"minimum": 0
}
}
],
"responses": {
"200": {
"description": "successful operation",
"content": {
"application/json": {
"schema": {
"title": "Array_of_Ipv4NatEntryView",
"type": "array",
"items": {
"$ref": "#/components/schemas/Ipv4NatEntryView"
}
}
}
}
},
"4XX": {
"$ref": "#/components/responses/Error"
},
"5XX": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/sagas": {
"get": {
"summary": "List sagas",
Expand Down

0 comments on commit 3ce9d98

Please sign in to comment.