Something like a pathfinder for your next coding project. Choose which project types you prefer. | API that works with OpenAI's ChatGPT | Staffbase Internship
Make sure to insert you OpenAI API Key and MongoDB Atlas uri in application.properties
openAi.apiKey= <your OpenAI key>
mongo.url= <your MongoDB Atlas url>
You can get your own for free key at OpenAI
Use this link to download my postman workspace.
GET http://localhost:8080/user?id=<userId>
get User by userId -> returns User
PUT http://localhost:8080/user?id=<userId>&surname=<newSurname>&firstname=<newFirstname>&email=<newEmail>
update User (only id is required) returns updated User
POST http://localhost:8080/user?email=<email>&surname=<surname>&firstname=<firstname>
create User (all parameters are required) -> returns id of new User
DELETE http://localhost:8080/user?id=<userId>
delete User -> returns true if acknowledged
POST http://localhost:8080/process/start?id=<userId>&lang=<language>
starts a new process (all parameters are required, language ISO foramt or writen out) -> returns first question (this object will include processId)
POST http://localhost:8080/process/response?id=<processId>&choice=<your choice>
response to previous question -> returns next question or final idea
Have a look at
to see DTO's and Controller more in detail.