Skip to content

Conversation

@thaJeztah
Copy link
Member


api/types: NetworkCreate: add GoDoc

GoDoc is mostly copied from NetworkResource, which is the equivalent for
retrieving the information.

api: swagger: POST /networks/create: inline examples per-field

Move the example values per-field to reduce the risk of the example given
from diverging with the actual struct that's used for the request.

docs/api: POST /networks/create: inline examples per-field (v1.41 - v1.45)

Move the example values per-field to reduce the risk of the example given
from diverging with the actual struct that's used for the request.

This patch updates older API versions (went back to v1.41).

api: swagger: Network: inline examples, and add ConfigOnly, ConfigFrom

These fields were added in 9ee7b4d, but
not documented in the API docs / swagger.

Also move the example values per-field to reduce the risk of the example
given from diverging with the actual struct that's used for the request.

api: swagger: POST /networks/create: document Scope, ConfigOnly, ConfigFrom

Adds missing documentation for Scope, ConfigOnly, and ConfigFrom. The ConfigOnly
and ConfigFrom fields were added in 9ee7b4d,
but not documented in the API docs / swagger.

api: swagger: Network: add Peers

Add documentation for the Peers field.

docs/api: add Scope, ConfigOnly, ConfigFrom, Peers (v1.41 - v1.45)

  • api: swagger: Network: inline examples, and add ConfigOnly, ConfigFrom

    These fields were added in 9ee7b4d, but
    not documented in the API docs / swagger.

    Also move the example values per-field to reduce the risk of the example
    given from diverging with the actual struct that's used for the request.

  • api: swagger: POST /networks/create: document Scope, ConfigOnly, ConfigFrom

    Adds missing documentation for Scope, ConfigOnly, and ConfigFrom. The ConfigOnly
    and ConfigFrom fields were added in 9ee7b4d,
    but not documented in the API docs / swagger.

  • api: swagger: Network: add Peers

    Add documentation for the Peers field.

- Description for the changelog

docs: api: add missing docs for Scope, ConfigOnly, ConfigFrom, Peers

- A picture of a cute animal (not mandatory but encouraged)

thaJeztah added 7 commits May 27, 2024 16:25
GoDoc is mostly copied from NetworkResource, which is the equivalent for
retrieving the information.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Move the example values per-field to reduce the risk of the example given
from diverging with the actual struct that's used for the request.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
…1.45)

Move the example values per-field to reduce the risk of the example given
from diverging with the actual struct that's used for the request.

This patch updates older API versions (went back to v1.41).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
These fields were added in 9ee7b4d, but
not documented in the API docs / swagger.

Also move the example values per-field to reduce the risk of the example
given from diverging with the actual struct that's used for the request.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
…igFrom

Adds missing documentation for Scope, ConfigOnly, and ConfigFrom. The ConfigOnly
and ConfigFrom fields were added in 9ee7b4d,
but not documented in the API docs / swagger.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Add documentation for the Peers field.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
- api: swagger: Network: inline examples, and add ConfigOnly, ConfigFrom

  These fields were added in 9ee7b4d, but
  not documented in the API docs / swagger.

  Also move the example values per-field to reduce the risk of the example
  given from diverging with the actual struct that's used for the request.

- api: swagger: POST /networks/create: document Scope, ConfigOnly, ConfigFrom

  Adds missing documentation for Scope, ConfigOnly, and ConfigFrom. The ConfigOnly
  and ConfigFrom fields were added in 9ee7b4d,
  but not documented in the API docs / swagger.

- api: swagger: Network: add Peers

  Add documentation for the Peers field.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

Thanks! Let me bring this one in; added docs are not "amazing", but at least document some of the missing fields, so "slightly better".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ConfigFrom and ConfigOnly are not documented in OpenAPI spec for network create/get operations

2 participants