Skip to content

Conversation

@leongross
Copy link
Contributor

No description provided.

@leongross leongross requested a review from katexochen August 16, 2021 10:53
@netlify
Copy link

netlify bot commented Aug 16, 2021

✔️ Deploy Preview for edgeless-docs ready!

🔨 Explore the source changes: 0b015fc

🔍 Inspect the deploy log: https://app.netlify.com/sites/edgeless-docs/deploys/611e1be247a7480007e8d060

😎 Browse the preview: https://deploy-preview-21--edgeless-docs.netlify.app

@katexochen
Copy link
Member

This refers to edgelesssys/marblerun.sh@1a8180a, right?

## Endpoints

The API currently contains the following endpoints. If an endpoint specifies *Returns* for either HTTP GET or HTTP POST, it means that the specified data can be found encoded inside the `data` block if the response was successful. If no returns are specified for a given endpoint, or in case all possible return values for an endpoint are declared as optional, `data` can just be `null`.
The API currently contains the following endpoints. If an endpoint specifies *Returns* for either HTTP GET or HTTP POST, it means that the specified data can be found encoded inside the `data` block if the response was successful. If no Returns are specified for a given endpoint, or in case all possible return values for an endpoint are declared as optional, `data` can just be `null`.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
The API currently contains the following endpoints. If an endpoint specifies *Returns* for either HTTP GET or HTTP POST, it means that the specified data can be found encoded inside the `data` block if the response was successful. If no Returns are specified for a given endpoint, or in case all possible return values for an endpoint are declared as optional, `data` can just be `null`.
The API currently contains the following endpoints. If an endpoint specifies *Returns* for either HTTP GET or HTTP POST, it means that the specified data can be found encoded inside the `data` block if the response was successful. If no return values are specified for a given endpoint, or in case all possible return values for an endpoint are declared as optional, `data` can just be `null`.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The reason why I chose "Returns" was that the endpoints specify Returns, which in this context is a proper name and not a description. I think we should keep it that way.

Copy link
Contributor

@Nirusu Nirusu Aug 16, 2021

Choose a reason for hiding this comment

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

I would choose to go with @katexochen's suggestion. The capitalization implies that Returns are some kind of special object or action intended by us (given that capitalization usually implies the name of something). However, it's just a basic JSON response just as basically any other JSON REST API. It's a fairly easy one, even.

Also, I do not think that "endpoints specify Returns" is common terminology, at least I could not find this to be commonly used with a quick Google search.

Plus highlighting *Returns* looks weird: https://deploy-preview-21--edgeless-docs.netlify.app/marblerun/#/reference/coordinator

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks weird, indeed. Then let's change into your suggestion.

```
Each GET request allows specifying one or more secrets in the form of a query string, where each parameter `s` specifies one secret.
A query string for the secrets `symmetric_key_shared` and `cert_shared` may look like this:
```php
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
```php

We do not use a php linter in the docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used it to highlight the request parameters, but if this is not uspported we can leave it out.

@leongross leongross requested a review from katexochen August 16, 2021 14:40

### GET
**Returns**:

Copy link
Contributor

Choose a reason for hiding this comment

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

This breaks the table.


### GET
**Returns**:

Copy link
Contributor

Choose a reason for hiding this comment

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

Also broken table.

@katexochen
Copy link
Member

With #17, the coordinator.md file doesn't contain the client API documentation any longer, but instead the UI representation of the Swagger specification, which is generated directly from the annotations in MarbleRun's source code. I've ported this PR to edgelesssys/marblerun#241.

@katexochen katexochen closed this Aug 20, 2021
@leongross leongross deleted the ref/coordinator branch October 5, 2021 09:54
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.

4 participants