Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update qod api documentation to 0.8.0 #71

Merged

Conversation

shilpa-padgaonkar
Copy link
Collaborator

No description provided.

@patrice-conil
Copy link
Collaborator

Fine by me

@hdamker
Copy link
Collaborator

hdamker commented Dec 1, 2022

I think, it is the Error Codes e.g. 400 is Bad Request (not Invalid input). I don’t know, why it was not possible to comment on individual lines.

@tlohmar Thanks for the swift answer. I suppose that currently the documentation is correctly reflecting the error codes within the YAML (v0.8.0). Any further PRs should change the YAML and the documentation at the same time.

@hdamker
Copy link
Collaborator

hdamker commented Dec 2, 2022

Thanks a lot to @tlohmar for your extensive and detailed review. We have incorporated as many suggestions as possible and especially fixed the points where something was wrong on the documentation side.

There are some comments open:

  • Some points which need first be proposed and discussed as changes to the API definition (e.g. error codes). The goal of this documentation update is to get consistent with version v0.8.0 of the API definition
  • Other points need some more work and can be done independent of this update, e.g. a better illustration and adding FAQs

Said this, I propose that we try to merge this update as the base for further improvements
@tlohmar @jlurien @jpengar @eric-murray @patrice-conil @SyeddR @SylMOREL - would you approve?

hdamker
hdamker previously approved these changes Dec 2, 2022
@tlohmar
Copy link
Contributor

tlohmar commented Dec 2, 2022

Looks good. I dont have an "approve" button.

Comment on lines +118 to +120
|1 |400 | INVALID_INPUT | "Expected property is missing: ueId.msisdn" |
|2 |400 | INVALID_INPUT | "Expected property is missing: ueId.ipv4addr" |
|3 |400 | INVALID_INPUT | "Expected property is missing: ueId.ipv4addr or ueId.ipv6addr" |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Errors 1, 2 & 3 don't make sense in the context of the UeId schema definition. The API definition requires that at least 1 UeId property is specified, but if the API caller has not specified any, how can we possibly know which one they have forgotten to specify? All we can say is that an insufficient number of properties have been specified, but we cannot say that a particular one is missing.

In addition, we need to consider:

  • that more than one UeId property is specified, but they are inconsistent
  • a property has been specified but is either not a valid value or is incorrectly formatted
  • that the property (or properties) specified are valid but do not identify a valid UE or flow. For example, the MSISDN specified might not be a customer of the API provider. Or the public IP might not currently be in use.

Copy link
Collaborator

@hdamker hdamker Dec 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eric-murray I agree that the error definition are not the right ones for all implementations. But:

  1. The commented errors are currently the ones as examples within the YAML file. We should change them in both locations together (together with other error infos). I will open an issue for that and collect the respective comments.
  2. Some of the errors can make sense depending on the implementation. E.g. if the communication service provider expects either ipv4addr or ipv6addr then he error 3 would make sense (it doesn't matter if there are further ones provided by the API invoker)

My proposal is that operators adapt this part according to their implementation for now.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hdamker
OK, I agree that the documentation can be updated when the examples themselves are also updated. They are just examples, after all, not mandatory.

Copy link
Collaborator

@jlurien jlurien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestion

documentation/API_documentation/QoD_API.md Outdated Show resolved Hide resolved
@hdamker hdamker requested a review from tlohmar December 5, 2022 14:28
@hdamker
Copy link
Collaborator

hdamker commented Dec 5, 2022

@tlohmar: you should have an approve button now (added you to the reviewers)
@eric-murray: can you check if my answer is ok for you?
@jlurien: have commited your suggestion

@jpengar
Copy link
Collaborator

jpengar commented Dec 5, 2022

@jlurien: have commited your suggestion

@hdamker thanks! ACK. Speaking on behalf of @jlurien (he is OOO this week).

@hdamker hdamker requested review from hdamker and removed request for tlohmar December 6, 2022 18:42
Copy link
Collaborator

@hdamker hdamker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can see we are done and ready to merge this PR. Editorial PR to split the long line 99 will follow.

@hdamker hdamker merged commit f338505 into camaraproject:main Dec 6, 2022
@hdamker hdamker deleted the shilpa-padgaonkar-qod-doc branch December 9, 2022 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants