N
N
Nick Bukovskiy2017-09-06 21:59:12
PHP
Nick Bukovskiy, 2017-09-06 21:59:12

How to implement rest api on slim framework?

Such a task. You need to implement rest api. 2 post requests:
1st - user login to the site. A file comes with a username and password. It is necessary to check whether the user is logged in and in cases of "no" log in with a token.
2nd - a post arrives with a picture, and if the user is logged in, you need to save the picture in a folder with his name.
Where do I start, how do I do it? I looked at a lot of things, but I did not find an example of how to do this. I only came across simpler rest api examples. Tell me how to start or where to read about the implementation of my task. Thanks for the help! (must be done using the slim framework)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergej, 2017-09-06
@sonterix

Authorization with jwt
https://github.com/tuupola/slim-jwt-auth
A simple skeleton. In general, there are a lot of examples and articles on the network on the Slim RESTful API
https://github.com/tuupola/slim-api-skeleton
Well, swagger for work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question