Rest API Documentation

About

The REST API is based on Flask RESTful. To add or remove Endpoints modify in app.py the method create_app. Example how to add add suggestion & search:

# init flask api
api: Api = Api(app)
# add api endpoints
api.add_resource(MeetupSearchApi, "/")
api.add_resource(MeetupSearchSuggestApi, "/suggest/")

The code for the REST API is in meetup_search/rest_api/api.py and the tests are in tests/rest_api/test_api.py.

Also in tests/rest_api/utily.py are helper methods to tests the REST API!

Suggestion

PUT /suggest/

Return up to 5 suggestion based on group names.

Example, when send a PUT /suggest/ with follow data:

{
    'query': 'jam',
}

The output will be like:

{"suggestions": [
    "Jam-Session Berlin",
    "Jam Time Amsterdam",
    "Jammy @ ROMA",
]}