Junior — Middle
Have you developed services that interact via API with other systems?
sobes.tech AI
Answer from AI
Yes, I have developed services that interact with other systems via APIs. For example, I created RESTful APIs in Python using Flask or FastAPI, which accepted requests, processed data, and returned responses in JSON format. I also wrote client scripts for integration with external APIs, such as retrieving data from third-party services.
Here's an example of a simple REST API in Flask:
from flask import Flask, jsonify, request
app = Flask(__name__)
@app.route('/api/data', methods=['GET'])
def get_data():
sample_data = {'id': 1, 'name': 'Example'}
return jsonify(sample_data)
if __name__ == '__main__':
app.run(debug=True)
Such a service can be used by other systems to send or receive data.