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

Feature: Implement MOD-API routes #114

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

imadbourouche
Copy link
Member

@imadbourouche imadbourouche commented Jan 9, 2025

Context

This pull request introduces the implementation of various routes for the MOD-API, enabling access to artefact and distribution data.

Implemented Routes Overview

Route Description Expected Result HTTP Status Codes Parameters
GET /artefacts Retrieves a list of all artefacts. A list of artefacts in JSON format. 200 OK, 404 Not Found display
GET /artefacts/:artefactID Retrieves details of a specific artefact. Artefact details in JSON format. 200 OK, 404 Not Found display
GET /artefacts/:artefactID/distributions Lists all distributions of an artefact. A list of distributions in JSON format. 200 OK, 404 Not Found display
GET /artefacts/:artefactID/distributions/:distributionID Retrieves a specific distribution of an artefact. Distribution details in JSON format. 200 OK, 404 Not Found display
GET /artefacts/:artefactID/distributions/latest Retrieves the latest distribution of an artefact. Latest distribution details in JSON format. 200 OK, 404 Not Found display

@imadbourouche imadbourouche self-assigned this Jan 9, 2025
@syphax-bouazzouni syphax-bouazzouni removed their request for review January 10, 2025 07:46
@imadbourouche imadbourouche marked this pull request as draft January 10, 2025 14:28
@imadbourouche imadbourouche marked this pull request as ready for review January 20, 2025 15:24
controllers/artefacts.rb Outdated Show resolved Hide resolved
@Bilelkihal
Copy link
Collaborator

@imadbourouche Okay for me, you can merge it

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.

2 participants