Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
park_quiz [2018-02-01 22:05]
Joakim Forsgren
park_quiz [2022-07-18 13:20] (current)
Line 112: Line 112:
 -- --
 ALTER TABLE `categories` ALTER TABLE `categories`
-MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;+MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
 -- --
 -- AUTO_INCREMENT för tabell `questions` -- AUTO_INCREMENT för tabell `questions`
 -- --
 ALTER TABLE `questions` ALTER TABLE `questions`
-MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=225;+MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
 -- --
 -- AUTO_INCREMENT för tabell `users` -- AUTO_INCREMENT för tabell `users`
 -- --
 ALTER TABLE `users` ALTER TABLE `users`
-MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=26;+MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
 </code> </code>
   - Skapa en endpoint för att skapa en användare<code>   - Skapa en endpoint för att skapa en användare<code>
Line 145: Line 145:
 ) )
 Som svar får man, om allt gick bra Som svar får man, om allt gick bra
-{"status_code":200,"auth_token":"40bd001563085fc35165329ea1ff5c5ecbdbbeef"}+{"status_code":200,"auth_token":"40bd001563085fc35165329ea1ff5c5ecbdbbeef","user_id":2}
 annars annars
 {"status_code":401} {"status_code":401}