CCI-MOC / flocx-market

2 stars 9 forks source link

Offer api does not match specification #64

Closed larsks closed 5 years ago

larsks commented 5 years ago

The specification requires that the offer endpoint be /offer, not /offers, as in:

api = Api(app)
api.add_resource(Offer, '/offer', '/offers/<string:marketplace_offer_id>')
api.add_resource(Root, '/')

Additionally, requests to /offer should return a list of offers; currently this results in an error.