Marketplace v2

Search V2

Search available GPU offers with filters.

Suffixed because the v1 handler above is also called api_marketplace_search, and the second def shadowed the first at module scope. Both routes worked — the decorator holds each function object — but UNTESTED_ENDPOINTS.md scores coverage by whether a handler's name appears under tests/, so a single test naming api_marketplace_search marked both routes tested when only one was.

post/api/v2/marketplace/search

Request body

gpu_modelstring
min_vram_gbnumber
max_price_centsinteger
regionstring
spot_availableboolean
sort_bystring
limitinteger

Response

Successful Response

{"stackTrail":"paths:/api/v2/marketplace/search:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

Changed in 4 of the 24 revisions of this API.183

    • ○

      api operation id api_marketplace_search_api_v2_marketplace_search_post removed and replaced with api_marketplace_search_v2_api_v2_marketplace_search_post

      api-operation-id-removed

    • ●

      removed the request property

      request-property-removed

    • ○

      added the new optional request property

      new-optional-request-property

    • ▲

      added the pattern ^(price|reputation|region|vram)$ to the request property

      request-property-pattern-added

    • ●

      the request property's maxLength was set to 64

      request-property-max-length-set

    • ●

      the request property's maxLength was set to 32

      request-property-max-length-set

    • ●

      the request property's max was set to 500.00

      request-property-max-set

    • ●

      the request property's max was set to 1024.00

      request-property-max-set

    • ●

      the request property's min was set to 1.00

      request-property-min-set

    • ●

      the request property's min was set to 0.00

      request-property-min-set

    • ●

      the request property's min was set to 0.00

      request-property-min-set

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • ○

      endpoint added

      endpoint-added

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog