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

Define a contract first design principle and show OpenAPI based spec #19

Open
computate opened this issue Sep 14, 2021 · 1 comment
Open
Assignees
Labels

Comments

@computate
Copy link
Member

computate commented Sep 14, 2021

Hackathon Task for Team-19 Hackathon 2021

Define a contract first design principle and show OpenAPI based spec

Hackathon Task for Team-19 Hackathon 2021

Task description:

The team will showcase how the contract first design principle works. The team will share the API design best practices and use them to define a contract for one the Curriikis Service. this API wil be OpanAPI v3 compatible. The team will also showcase how to use the contract to generate Java based stubs.

@aqeel-tkxel
Copy link

aqeel-tkxel commented Oct 25, 2021

Curriki's use case is to create following API endpoint:

API Endpoint
GET|POST- /api/v1/google-classroom/h5p/ajax/content-user-data

Description
This API endpoint retrieves or persists user responses for an activity (H5P) in the database, as the user interacts with an assignment in Google Classroom.

Existing Source Code:
Defined route: https://github.com/ActiveLearningStudio/ActiveLearningStudio-API/blob/3be9308f69bd756471a0399cc6f15d1ec33fc6f5/routes/api.php#L264

Controller method: https://github.com/ActiveLearningStudio/ActiveLearningStudio-API/blob/3be9308f69bd756471a0399cc6f15d1ec33fc6f5/app/Http/Controllers/Api/V1/H5pController.php#L609

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants