Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
S
sshoc-marketplace-backend
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • SSHOC
  • sshoc-marketplace-backend
  • Issues
  • #32

Closed
Open
Opened Aug 18, 2020 by serviceAcc.5d4bd64a607a0@stefan.probstMaintainer3 of 13 tasks completed3/13 tasks

OpenAPI definition issues

issues i encountered in the current version of https://sshoc-marketplace-api.acdh-dev.oeaw.ac.at/v3/api-docs

  • is it possible to create actual query param definitions for facets? the openapi doc currently does not reflect the required params shape, see here
  • wrong operationIds:
    • /api/sources/{id}#delete should be "deleteSource" not "deleteTool"
    • /api/concept-search#get should be "searchConcepts" not "searchItems"
  • content type "*/*" should be "application/json" for
    • /api/item-search
    • /api/concept-search
    • /api/item-search/autocomplete
    • /api/vocabularies
    • /api/vocabularies/{code}
  • /api/workflows/{workflowId}/steps/{stepId}/steps: can this get an operationId less similar to /api/workflows/{workflowId}/steps (both have "createStep")
  • can we extract the sort order enum (instead of inlining?)
  • in item search, can we give categories a more specific type than Record<string, string>, i.e. use properties instead of additionalProperties in openapi doc?
  • similarly, can we give the items-categories response a more specific type (currently also Record<string, string>)
  • can we narrow the category property for specific entities? e.g. DatasetDto currently lists the full category enum as allowed values for DatasetDto.category, when it should be narrowed to dataset.
  • /api/auth/sign-in endpoint missing
  • - document required fields in POST request body / GET response payload. currently all fields are optional (openapi spec default), which does not conform to actual api behavior
  • mark fields as nullable when they allow null (e.g. entity.source)
  • step.relatedItems defaults to null instead of an empty array (as it does for other entity types)
  • the requestbody schema for properties on e.g. POST /api/datasets says that it takes a DatasetCore and therefore concept is a ConceptId, i.e. requires code, vocabulary, and uri. uri does not seem to actually be required.

thanks

edit: (2) and (4) fixed by !20 (merged)

Edited Dec 23, 2020 by serviceAcc.5d4bd64a607a0
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: sshoc/sshoc-marketplace-backend#32